MTP: so1 commit recompute off critical path (overlap / fold into C) #149

Closed
opened 2026-10-02 20:32:03 +02:00 by tenstorrent · 6 comments
Member

Grill\n- Call: GO\n- Hypothesis: After #144 state-once, the apparent win is partly cancelled by roughly +2–2.5 ms commit in wait_c; overlapping commit with the next draft, or folding it into C, recovers the gain.\n- Depends: #144; compare against #90 baseline.\n- Measure first: wait_c commit timing, overlap feasibility, end-to-end decode latency and variance.\n- Out of scope: changing model math or broad scheduler redesign.\n- Refs: #90, #144.

## Grill\n- **Call:** GO\n- **Hypothesis:** After #144 state-once, the apparent win is partly cancelled by roughly +2–2.5 ms commit in `wait_c`; overlapping commit with the next draft, or folding it into C, recovers the gain.\n- **Depends:** #144; compare against #90 baseline.\n- **Measure first:** `wait_c` commit timing, overlap feasibility, end-to-end decode latency and variance.\n- **Out of scope:** changing model math or broad scheduler redesign.\n- **Refs:** #90, #144.
Author
Member

Desk implementation for Option A (so1 C-split) is up:

PR: #155
Branch: mtp-so1-cplit (8ed60a0)

What landed

  • OVERLAP + STATE_ONCE (not EARLY_RESEED): C captured as cc (GDN commit) + cd (reseed+drafts).
  • Enqueue cd first; draft event = wait_c; cc waited in _ensure_committed() before next V (host prep can hide so1 commit recompute).
  • Docs: MTP-BATCH §12b + §16f. Desk tests: tests/test_mtp_so1_cplit.py (+ async/host/so1 host suite green).
  • No served numbers claimed. ttsim = correctness only for so1 kernels; wall/wait_c from real ttx/Tracy only.

Measure plan (needs card window) — this grill

  1. ot screen first: …-cm-so1-ot on this tree vs prior so1-ot / cm-ot — wait_c, prep, step total (diagnostic). Hypothesis: wait_c → toward cm (~2.4 ms B8).
  2. Served A/B after: C-split cm-so1 vs cm-so1 (and cm) — wall/TG.
  3. Optional Tracy: confirm CQ order cd then cc.

so-t0 stays a separate TG card unless trivial follow-up.

Desk implementation for Option A (so1 C-split) is up: **PR:** https://git.bitp.cz/bitpartner/tt-stack/pulls/155 **Branch:** `mtp-so1-cplit` (`8ed60a0`) ### What landed - OVERLAP + `STATE_ONCE` (not EARLY_RESEED): C captured as **cc** (GDN commit) + **cd** (reseed+drafts). - Enqueue **cd first**; draft event = `wait_c`; cc waited in `_ensure_committed()` before next V (host prep can hide so1 commit recompute). - Docs: MTP-BATCH §12b + §16f. Desk tests: `tests/test_mtp_so1_cplit.py` (+ async/host/so1 host suite green). - **No served numbers claimed.** ttsim = correctness only for so1 kernels; wall/`wait_c` from real ttx/Tracy only. ### Measure plan (needs card window) — this grill 1. **ot screen** first: `…-cm-so1-ot` on this tree vs prior so1-ot / cm-ot — `wait_c`, prep, step total (diagnostic). Hypothesis: `wait_c` → toward cm (~2.4 ms B8). 2. **Served A/B** after: C-split cm-so1 vs cm-so1 (and cm) — wall/TG. 3. Optional Tracy: confirm CQ order cd then cc. so-t0 stays a separate TG card unless trivial follow-up.
Owner

Brought #155 onto branch mtp-csplit.

  • As written it was inert on every so1 arm. They all run QWEN36_MTP_EARLY_RESEED=1, which #155 skips, so the planned so1-ot screen would have measured the old schedule.
  • Now opt-in: QWEN36_MTP_SO1_CSPLIT=1, banner QWEN36_MTP_SO1_CSPLIT engaged. Under EARLY_RESEED it also splits the commit+draft trace (drafts first, then the commit). Switch class: rebuild, rebinder mtp_gdn.
  • Tests: also fixed 3 test_mtp_k8v4_budget tests that #155 broke.
  • Gate: no must-fail, because this only reorders the same ops on one in-order command queue. The gate is equiv BIT_EXACT vs c135-stack-plain-lp.
  • Queued (card queue c160, block c164-mtp), not run yet:
    1. ot screen, BEST-ot vs BEST-csplit-ot at B8/4k.
    2. Served A/B on one boot, BEST vs BEST-csplit, 2 reps, B 8/4/1 × 4k/32k, plus equiv.
  • Watch item: _ensure_committed blocks the host although the queue is in order, so the saving may show up in prep instead of wait_c.

