Skip to content

TandemEngine 0.17.3

Choose a tag to compare

@0xBakeer 0xBakeer released this 28 Nov 16:52
· 113 commits to main since this release

TandemEngine 0.17.3 adds Hy4-flash's native 27-layer model.vit vision tower and fixes <think> chat decode speed under the conductor so chat-mode decoding runs at full X-Tandem: raw speed with identical outputs.

Upgrading a box

  • Re-run the installer at the new tag: curl -fsSLO https://raw.githubusercontent.com/TandemLLM/TandemEngine/v0.17.3/install.sh && bash install.sh.
  • Chat mode speaks engine-ext-v1 3.4 (optional sp1_needed) and stays backward-compatible with 3.2/3.3 extensions. Pair with TandemApp 0.16.1 (which implements Supervisor.sp1_needed) to skip SP1 verdicts on quiet <think> blocks.

What changed

  • Hy4-flash native vision: Loads the pack's 27-layer model.vit.* vision tower (0.48 GB on device) in fp32 with CUDA TF32 disabled inside encode(), applies Hy4Preprocessor normalization and the perceive 2x2 merger with image_newline, threads 3D mRoPE positions across prompt chunks, decode/verify graphs, joint multi-lane verify, and DFly2 speculation, and sets vision: true in models/hy4-flash/card.json when the tower is loaded.
  • Selective SP1 gating (SPD-351, engine-ext-v1 3.4): Adds optional supervisor method sp1_needed(reasoning_tokens, stall, share) -> bool. When it returns False, round_runner skips the blocking SP1 verdict on quiet reasoning blocks, restores QSE_RUNNER_PIPE=1 ahead-drafting and QSE_RUNNER_BUSY_WORK=1, and keeps close_counts synced via _watch_sync.
  • Parallel narrator guard & O(1) tool-call closer scan (SPD-351): Gates in-turn GPU voice, reader, and thoughts narrator slices behind par is None so HTTP-thread CUDA work cannot stall parallel decode passes or graph captures, and replaces repeated per-token closer scans in server/api/toolcall.py and the pythonic/argkey formats with a monotonic _close_scan cursor.

Measured on one NVIDIA DGX Spark (hy4-3.56, /v1/chat/completions, conductor=on, monitor=on)

Metric Before (0.17.2) After (0.17.3 + TandemApp 0.16.1)
round_runner.sp1_marks 86,332 (~83.5 % of rounds blocked) 0 on quiet <think> rounds (2 exact reserve closes across 2,820 rounds)
verdict_wait_ms 50,021.5 ms (sat_out: 96) 1.91 ms (sat_out: 0)
Warmed chat-app (1,650 tok: 1,119 <think> + 531 prose) ~19 tok/s inside <think> 33.97 tok/s overall · 31.11 tok/s <think> · 42.10 tok/s prose
Warmed X-Tandem: raw (same prompt, 1,650 tok) — 33.94 tok/s overall · 31.08 tok/s <think> · 42.12 tok/s prose

Every entry is in CHANGELOG.md.