MTP GDN state-once (R-2026-10-02-mtp-gdn-state-once) + c152-c155 diagnostics #144

Merged
Grok merged 22 commits from serving-throughput into master 2026-10-02 05:02:13 +02:00
Owner

LEDGER R-2026-10-02-mtp-gdn-state-once, cycle c155.

Lever: QWEN36_MTP_GDN_STATE_ONCE=1. The MTP verify reads each row's GDN recurrent state once and keeps all T tokens in L1. The commit recomputes the accepted state exactly. State traffic per layer drops from 8 to 3 units at T=3.

Served, TP=2, k8v4. Two reps of …-warm-kb-cm-so1 against a 7-rep cm band that includes an interleaved control:

cell wall TG
B4/4k −3.3% −4.0%
B4/32k −2.0% −3.7%
B8 inside the band (−0.7% / −0.8%) −1.2% / −1.5%

Gates:

  • ttsim is bit-exact at (3,8), (4,4), (4,2) and (4,1).
  • The on-device self-test passes, and refused the must-fail boot.
  • equiv is NEAR_TIE and identical to cm.

Also in this PR:

  • the c152-c155a diagnostics: device accept inert, depth screen dead, and the verify class and op itemisation (QWEN36_MTP_VERIFY_CLASS_ABLATE, QWEN36_MTP_VERIFY_DOUBLE, both opt-in);
  • the slot-copy banner fix across 35 arms;
  • the mtp-verify-itemise skill.

Production redeploy stays the owner's call.

🤖 Generated with Claude Code

LEDGER `R-2026-10-02-mtp-gdn-state-once`, cycle c155. **Lever:** `QWEN36_MTP_GDN_STATE_ONCE=1`. The MTP verify reads each row's GDN recurrent state once and keeps all T tokens in L1. The commit recomputes the accepted state exactly. State traffic per layer drops from 8 to 3 units at T=3. **Served, TP=2, k8v4.** Two reps of `…-warm-kb-cm-so1` against a 7-rep cm band that includes an interleaved control: | cell | wall | TG | |---|---|---| | B4/4k | −3.3% | −4.0% | | B4/32k | −2.0% | −3.7% | | B8 | inside the band (−0.7% / −0.8%) | −1.2% / −1.5% | **Gates:** - ttsim is bit-exact at (3,8), (4,4), (4,2) and (4,1). - The on-device self-test passes, and refused the must-fail boot. - equiv is NEAR_TIE and identical to cm. Also in this PR: - the c152-c155a diagnostics: device accept inert, depth screen dead, and the verify class and op itemisation (`QWEN36_MTP_VERIFY_CLASS_ABLATE`, `QWEN36_MTP_VERIFY_DOUBLE`, both opt-in); - the slot-copy banner fix across 35 arms; - the `mtp-verify-itemise` skill. Production redeploy stays the owner's call. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Grok added 22 commits 2026-10-02 05:01:57 +02:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c152 overlap timing showed device accept moves 3.3 ms from accept into wait_c:
the step is device-verify-bound (39.7 of 49.8 ms at B8/4k). Fewer verify rows
is the remaining cheap knob; K=3@B8 was dead (c148), the K=1 side is unmeasured.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c150 read the ~10 ms host chain as serial. Moving accept on device (branch
mtp-device-accept) cut accept 3.4 -> 0.1 ms but wait_c grew by the same amount;
step total unchanged and served wall -0.7..+1.5% vs a 5-rep cm band. The served
MTP step is device-verify-bound (39.7 of 49.8 ms at B8/4k).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c152 showed the served MTP step is device-verify-bound and c153 r1 that fewer verify rows
lose (b8k1 +8.5%/+4.4%, b4k2 +2.2%/+0.5%): the verify is ~38-40 ms nearly independent of rows.
Itemise that fixed cost by op class before choosing the next decode bundle. Opt-in, WRONG outputs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The verify is ~fixed per step (c152), so fewer draft tokens only lose acceptance.
With c148's 8:3 loss the warm-kb 8:2,4:3 choice is bracketed on both sides.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Lists replace on inherit, so arms re-listing [expect].banners carried the two
GDN slot-copy banners as unconditional, and any B=1 boot of them was REFUSED
(thatch-gchunk steps 2-14, reported by its owner; cm-g9 had the same bug).
Moved to batched_only, explicit per file; ttx lint clean on all 35.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
MLP 13.1 ms (~81% of floor), attention 6.1->12.6 ms (32k growth = KV read), lm_head 1.7.
c140b shows the GDN recurrence cost scales with rows (state traffic), which c133's
launch-only fold never removed. Next: no-intermediate-state verify + commit recompute.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c154 put GDN+rest at 18.9 ms against a ~6.5 ms weight floor. Doubling one op at a time
(proj / conv-multi / recurrence / norm-gate / out-proj) gives each op's marginal cost
without breaking outputs, so the records pass and the commit path stays intact.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: c154 put GDN+norms at 18.9 ms of a 39.7 ms B8/T3 verify, c140b/c155a put the recurrence at ~2.2-2.6 ms per
candidate scaling with rows, and c133's multi-token program (one launch, every per-token state still written) was
inert. So the cost was believed to be recurrent-state bytes: the sequential verify reads and writes a full state per
candidate (2T units/layer) and the slot commit reads hist_idx and writes it (2 more).

This keeps c133's kernel (the served decode step verbatim, state carried in L1 at the IO dtype) and drops every state
write from the verify: one program reads the base state once, reads q/k/v/beta/g straight from CONV_MULTI's batch-M
conv_gates output (no split programs), writes o for all T*Bw rows and a 576 B stick of each token's gathered
k/v/beta/g. The commit replaces commit_rec: per row it reads n = idx+1 from the gslot page on device (one-word CB to
the compute via read_tile_value, no host round trip, no beta=0/g=0 mask), recomputes n tokens from the base state
and writes it once. 2T+2 state units/layer -> 3. Guards: refuses without STATE_SLOT/CONV_MULTI/NORM_GATE/DECODE_BF16;
warmup self-test bitwise vs the sequential op + commit_rec, fail closed; MUSTFAIL (last row +1 token) refuses the
boot. Unset: the old code path.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The lever was code-only before this commit, with no evidence behind it. The ttsim record shows the verify o, the untouched state and the masked
recompute commit are bitwise equal to the sequential verify + commit_rec for random idx pages incl. SKIP and
out-of-bucket entries. CORRECTNESS_ONLY: ttsim has no timing model; no speed is claimed. Arms so1/-mf/-ot queue
the on-card gate (self-test, must-fail refusal, overlap timing).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c140b/c155a put the GDN recurrence (state traffic) at the top of the verify; c133 only cut
launches. Reading each row's state once and recomputing the accepted state in the commit
takes 3.2-4.0 ms off the verify; 2.1-2.4 ms reappears in the commit (wait_c).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merge branch 'mtp-gdn-state-traffic' into serving-throughput
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 9s
tt-stack-ci / Report upstream drift (pull_request) Successful in 7s
tt-stack-ci / Build simulators and check the host module (push) Failing after 7s
tt-stack-ci / Report upstream drift (push) Successful in 7s
e1efaa1fc4
Grok merged commit e1efaa1fc4 into master 2026-10-02 05:02:13 +02:00
Author
Owner

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

agent-gateway closeout (merged): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!144
No description provided.