No numbers yet.

Brought #155 onto branch `mtp-csplit`. - **As written it was inert on every so1 arm.** They all run `QWEN36_MTP_EARLY_RESEED=1`, which #155 skips, so the planned so1-ot screen would have measured the old schedule. - **Now opt-in:** `QWEN36_MTP_SO1_CSPLIT=1`, banner `QWEN36_MTP_SO1_CSPLIT engaged`. Under EARLY_RESEED it also splits the commit+draft trace (drafts first, then the commit). Switch class: rebuild, rebinder `mtp_gdn`. - **Tests:** also fixed 3 `test_mtp_k8v4_budget` tests that #155 broke. - **Gate:** no must-fail, because this only reorders the same ops on one in-order command queue. The gate is equiv BIT_EXACT vs `c135-stack-plain-lp`. - **Queued (card queue c160, block c164-mtp), not run yet:** 1. ot screen, BEST-ot vs BEST-csplit-ot at B8/4k. 2. Served A/B on one boot, BEST vs BEST-csplit, 2 reps, B 8/4/1 × 4k/32k, plus equiv. - **Watch item:** `_ensure_committed` blocks the host although the queue is in order, so the saving may show up in `prep` instead of `wait_c`. No numbers yet.
Owner

Measured and shipped (LEDGER R-2026-10-03-so1-csplit, master via PR #156): the flag-gated port of #155 (QWEN36_MTP_SO1_CSPLIT=1) is the new best arm.

  • Served A/B: one ttx ab boot, C A C A, n=2, B 8/4/1 × 4k/32k. TG is −3.1…−3.8% in all six cells, wall −0.75…−5.5%. B8/32k: 72.07 → 71.52 s, TG 24.33 → 23.49 ms.
  • ot screen (B8/4k): prep 6.45 → 0.12 ms, verify +3.32 ms, step −1.25 ms. The commit recompute moved off the draft path, as hypothesised.
  • Equiv: identical to the parent's result prompt for prompt (NEAR_TIE 6/8, same two prompts, same 0.125 gaps), so numerics do not move.
  • Records: bench/runs/perf-loop-c164-csplit-verdict-20261002T221249Z.jsonl (A/B) and …-20261002T221311Z.jsonl (ot screen).
**Measured and shipped** (LEDGER `R-2026-10-03-so1-csplit`, master via PR #156): the flag-gated port of #155 (`QWEN36_MTP_SO1_CSPLIT=1`) is the new best arm. - **Served A/B:** one `ttx ab` boot, C A C A, n=2, B 8/4/1 × 4k/32k. TG is −3.1…−3.8% in all six cells, wall −0.75…−5.5%. B8/32k: 72.07 → 71.52 s, TG 24.33 → 23.49 ms. - **ot screen (B8/4k):** prep 6.45 → 0.12 ms, verify +3.32 ms, step −1.25 ms. The commit recompute moved off the draft path, as hypothesised. - **Equiv:** identical to the parent's result prompt for prompt (NEAR_TIE 6/8, same two prompts, same 0.125 gaps), so numerics do not move. - **Records:** `bench/runs/perf-loop-c164-csplit-verdict-20261002T221249Z.jsonl` (A/B) and `…-20261002T221311Z.jsonl` (ot screen).
Author
Member

Shipped. R-2026-10-03-so1-csplit, then so-t0 and gdc-cpk. The flag-gated port is PR #156, not #155. This issue can close. Do not re-run the so1-ot screen.

Shipped. R-2026-10-03-so1-csplit, then so-t0 and gdc-cpk. The flag-gated port is PR #156, not #155. This issue can close. Do not re-run the so1-ot screen.
Member

Shipped: QWEN36_MTP_SO1_CSPLIT engaged: C2 is a live banner in bench/arms/ship-cdr8g.toml (LEDGER R-2026-10-03-so1-csplit, n=2, TG −3.1…−3.8% in six cells). Verified 2026-11-18.

Shipped: QWEN36_MTP_SO1_CSPLIT engaged: C2 is a live banner in bench/arms/ship-cdr8g.toml (LEDGER R-2026-10-03-so1-csplit, n=2, TG −3.1…−3.8% in six cells). 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.

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