Skip to content

TandemEngine 0.17.2

Choose a tag to compare

@0xBakeer 0xBakeer released this 27 Nov 09:40
· 124 commits to main since this release

TandemEngine 0.17.2 accelerates Hy4-flash single-request decode, prompt prefill, and multi-lane serving on one NVIDIA DGX Spark, and ships public standalone 3-layer DFly2-B6 (block size 6) EXL3 drafters in the Hy4-flash EXL3 collection (no Hugging Face token needed).

Upgrading a box

  • Re-run the installer at the new tag: curl -fsSLO https://raw.githubusercontent.com/TandemLLM/TandemEngine/v0.17.2/install.sh && bash install.sh.
  • Switching to or updating hy4-3.56 via ops/use-profile.sh hy4-3.56 or the Setup Guide automatically fetches the 1.60 GB DFly2-B6 EXL3 3.5 drafter and K3 draft head (0xBakeer/TandemLLM-Hy4-flash-DFly2-B6-EXL3-3.5).
  • The chat mode keeps working with TandemApp's extension (engine-ext-v1 3.2/3.3).

Hy4-flash speed and multi-lane serving

  • Standalone DFly2-B6 drafter + K3 draft head (ENG-617, OPS-341): Loads external 3-layer, block-size-6 HY4DFlyDraftModel checkpoints (QWEN38_HY4_DFLY_MODEL) and quantized EXL3 lm_head draft heads (QWEN38_DRAFT_HEAD_EXL3), with tools/hy4_dfly2_quant.py for Hessian-calibrated EXL3 conversion. hy4-3.56 uses 0xBakeer/TandemLLM-Hy4-flash-DFly2-B6-EXL3-3.5 with its K3 head and GB10 StairCut price file; 0xBakeer/TandemLLM-Hy4-flash-DFly2-B6-EXL3-3.0 is available as an optional smaller drafter.
  • Faster row pass and DFly2 head (SPD-345): dense_rows for the output head and multi-row blocks, staged streamed-row grouped experts (HY4_MOE_AS=1), one-launch hyper-connections (HY4_HC_FUSED_MIN=16) and attention gating (mul_sigmoid), and row-kernel DFly2 drafting (HY4_DFLY_FUSED=1) sharing _run_lanes across lone and packed rounds.
  • Host-sync-free prefill and joint burst prefill (SPD-347): HY4_PREFILL_FAST=1 removes per-chunk device reads, runs exact rotary and norms in place, packs indexer query rows onto mm's tile axis, and decodes packed Engram rows on the GPU (engram_decode). HY4_JOINT_PREFILL=1 runs concurrent prompt arrivals through one moe_grouped call per MoE layer with bit-equal solo outputs, while inter-layer WINDOW_YIELD keeps active decodes streaming during long prefills.
  • CUDA-graphed joint verify, packed draft graphs, and 262k gcap (SPD-349): Concurrent lanes verify together (HY4_ATTN_MULTI=1, HY4_JOINT_GRAPH=1, padded buckets 4..64, up to 40 active rows at 8 lanes) with packed DFly2 draft graphs (HY4_PACK_GRAPH=1), GCAP_BUCKETS sparse-indexer bucketing up to 262,144 tokens, wk-transposed multi-row attention, zero-sync pinned commits, leased capture streams (capture_lock.lease_stream()), /health joint_stats(), and QSE_RUNNER_PIPE=1 + QSE_RUNNER_BUSY_WORK=1 + QSE_RUNNER_GC=1 + QSE_HEALTH_TTL_MS=1000 enabled in ops/profiles/_hy4.env.

Measured on one NVIDIA DGX Spark (hy4-3.56, --max-len 262,144, 8 lanes)

/v1/completions, cache_prompt: false, thinking off, greedy, 3 rounds per workload (74 requests, 0 errors):

Workload Result (3-round median) Notes
Single request (3,538 -> 600) 43.33 tok/s, 3.37 accepted/round, 3.76 s TTFT (940.5 tok/s) Identical greedy text in 3 of 3 runs
Short prompt (42 -> 1) 0.192 s TTFT HY4_PREFILL_FAST=1
8k prefill (8,034 -> 1) 8.841 s TTFT (908.7 tok/s) Single prompt
Burst prefill (2x / 4x) 973.3 / 999.8 tok/s (up to 1,002.8) HY4_JOINT_PREFILL=1
Concurrent decode (C2 / C4 / C8, 256 tok) 47.75 / 60.86 / 76.72 tok/s end-to-end (51.6 / 63.1 / 81.5 runner steady; 48.9 / 65.9 / 85.1 observed steady) 942 of 942 joint verify passes replayed from 9 captured graphs (0 eager fallbacks)
Long prefill beside decode (D12, 12,334 tok) 495.7 tok/s prefill, 12.22 tok/s concurrent decode, 0.340 s max gap Inter-layer WINDOW_YIELD

Every entry is in CHANGELOG.md.