port/grill: tt-metal #59957 high-batch MTP spec decode (K by batch, GDN ring mode) vs our so1 + K_BY_BUCKET 8:3 #213

Closed
opened 2026-10-09 08:47:34 +02:00 by tenstorrent · 6 comments
Member

Pickup (same day from the upstream watch, 2026-10-09)

Grill first. Desk only: no card runs and no code until this grill is answered.
Tree read: master f30ab09 (CONTROL …-kvfold-dx-w2t-b8k3-cph48, PR #210). Branch grill/metal-59957-spec-batch is cut from master, with no commits.

Upstream: https://github.com/tenstorrent/tt-metal/pull/59957, [Feat] [Qwen3.8-27B] High Batch MTP Spec Decode, by atupe-tt.

  • State on 2026-10-09: open, not draft. Filed 03:27 UTC (05:27 Prague). Head ea16fdbe, base main a27fa47c.
  • Size: 44 commits, 24 files, +3518/−2058.
  • Reviewers requested: cglagovichTT, jonathansuTT.

What it does (their claims, not ours)

  • MTP spec decode for up to 8 users at once (it was B=1 only). One verify pass checks every user's drafts, so B×(K+1) ≤ 32 rows.
  • K by batch (text_demo.py _spec_batch_draft_len):
    • B1–2: K=11 (K=7 above a 4k prompt);
    • B3–4: K=7;
    • B5–8: K=3;
    • B>8: plain decode.
    • The auto floor is K≥3. K+1 is snapped down to a multiple of 4 because the fused verify SDPA only has L1 plans for T∈{4,8,12}.
  • Ring mode on fused_recurrent_gated_delta_rule, via a new optional initial_state_block_idx [BH] uint32/int32:
    • initial_state becomes a [T·BH, K, V] per-token state ring that is also the in-place state output. Head h starts from ring block idx[h] (= the last accepted token's state) and writes its T per-token states back in place.
    • Caller contract: idx[h] % BH == h. No separate commit step.
    • Requires output_per_token_state=True and an fp32 TILE ring.
  • Traced draft, traced reseed and draft argmax work for B users. Batched rows get safe KV writes, plus vLLM-style padding rows and changing page tables.
  • Claims: ~2× plain decode at B=8, B=1 unchanged vs main, outputs match plain decode apart from near-tie flips.
  • Hardware: the PR body does not state it. The demo docstring's core gate says "8·8 = 64 ≤ 110 on P150x4", so it is presumably 4× p150 at TP=4. No perf table is attached.
  • Open review findings on the PR (bots):
    • ring index not range-checked (out-of-bounds read, cross-core race on a bad index);
    • create_output_tensors dereferences an empty optional before validation;
    • 3 leaked device buffers per batched verify build in gdn/tp.py;
    • duplicate B=8 CI case.

Our path (for comparison)

  • CONTROL …-dx-w2t-b8k3-cph48 uses QWEN36_MTP_BATCH_K_BY_BUCKET = "8:3,4:3,2:3,1:3", so K=3 at every bucket. Global cap 3. Bucket 8 is already their B5–8 row (K=3, 32 rows).
  • #191 lifted the verify depth cap T 4 → 16. M = T·Bw ≤ 32 stays. T=13/26 widths refuse on the 11×10 grid. K=4/K=5 at B≤4 lost:
    • -k4: TG −14.2% B1/4k, accept/draft 0.57 → 0.37;
    • -k5b1: −10.8% B1/4k;
    • LEVERS.md: "Deeper K needs a better drafter".
  • GDN verify/commit is not a per-token state ring. It is state-once (so1), gdn/state_once.py:
    • the verify reads each row's state once and writes none, except SO_T0, which writes token 0 in place;
    • the commit recomputes tokens 1..idx[b] from cin sticks, with QWEN36_MTP_STATE_SLOT / COMMIT_PACK slot-index gather.
    • Why: per-token state traffic went from 2T+2 to 3 state units per layer (c154/c156a).
    • Related: muse-commit-defer skips the packed rec commit on all-depth-0 steps.
  • Recurrent state is bf16 in production (QWEN35_GDN_STATE_BF16=1). The fused decode op requires one dtype across its tensors (qwen36_vllm.py::_gdn_state_dtypes).
  • Batch K: our buckets serve vLLM max_num_seqs 8. Upstream's path is the demo SpeculativeDecoder, not vLLM serving.

Directly portable (config / desk)

  1. The K-by-batch table is just an env value for us: K_BY_BUCKET=8:3,4:7,2:11,1:11. #191 already admits these widths: T=12 at Bw 1/2 (12 or 24 rows) and T=8 at Bw 4 (32 rows).
    • But our own records say K>3 at B≤4 loses with today's MTP head (#191 arms). Upstream's K=11 sits on top of full-prompt MTP warm (#55548), and our warm tail is capped at 2048 (#212 §2.1).
    • So the table is portable only together with #212 L1 (full warm), or a better drafter (#190 DSpark).
    • Their "K=7 above a 4k prompt" ISL rule is the same idea as #212 L4 (K by bucket × ctx).
  2. Snapping K+1 to {4, 8, 12} matches our spec-fold chunking (T>8 → chunks of ≤8). T=12 at Bw=2 exercises the chunked spec-fold path, which #191 lists as unproven on card.
  3. Ring semantics: "resume from the last accepted per-token state, no commit program". This is a design point we can cost against so1+T0+commit-pack, without porting the op.

Conflicts / not portable as-is

  • Core ceiling at TP=2. Their fused GDN verify kernel runs one core per (user, value-head) and gates B·gdn_nv_tp ≤ cores.
    • Their docstring says "8·8 = 64 ≤ 110 on P150x4". Our TP=2 slice has 24 value heads per device (BH=24 at B=1: docs/OP-DATASHEETS.md c158, #207). Upstream's own #59965 test calls the 27B TP-4 slice BH=12.
    • At B=8 that is 192 > 110 cores (11×10). Their B=8 path would not fit on our cards. Their own gate would route us to plain decode above B=4.
    • Their B=8 ~2× claim therefore does not transfer to 2× p150a. To verify on desk: whether their verify kernel takes a value-head split per core.
  • Ring needs an fp32 ring of [T·BH, K, V].
    • Our state is bf16 by contract (the decode fused op's dtype check, plus vLLM's mamba-ssm-cache-dtype accounting).
    • fp32 doubles state bytes and changes the sidecar/prefix contract.
    • It writes T states per row per layer. That is exactly the traffic so1 removed (2T+2 → 3).
    • It is a regression candidate at Bw=8 unless the commit program (c156a: 6.12 ms/step at Bw=8, on an older tree) costs more than T extra state writes. Desk estimate needed, not a number yet.
  • Op base. fused_recurrent_gated_delta_rule is not the op our served verify uses. Ours is decode_gated_delta_rule (#53587 graft) plus JIT state_once/state_slot kernels on fork 3b31bad (v0.79.0-dev20260903). Porting ring mode means #208 (metal bump) or a graft.
  • #154 CPB. #58922's multi-core DRAM-sharded matmul TT_FATALs on spec-verify 2–8 row tiles.
    • Their table moves verify M per bucket to {B1: 12, B2: 24, B4: 32, B8: 32}. Ours today is {4, 8, 16, 32}.
    • Any K-table change changes which M the CPB fix must cover. Neither upstream PR addresses this.
  • Ours vs theirs on sampling: they wire temp>0 rejection sampling for B users. We are greedy-exact acceptance (quality tier 1). Out of scope here.

Grill questions

  1. Do we cost ring mode vs so1+T0+commit-pack at Bw ∈ {1, 2, 4, 8} and T ∈ {4, 8, 12} on paper (state bytes per layer, programs per step), before any port? Proposed: yes, desk only, using c154/c156a anatomy records.
  2. Do we gate the K-by-batch table strictly behind #212 L1 (full warm) + LC0? Proposed: yes. Without it, #191's arms already measured a loss at B1.
  3. Do we treat their core-per-(user, head) ceiling as disqualifying for B>4 on TP=2, or ask upstream whether a TP=2 / head-split variant is planned? A comment upstream needs the owner's OK.
  4. Does the bf16 state contract (decode fused op, vLLM accounting) rule out the fp32 ring outright, or is a bf16 ring variant worth a JIT kernel of our own?
  5. Should the ISL-dependent K ("K=7 above 4k") merge into #212 L4 / #139 rather than live here?

Measure first (when approved; not now)

  • Desk: state-traffic and program-count model for ring vs so1 (no card).
  • After #212 L1: K_BY_BUCKET=8:3,4:7,2:11,1:11 arm vs CONTROL. B1/B4/B8 × 4k/32k, plus LC0 64k/128k cells. Per-token judge (#203). Gates: gsm8k, retrieval, equiv, must-fail.

Out of scope

  • No code, no card boots, no pushes to the branch until the grill is answered.
  • Upstream numbers are theirs. Do not bank them as ours.
## Pickup (same day from the upstream watch, 2026-10-09) Grill first. **Desk only: no card runs and no code** until this grill is answered. Tree read: master `f30ab09` (CONTROL `…-kvfold-dx-w2t-b8k3-cph48`, PR #210). Branch `grill/metal-59957-spec-batch` is cut from master, with no commits. Upstream: https://github.com/tenstorrent/tt-metal/pull/59957, **[Feat] [Qwen3.8-27B] High Batch MTP Spec Decode**, by atupe-tt. - State on 2026-10-09: open, not draft. Filed 03:27 UTC (05:27 Prague). Head `ea16fdbe`, base main `a27fa47c`. - Size: 44 commits, 24 files, +3518/−2058. - Reviewers requested: cglagovichTT, jonathansuTT. ### What it does (their claims, not ours) - MTP spec decode for **up to 8 users** at once (it was B=1 only). One verify pass checks every user's drafts, so **B×(K+1) ≤ 32** rows. - **K by batch** (`text_demo.py` `_spec_batch_draft_len`): - B1–2: K=11 (K=7 above a 4k prompt); - B3–4: K=7; - B5–8: K=3; - B>8: plain decode. - The auto floor is K≥3. K+1 is snapped down to a multiple of 4 because the fused verify SDPA only has L1 plans for T∈{4,8,12}. - **Ring mode** on `fused_recurrent_gated_delta_rule`, via a new optional `initial_state_block_idx` [BH] uint32/int32: - `initial_state` becomes a `[T·BH, K, V]` per-token state ring that is also the in-place state output. Head h starts from ring block `idx[h]` (= the last accepted token's state) and writes its T per-token states back in place. - Caller contract: `idx[h] % BH == h`. **No separate commit step.** - Requires `output_per_token_state=True` and an **fp32 TILE** ring. - Traced draft, traced reseed and draft argmax work for B users. Batched rows get safe KV writes, plus vLLM-style padding rows and changing page tables. - Claims: **~2× plain decode at B=8**, B=1 unchanged vs main, outputs match plain decode apart from near-tie flips. - **Hardware:** the PR body does not state it. The demo docstring's core gate says "8·8 = 64 ≤ 110 on **P150x4**", so it is presumably 4× p150 at TP=4. No perf table is attached. - Open review findings on the PR (bots): - ring index not range-checked (out-of-bounds read, cross-core race on a bad index); - `create_output_tensors` dereferences an empty optional before validation; - 3 leaked device buffers per batched verify build in `gdn/tp.py`; - duplicate B=8 CI case. ### Our path (for comparison) - **CONTROL** `…-dx-w2t-b8k3-cph48` uses `QWEN36_MTP_BATCH_K_BY_BUCKET = "8:3,4:3,2:3,1:3"`, so **K=3 at every bucket**. Global cap 3. Bucket 8 is already their B5–8 row (K=3, 32 rows). - **#191** lifted the verify depth cap T 4 → 16. M = T·Bw ≤ 32 stays. T=13/26 widths refuse on the 11×10 grid. K=4/K=5 at B≤4 **lost**: - `-k4`: TG −14.2% B1/4k, accept/draft 0.57 → 0.37; - `-k5b1`: −10.8% B1/4k; - LEVERS.md: "Deeper K needs a better drafter". - **GDN verify/commit** is not a per-token state ring. It is state-once (`so1`), `gdn/state_once.py`: - the verify reads each row's state once and writes none, except `SO_T0`, which writes token 0 in place; - the commit recomputes tokens 1..idx[b] from cin sticks, with `QWEN36_MTP_STATE_SLOT` / `COMMIT_PACK` slot-index gather. - Why: per-token state traffic went from 2T+2 to 3 state units per layer (c154/c156a). - Related: `muse-commit-defer` skips the packed rec commit on all-depth-0 steps. - **Recurrent state is bf16** in production (`QWEN35_GDN_STATE_BF16=1`). The fused decode op requires one dtype across its tensors (`qwen36_vllm.py::_gdn_state_dtypes`). - **Batch K:** our buckets serve vLLM `max_num_seqs 8`. Upstream's path is the demo `SpeculativeDecoder`, not vLLM serving. ### Directly portable (config / desk) 1. **The K-by-batch table is just an env value for us:** `K_BY_BUCKET=8:3,4:7,2:11,1:11`. #191 already admits these widths: T=12 at Bw 1/2 (12 or 24 rows) and T=8 at Bw 4 (32 rows). - **But** our own records say K>3 at B≤4 loses with today's MTP head (#191 arms). Upstream's K=11 sits on top of full-prompt MTP warm (#55548), and our warm tail is capped at 2048 (#212 §2.1). - So the table is portable only **together with** #212 L1 (full warm), or a better drafter (#190 DSpark). - Their "K=7 above a 4k prompt" ISL rule is the same idea as #212 L4 (K by bucket × ctx). 2. **Snapping K+1 to {4, 8, 12}** matches our spec-fold chunking (T>8 → chunks of ≤8). T=12 at Bw=2 exercises the chunked spec-fold path, which #191 lists as **unproven on card**. 3. **Ring semantics:** "resume from the last accepted per-token state, no commit program". This is a design point we can cost against so1+T0+commit-pack, without porting the op. ### Conflicts / not portable as-is - **Core ceiling at TP=2.** Their fused GDN verify kernel runs **one core per (user, value-head)** and gates `B·gdn_nv_tp ≤ cores`. - Their docstring says "8·8 = 64 ≤ 110 on P150x4". Our TP=2 slice has **24 value heads per device** (BH=24 at B=1: `docs/OP-DATASHEETS.md` c158, #207). Upstream's own #59965 test calls the 27B TP-4 slice BH=12. - At B=8 that is 192 > 110 cores (11×10). **Their B=8 path would not fit on our cards.** Their own gate would route us to plain decode above B=4. - Their B=8 ~2× claim therefore does not transfer to 2× p150a. To verify on desk: whether their verify kernel takes a value-head split per core. - **Ring needs an fp32 ring of `[T·BH, K, V]`.** - Our state is bf16 by contract (the decode fused op's dtype check, plus vLLM's mamba-ssm-cache-dtype accounting). - fp32 doubles state bytes and changes the sidecar/prefix contract. - It writes **T states per row per layer**. That is exactly the traffic so1 removed (2T+2 → 3). - It is a regression candidate at Bw=8 unless the commit program (c156a: 6.12 ms/step at Bw=8, on an older tree) costs more than T extra state writes. **Desk estimate needed, not a number yet.** - **Op base.** `fused_recurrent_gated_delta_rule` is not the op our served verify uses. Ours is `decode_gated_delta_rule` (#53587 graft) plus JIT state_once/state_slot kernels on fork `3b31bad` (v0.79.0-dev20260903). Porting ring mode means #208 (metal bump) or a graft. - **#154 CPB.** #58922's multi-core DRAM-sharded matmul TT_FATALs on spec-verify 2–8 row tiles. - Their table moves verify M per bucket to {B1: 12, B2: 24, B4: 32, B8: 32}. Ours today is {4, 8, 16, 32}. - Any K-table change changes which M the CPB fix must cover. Neither upstream PR addresses this. - **Ours vs theirs on sampling:** they wire temp>0 rejection sampling for B users. We are greedy-exact acceptance (quality tier 1). Out of scope here. ### Grill questions 1. Do we cost **ring mode vs so1+T0+commit-pack** at Bw ∈ {1, 2, 4, 8} and T ∈ {4, 8, 12} on paper (state bytes per layer, programs per step), before any port? Proposed: yes, desk only, using c154/c156a anatomy records. 2. Do we gate the **K-by-batch table** strictly behind #212 L1 (full warm) + LC0? Proposed: yes. Without it, #191's arms already measured a loss at B1. 3. Do we treat their **core-per-(user, head) ceiling** as disqualifying for B>4 on TP=2, or ask upstream whether a TP=2 / head-split variant is planned? A comment upstream needs the owner's OK. 4. Does the **bf16 state contract** (decode fused op, vLLM accounting) rule out the fp32 ring outright, or is a bf16 ring variant worth a JIT kernel of our own? 5. Should the **ISL-dependent K** ("K=7 above 4k") merge into #212 L4 / #139 rather than live here? ### Measure first (when approved; not now) - Desk: state-traffic and program-count model for ring vs so1 (no card). - After #212 L1: `K_BY_BUCKET=8:3,4:7,2:11,1:11` arm vs CONTROL. B1/B4/B8 × 4k/32k, plus LC0 64k/128k cells. Per-token judge (#203). Gates: gsm8k, retrieval, equiv, must-fail. ### Out of scope - No code, no card boots, no pushes to the branch until the grill is answered. - Upstream numbers are **theirs**. Do not bank them as ours. ### Links - Upstream: https://github.com/tenstorrent/tt-metal/pull/59957; https://github.com/tenstorrent/tt-metal/pull/55548 (full warm, merged) - Ours: #90 (perf loop), #191 (verify depth 16), #154 (upstream BH kernels; CPB 2–8 row TT_FATAL), #199 (chain2/sopt verify levers), #208 (metal bump), #212 (long-ctx acceptance; L1/L4), #139 (adaptive K), #190 (DSpark), #136 (GDN snapshot/restore)
Author
Member

Update 2026-10-16: upstream #59957 MERGED

https://github.com/tenstorrent/tt-metal/pull/59957 merged 2026-10-13 23:57 UTC (10-14 01:57 Prague) at head 9cb77e8f (46 commits, 25 files, +3555/−2058). Master read: 90fe3e6c.

Their final perf table (theirs, not ours)

  • ISL128: B1 3.77× (K=11), B2 3.57×, B4 2.96×, B8 2.08× (K=3).
  • ISL4k: 2.12–2.30× across B1–B8. 16k: 1.70–2.04×. 32k: 1.76–2.22×.
  • Hardware: the merged text_demo.py only knows meshes P150 / P150x4 / P150x8 (default (1,4)), and its batched test skips unless the mesh is P150x4 or P150x8. These are not 2× p150a numbers.

Final design vs our CONTROL (…-gpgob-dfr, E-dfr per #241 / LEDGER R-2026-10-11-dfr-ship)

  • Core ceiling: unchanged. The merged docstring still gates B * gdn_nv_tp <= worker cores ("8*8 = 64 <= 110 on P150x4"), checked at text_demo.py:1022. At our TP=2 (BH=24 per device at B=1), B=8 means 192 > 110. The earlier concern holds: their gate would send us to plain decode above B=4, so the B8 2.08× does not transfer.
  • Ring mode: unchanged. It still requires output_per_token_state, the state ring is still FLOAT32 TILE [BH·T, K, V], and the index is uint32/int32 [BH]. CONTROL still runs so1 (QWEN36_MTP_GDN_STATE_ONCE + SO1_CSPLIT) with bf16 state. The fp32 + T-states-per-layer traffic concern (2T+2 vs 3) stands.
  • K-by-batch: unchanged (B1–2 K=11, K=7 above 4k; B3–4 K=7; B5–8 K=3). CONTROL still runs QWEN36_MTP_BATCH_K_BY_BUCKET 8:3,4:3,2:3,1:3. Our B8 bucket already matches their B5–8 row. B≤4 K>3 stays gated on #212 L1 / a better drafter (#191 loss records).
  • Lookup drafts (#236): #236 landed QWEN36_MTP_LOOKUP default-off, and the lk12 screen was inert (+0.07% TG). Upstream has no lookup source, so the two don't conflict. A deeper K at B≤4 would be where lookup could matter again (#98 oracle). We have no number for it.
  • Op base: still fused_recurrent_gated_delta_rule, not our decode_gated_delta_rule + JIT so1 kernels. Porting still means #208 or a graft.
  • Bot findings, partly addressed in the merged tree: gdn/tp.py now asserts that the accept index mi is in [0,T) and that the slot is in [0,B). I have not verified whether the device op range-checks initial_state_block_idx.

Status

Merged upstream does not change the grill answers above. Next step is still desk only: the ring vs so1 cost model. No cards and no code.

Follow-up serving PR (open): https://github.com/tenstorrent/tt-metal/pull/60840, tracked in a separate issue.

## Update 2026-10-16: upstream #59957 MERGED https://github.com/tenstorrent/tt-metal/pull/59957 merged **2026-10-13 23:57 UTC (10-14 01:57 Prague)** at head `9cb77e8f` (46 commits, 25 files, +3555/−2058). Master read: `90fe3e6c`. ### Their final perf table (theirs, not ours) - ISL128: B1 **3.77×** (K=11), B2 3.57×, B4 2.96×, B8 **2.08×** (K=3). - ISL4k: **2.12–2.30×** across B1–B8. 16k: 1.70–2.04×. 32k: 1.76–2.22×. - Hardware: the merged `text_demo.py` only knows meshes `P150` / `P150x4` / `P150x8` (default `(1,4)`), and its batched test skips unless the mesh is P150x4 or P150x8. **These are not 2× p150a numbers.** ### Final design vs our CONTROL (`…-gpgob-dfr`, E-dfr per #241 / LEDGER R-2026-10-11-dfr-ship) - **Core ceiling: unchanged.** The merged docstring still gates `B * gdn_nv_tp <= worker cores` ("8*8 = 64 <= 110 on P150x4"), checked at `text_demo.py:1022`. At our TP=2 (BH=24 per device at B=1), B=8 means 192 > 110. The earlier concern holds: their gate would send us to plain decode above B=4, so the B8 2.08× does not transfer. - **Ring mode: unchanged.** It still requires `output_per_token_state`, the state ring is still `FLOAT32` TILE `[BH·T, K, V]`, and the index is uint32/int32 `[BH]`. CONTROL still runs so1 (`QWEN36_MTP_GDN_STATE_ONCE` + `SO1_CSPLIT`) with bf16 state. The fp32 + T-states-per-layer traffic concern (2T+2 vs 3) stands. - **K-by-batch: unchanged** (B1–2 K=11, K=7 above 4k; B3–4 K=7; B5–8 K=3). CONTROL still runs `QWEN36_MTP_BATCH_K_BY_BUCKET 8:3,4:3,2:3,1:3`. Our B8 bucket already matches their B5–8 row. B≤4 K>3 stays gated on #212 L1 / a better drafter (#191 loss records). - **Lookup drafts (#236):** #236 landed `QWEN36_MTP_LOOKUP` default-off, and the lk12 screen was inert (+0.07% TG). Upstream has no lookup source, so the two don't conflict. A deeper K at B≤4 would be where lookup could matter again (#98 oracle). We have no number for it. - **Op base:** still `fused_recurrent_gated_delta_rule`, not our `decode_gated_delta_rule` + JIT so1 kernels. Porting still means #208 or a graft. - **Bot findings, partly addressed in the merged tree:** `gdn/tp.py` now asserts that the accept index `mi` is in `[0,T)` and that the slot is in `[0,B)`. I have not verified whether the device op range-checks `initial_state_block_idx`. ### Status Merged upstream does not change the grill answers above. Next step is still desk only: the ring vs so1 cost model. No cards and no code. Follow-up serving PR (open): https://github.com/tenstorrent/tt-metal/pull/60840, tracked in a separate issue.
Author
Member

Eval 2026-10-16 (evening): can upstream high-batch MTP (#59957 merged, #60840 open) beat S?

Verdict: no. Don't switch (c). The one thing worth porting is a desk-gated K-by-B screen at B≤4. That is a small lever and it may come out net zero.

1. Their numbers (THEIRS, copied from the PR bodies, mesh as stated)

#59957 perf table. Tok/s/user. The table does not name the mesh. The merged demo defaults to (1,4), and the batched test runs only on P150x4/x8. The table gives no per-row accept or tokens/step, so I have not derived any.

ISL B K plain (theirs) spec (theirs) speedup (theirs)
128 1/2/4/8 11/11/7/3 28.0/26.2/24.8/22.2 105.5/93.5/73.4/46.2 3.77/3.57/2.96/2.08×
4k 1/2/4/8 11/11/7/3 27.7/26.0/24.5/21.8 63.7/58.5/56.3/46.2 2.30/2.24/2.30/2.12×
16k 1/2/4/8 7/7/7/3 27.2/25.2/23.1/19.8 55.6/46.2/40.4/33.5 2.04/1.83/1.75/1.70×
32k 1/2/4/8 7/7/7/3 26.7/24.4/15.2/11.5 59.3/46.3/26.6/21.6 2.22/1.90/1.76/1.88×

#60840 (vLLM serving, theirs, mesh not stated). TPOT spec/normal: B1 128/128 27.8/39.3 ms (≈36.0 tok/s/user spec). B8 128/1024 29.8/48.7 ms (≈33.6). B8 4096/128 77.8/67.0 ms (≈12.9; spec is slower than normal here). I computed tok/s/user as 1000/TPOT.

2. Apples to apples: tok/s/user, S (ours, 2× p150a TP2) vs #59957 (theirs, ≥P150x4)

S TG comes from CI card run #9097 (LEDGER R-2026-10-16-ship-s). The S accept column comes from the local ABBA verdict ship-stack-ab-verdict-20261016.jsonl (cand acc, K=3).

Cell theirs spec S (ours) S/theirs S acc (ours)
B1/4k 63.7 73.4 1.15× 0.589
B4/4k 56.3 76.6 1.36× 0.695
B8/4k 46.2 65.5 1.42× 0.671
B1/32k 59.3 64.6 1.09× 0.501
B4/32k 26.6 61.9 2.33× 0.571
B8/32k 21.6 52.0 2.41× 0.583

S beats their spec path in every cell where both have a number, even though they run on double the cards. Their 2–3.8× speedups sit on a slow plain baseline of 22–28 tok/s/user. Our relevant comparison is S against their spec path, not their speedup ratio. At 64k/128k they publish nothing. Our LC0 run 737 (B8 53.8/41.3) has no counterpart in their numbers.

3. What limits B>4 on our mesh

  • Their gate is B * gdn_nv_tp <= worker cores (110) at text_demo.py:1022. At TP2 that is 24 value heads per device, so B=4 → 96 (fits) and B=5 → 120 (fails). Above B4 the gate falls back to plain decode. At TP4 (their mesh) B8 = 96, which fits. That is the whole reason their B8 works and ours would not.
  • #60316 "waves" does not lift it as written. It changes the prefill chunk_gated_delta_rule fused op, not the decode fused_recurrent_gated_delta_rule. The mechanism, host waves with a head_offset kept out of the program hash and passed as dynamic runtime args, could be grafted onto the recurrent op: B8 TP2 would run as 2 waves of 96. That costs one extra dispatch per GDN layer per step, and I have no measured number for it. #60316 is a draft.
  • A TP2 head split is already what we run. Going lower than 24 heads per device needs more devices.
  • None of this matters for S. S already runs B8 on our own decode_gated_delta_rule and so1 path.

4. Ideas in their drafter that S lacks

  1. K-by-batch, K>3 at B≤4 (they use K=11/7). This is the only real candidate. Estimate (not measured): assume geometric acceptance, E[tok/step] = (1−a^(K+1))/(1−a), with our acc. B4/4k a=0.695 gives K3 2.51 and K7 3.10 (+23% tokens/step). B1/4k a=0.589 gives 2.18 and 2.40 (+10%). B4/32k a=0.571 gives 2.18 and 2.31 (+6%). These are upper bounds before the extra cost of 4 more draft steps and B×8-row verify. Our step is 37–44 ms at K3 (local ABBA step_ms_est), so the net could be ≈0. This is still gated on #212 (L1) / #191 (drafter quality).
  2. Ring-mode fp32 state (resume from accepted slot, no commit). Not a win for us. so1 bf16 already skips the commit and moves less state (2T+2 vs 3, see above).
  3. Batched verify layout B×(K+1) ≤ 32 rows. We already match it. B8×4 = 32.
  4. Padding rows, page tables that change between steps, and join-TTFT −7…27% (#60840). These are serving-side and tracked in #244, not drafter perf.
  5. No lookup or acceptance trick. Their acceptance is plain greedy prefix. #236 lookup is ours alone.

5. Recommendation and minimal screen plan

(a), narrow: a lever PR adding QWEN36_MTP_BATCH_K_BY_BUCKET 8:3,4:5,2:5,1:5, plus a K=7 arm if the desk L1 check (#212) passes for 4×8 rows. This is config only, with no new kernels.

  • Screen: one arm vs CONTROL S, B1/B4 × 4k/32k, 1024 out, reps 1. Skip B8 (unchanged). Kill if dTG < +2% in both B4 cells. Gates (gsm8k, retrieval, equiv) run only if it wins.
  • (b) a full switch: no. It is slower in all 6 comparable cells and falls back to plain decode above B4 on TP2.
  • Nothing here needs a card until the #212 L1 desk check is done. No cards and no code were used for this eval.
## Eval 2026-10-16 (evening): can upstream high-batch MTP (#59957 merged, #60840 open) beat S? **Verdict: no. Don't switch (c). The one thing worth porting is a desk-gated K-by-B screen at B≤4. That is a small lever and it may come out net zero.** ### 1. Their numbers (THEIRS, copied from the PR bodies, mesh as stated) #59957 perf table. Tok/s/user. The table does not name the mesh. The merged demo defaults to `(1,4)`, and the batched test runs only on P150x4/x8. **The table gives no per-row accept or tokens/step**, so I have not derived any. | ISL | B | K | plain (theirs) | spec (theirs) | speedup (theirs) | |---|---|---|---|---|---| | 128 | 1/2/4/8 | 11/11/7/3 | 28.0/26.2/24.8/22.2 | 105.5/93.5/73.4/46.2 | 3.77/3.57/2.96/2.08× | | 4k | 1/2/4/8 | 11/11/7/3 | 27.7/26.0/24.5/21.8 | 63.7/58.5/56.3/46.2 | 2.30/2.24/2.30/2.12× | | 16k | 1/2/4/8 | 7/7/7/3 | 27.2/25.2/23.1/19.8 | 55.6/46.2/40.4/33.5 | 2.04/1.83/1.75/1.70× | | 32k | 1/2/4/8 | 7/7/7/3 | 26.7/24.4/15.2/11.5 | 59.3/46.3/26.6/21.6 | 2.22/1.90/1.76/1.88× | #60840 (vLLM serving, theirs, mesh not stated). TPOT spec/normal: B1 128/128 27.8/39.3 ms (≈36.0 tok/s/user spec). B8 128/1024 29.8/48.7 ms (≈33.6). B8 4096/128 77.8/67.0 ms (≈12.9; spec is *slower* than normal here). I computed tok/s/user as 1000/TPOT. ### 2. Apples to apples: tok/s/user, S (ours, 2× p150a TP2) vs #59957 (theirs, ≥P150x4) S TG comes from CI card run #9097 (LEDGER R-2026-10-16-ship-s). The S accept column comes from the local ABBA verdict `ship-stack-ab-verdict-20261016.jsonl` (cand `acc`, K=3). | Cell | theirs spec | S (ours) | S/theirs | S acc (ours) | |---|---|---|---|---| | B1/4k | 63.7 | 73.4 | 1.15× | 0.589 | | B4/4k | 56.3 | 76.6 | 1.36× | 0.695 | | B8/4k | 46.2 | 65.5 | 1.42× | 0.671 | | B1/32k | 59.3 | 64.6 | 1.09× | 0.501 | | B4/32k | 26.6 | 61.9 | 2.33× | 0.571 | | B8/32k | 21.6 | 52.0 | 2.41× | 0.583 | S beats their spec path in every cell where both have a number, even though they run on double the cards. Their 2–3.8× speedups sit on a slow plain baseline of 22–28 tok/s/user. Our relevant comparison is S against their spec path, not their speedup ratio. At 64k/128k they publish nothing. Our LC0 run 737 (B8 53.8/41.3) has no counterpart in their numbers. ### 3. What limits B>4 on our mesh - Their gate is `B * gdn_nv_tp <= worker cores (110)` at `text_demo.py:1022`. At TP2 that is 24 value heads per device, so B=4 → 96 (fits) and B=5 → 120 (fails). Above B4 the gate falls back to plain decode. At TP4 (their mesh) B8 = 96, which fits. That is the whole reason their B8 works and ours would not. - **#60316 "waves" does not lift it as written.** It changes the *prefill* `chunk_gated_delta_rule` fused op, not the decode `fused_recurrent_gated_delta_rule`. The mechanism, host waves with a `head_offset` kept out of the program hash and passed as dynamic runtime args, could be grafted onto the recurrent op: B8 TP2 would run as 2 waves of 96. That costs one extra dispatch per GDN layer per step, and I have no measured number for it. #60316 is a draft. - **A TP2 head split is already what we run.** Going lower than 24 heads per device needs more devices. - None of this matters for S. S already runs B8 on our own `decode_gated_delta_rule` and so1 path. ### 4. Ideas in their drafter that S lacks 1. **K-by-batch, K>3 at B≤4** (they use K=11/7). This is the only real candidate. **Estimate (not measured):** assume geometric acceptance, E[tok/step] = (1−a^(K+1))/(1−a), with our acc. B4/4k a=0.695 gives K3 2.51 and K7 3.10 (+23% tokens/step). B1/4k a=0.589 gives 2.18 and 2.40 (+10%). B4/32k a=0.571 gives 2.18 and 2.31 (+6%). These are upper bounds before the extra cost of 4 more draft steps and B×8-row verify. Our step is 37–44 ms at K3 (local ABBA `step_ms_est`), so the net could be ≈0. This is still gated on #212 (L1) / #191 (drafter quality). 2. Ring-mode fp32 state (resume from accepted slot, no commit). **Not a win for us.** so1 bf16 already skips the commit and moves less state (2T+2 vs 3, see above). 3. Batched verify layout B×(K+1) ≤ 32 rows. **We already match it.** B8×4 = 32. 4. Padding rows, page tables that change between steps, and join-TTFT −7…27% (#60840). These are serving-side and tracked in #244, not drafter perf. 5. No lookup or acceptance trick. Their acceptance is plain greedy prefix. #236 lookup is ours alone. ### 5. Recommendation and minimal screen plan **(a), narrow:** a lever PR adding `QWEN36_MTP_BATCH_K_BY_BUCKET 8:3,4:5,2:5,1:5`, plus a K=7 arm if the desk L1 check (#212) passes for 4×8 rows. This is config only, with no new kernels. - Screen: one arm vs CONTROL S, B1/B4 × 4k/32k, 1024 out, reps 1. Skip B8 (unchanged). Kill if dTG < +2% in both B4 cells. Gates (gsm8k, retrieval, equiv) run only if it wins. - **(b) a full switch: no.** It is slower in all 6 comparable cells and falls back to plain decode above B4 on TP2. - Nothing here needs a card until the #212 L1 desk check is done. No cards and no code were used for this eval.
Author
Member

K sweep triage on S2 (#249, run 796, 1 rep)

Kill rule: drop an arm if its TG per user is below +2% vs S2 in every cell it has. TG tok/s per user vs S2 from the same run:

arm B1/8k B1/32k B4/8k B4/32k B8 call
S2 (K=3) 74.10 65.27 74.12 62.29 65.31 / 51.94 control
ks5 72.40 (-2.3%) 60.75 (-6.9%) 77.77 (+4.9%) 60.94 (-2.2%) not run survives on B4/8k only
ks7 - - - - - boot failed (TT_THROW program.cpp:1932)
ks9 - - - - - ttx run timed out (exit 124, 40 min)
ks11 50.10 (-32.4%) 43.59 (-33.2%) - - - drop
ks13 46.51 (-37.2%) 40.02 (-38.7%) - - - drop
ks15 - - - - - boot failed (TT_THROW program.cpp:1932)
  • ks11 and ks13 are dropped. Their acceptance falls to 0.12-0.17 against S2's 0.50-0.60, so the longer drafts mostly get thrown away.
  • ks5 technically survives on one cell (+4.9% at B4/8k), but it loses everywhere else and has no B8 cell. Single rep, so +4.9% is inside what one noisy cell can do. No CONTROL change from this sweep.
  • ks7 and ks15 hit the same boot TT_THROW at program.cpp:1932, and ks9 hung until the timeout; none of them produced a number. Not chasing those before the 10-24 serving deadline.
  • Per go/no-go policy this stays lever-off (S2 keeps K=3). The records are in run 9329's bench-runs artifact.
## K sweep triage on S2 (#249, run 796, 1 rep) Kill rule: drop an arm if its TG per user is below +2% vs S2 in every cell it has. TG tok/s per user vs S2 from the same run: | arm | B1/8k | B1/32k | B4/8k | B4/32k | B8 | call | | --- | --- | --- | --- | --- | --- | --- | | S2 (K=3) | 74.10 | 65.27 | 74.12 | 62.29 | 65.31 / 51.94 | control | | ks5 | 72.40 (-2.3%) | 60.75 (-6.9%) | 77.77 (+4.9%) | 60.94 (-2.2%) | not run | survives on B4/8k only | | ks7 | - | - | - | - | - | boot failed (TT_THROW program.cpp:1932) | | ks9 | - | - | - | - | - | ttx run timed out (exit 124, 40 min) | | ks11 | 50.10 (-32.4%) | 43.59 (-33.2%) | - | - | - | drop | | ks13 | 46.51 (-37.2%) | 40.02 (-38.7%) | - | - | - | drop | | ks15 | - | - | - | - | - | boot failed (TT_THROW program.cpp:1932) | - ks11 and ks13 are dropped. Their acceptance falls to 0.12-0.17 against S2's 0.50-0.60, so the longer drafts mostly get thrown away. - ks5 technically survives on one cell (+4.9% at B4/8k), but it loses everywhere else and has no B8 cell. Single rep, so +4.9% is inside what one noisy cell can do. No CONTROL change from this sweep. - ks7 and ks15 hit the same boot TT_THROW at program.cpp:1932, and ks9 hung until the timeout; none of them produced a number. Not chasing those before the 10-24 serving deadline. - Per go/no-go policy this stays lever-off (S2 keeps K=3). The records are in run 9329's `bench-runs` artifact.
Author
Member

K sweep on S2, final (Tenstorrent agent, 09:05 CEST): the #249 confirm gate (run 822, https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9371) measured ks5 vs S2 K=3 at B4: +3.7% TG/user at 8k (77.53 vs 74.74) and -1.9% at 32k (60.63 vs 61.81), TTFT identical. Together with run 796 (ks5 only wins at B4/8k, ks7/ks15 boot failures, ks9 timeout, ks11/ks13 -32 to -39%) this is a no-go for changing the default: K stays 3. #249 merges with the arms kept screen-only and the result documented. Details in #249 (#249).

K sweep on S2, final (Tenstorrent agent, 09:05 CEST): the #249 confirm gate (run 822, https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9371) measured ks5 vs S2 K=3 at B4: +3.7% TG/user at 8k (77.53 vs 74.74) and -1.9% at 32k (60.63 vs 61.81), TTFT identical. Together with run 796 (ks5 only wins at B4/8k, ks7/ks15 boot failures, ks9 timeout, ks11/ks13 -32 to -39%) this is a no-go for changing the default: K stays 3. #249 merges with the arms kept screen-only and the result documented. Details in #249 (https://git.bitp.cz/bitpartner/tt-stack/pulls/249).
Member

Closed by the recorded verdicts: S beat their spec path in all comparable cells (1.09–2.41×, in-issue), their gate falls back to plain above B4 on TP=2, and the one portable idea (deeper K at B≤4) is a measured NO-GO (R-2026-10-18-k-sweep-s2: ks5 −1.9%, ks11/13 −32…−39%, ks7/15 boot failures). Upstream #59957 merged 2026-10-13; its serving follow-up is tracked as #244. Verified 2026-11-18.

Closed by the recorded verdicts: S beat their spec path in all comparable cells (1.09–2.41×, in-issue), their gate falls back to plain above B4 on TP=2, and the one portable idea (deeper K at B≤4) is a measured NO-GO (R-2026-10-18-k-sweep-s2: ks5 −1.9%, ks11/13 −32…−39%, ks7/15 boot failures). Upstream #59957 merged 2026-10-13; its serving follow-up is tracked as #244. Verified 2026-11-18.
Owner

agent-gateway closeout (closed): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (closed): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack#213
No description provided.