cm-g9: TTFT -3% at 32k (grid9 + chunk 2304 on conv-multi), gated; B=1/B=32 results #143

Merged
Grok merged 22 commits from serving-throughput into master 2026-10-01 20:11:50 +02:00
Owner

Ships LEDGER R-2026-10-01-cm-g9 and its supporting results.

  • cm-g9 (prefill chunk 2304 + AGMM 11x9, on conv-multi):
    • TTFT max -3.1% (B8/32k) and -3.0% (B4/32k); PP +3%.
    • Makespan within +-1.1%; the outputs change, so MTP acceptance shifts.
    • Tier-2 gates clean: equiv NEAR_TIE, retrieval 1.0 early and late at 16k/32k, GSM8K 293/300.
    • Opt-in arm; ...-warm-kb-cm stays the makespan arm. This is a trade-off for the owner.
  • c146b: the GDN value split is dead at B=1 too (TG +2.0%).
  • B=32 stress runs at a 2 GiB trace region (4k 65.9 s, 16k 157.3 s).
  • c148: K=3 at B8 on cm loses on wall.
  • STATUS gets a per-B best-arm table; synthesis c140-c147.

Production is unchanged.

🤖 Generated with Claude Code

Ships LEDGER `R-2026-10-01-cm-g9` and its supporting results. - **cm-g9** (prefill chunk 2304 + AGMM 11x9, on conv-multi): - TTFT max -3.1% (B8/32k) and -3.0% (B4/32k); PP +3%. - Makespan within +-1.1%; the outputs change, so MTP acceptance shifts. - Tier-2 gates clean: equiv NEAR_TIE, retrieval 1.0 early and late at 16k/32k, GSM8K 293/300. - Opt-in arm; `...-warm-kb-cm` stays the makespan arm. This is a trade-off for the owner. - **c146b:** the GDN value split is dead at B=1 too (TG +2.0%). - **B=32 stress** runs at a 2 GiB trace region (4k 65.9 s, 16k 157.3 s). - **c148:** K=3 at B8 on cm loses on wall. - STATUS gets a per-B best-arm table; synthesis c140-c147. Production is unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Grok added 22 commits 2026-10-01 20:11:42 +02:00
Before: the next prefill bundle was ranked from the c101/c104/c107 16k profiles, whose only per-op view is
by_kernel_chip0. That files the fused AGMM under ccl:tt_fabric_mux.cpp together with every other fabric-mux
program, averages all chunks of the prefill (so the SDPA share at depth is hidden), and no wb arm carried the
shipped d8k16 + nhp + tail + K8/V4 set.

Now:
- wb arm wb-...-d8k16-nhp-tail-k8v4 inherits the served best arm (same cache key 412e7cd8, lint OK); gate_B [8]
  because the tail arm refuses B=1.
- wb_backend.release_traces frees the tail arm's slot-copy traces: capture_gdn_slot_copy_traces overwrites the
  ids without releasing, so each `wb set` recapture would have leaked ~300 MiB of TRACE region.
- wb_core profile summary adds by_op_chip0 (keyed by ttnn op dir, with per-op duration clusters, so the AGMM
  SwiGLU role is its 64-call/chunk cluster), chunks_chip0 (per-chunk split from the conv1d markers, first/last
  chunk op tables) and the sync-time clock per chip.
- tools/ttx/prefill-op-share.py: op class -> ms/chunk, % chunk wall, cores, TF/s or GB/s, % of the §14 roofline,
  top-N; --basis last, --wall (wb prefill chunk_ms_at_depth), --aiclk-tsv/--mark rescale. Unit-tested on the c107
  stock1 16k record (AGMM+mux 140.1 ms/chunk, w2 29.8 ms at 71% of LoFi on 100 cores, matching p2/§14).
- bench/probes/prefill_opprof/run.sh: one wb process: wall at 0/16k/30k x5, profiles whose last chunk sits at
  16k and 30k, must-fail SDPA LoFi off, stock2 drift band, AICLK/power at 0.5 s. Not run.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Belief before: nt11x8 AGMM runs on 88 of 99 usable cores because 64 tile rows (S=2048)
do not split over 9 grid rows, so row 8 idles through ~133 ms of every 358 ms chunk.
A 2304 chunk (72 tile rows = 8/row x 9) fills the 11x9 grid at unchanged per-core work
and unchanged K order (bit-exact per role), if the factory accepts 2 links x 5+4 workers.

- tp_common: agmm_grid9(role, S, nt) picks (11,9)/untransposed/nwpl=5 only when nt11x8 is
  engaged and M%9==0, else logs a fallback; role tags on every AGMM call site
  (mlp, gdn_in, attn_in, gdn_out, attn_out) so (c) can pick gate|up alone.
  QWEN36_AGMM_GRID9_MUSTFAIL swaps M row-groups before each 11x9 call (must move logits).
- model/qwen36_vllm: QWEN36_PREFILL_CHUNK (multiple of 128; refused with prefix caching)
  replaces the 2048 asserts, adds the chunk as a masked bucket, and sizes the warmup
  chunk trace; banner when != 2048. SDPA q256 GQA mcast stays eligible (9 x 12 = 108).
- wb: knobs registered; prefill records a last-token logits fingerprint vs the first
  prefill of that length (the must-fail rung reads it); chunk from the model, not 2048.
- fixture: chunk-plan test covers the new chunk helpers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ttsim cannot show the card's row-9 mux placement under a 9-row grid nor run the fused
SwiGLU, so the first queue step is a standalone 2-card op probe (no model, own deadline
and reset); the wb ladder (stock a c a2 stock2 c2304 mf, 16384/30720 x5, AICLK 0.5 s)
runs only on its MEASURED verdict and ranks on per-prompt wall, because a 2304 chunk
changes the chunk count and tail bucket. Served arms -g9/-g9mlp exist for promotion only.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Belief before: QWEN36_PREFILL_CHUNK was a live wb knob, since the chunk trace is
re-captured on every `wb set`. The c134 ladder disproved it: every set to 2304 in a
2048-booted process died with TT_FATAL slice_device_operation.cpp:126 "Ends 2304 must
be <= 2048" (bench/runs/ttx-wb-...-nhp-tail-k8v4-20261001T005024Z.jsonl). By
code-read, model._alloc_vision_merge_buffers sizes the persistent vision-splice
buffers (_vis_buf / _vis_mask_buf, [1,1,chunk,dim]) at the first capture and returns
early on every re-capture, so _apply_vision_merge slices a 2048 buffer to 2304. The
other chunk buffers (token, rope, page table) are reallocated per capture; the GDN
B=1 prefill scratch is not sized by the chunk.

- arm wb-...-nhp-tail-k8v4-c2304: the k8v4 wb arm with QWEN36_PREFILL_CHUNK=2304 in
  the boot env (ttx lint OK).
- run.sh: four boots, A1[stock] B1[c2304 a c] A2[stock2] B2[a2 mf]. Every rung,
  controls included, goes through one `wb set` re-capture. GRID9 stays a live knob.
  `wb prefill --chunk` is the session's chunk; the ruled lengths 16384 and 30720 are
  the same in both sessions. Banners are grepped per session.
- verdict.py: rules on 16384/30720 only; the ctx+chunk lengths are reported per rung.
  The kill/promote rule is unchanged.
- wb_knobs: QWEN36_PREFILL_CHUNK removed from the live registry, so a set is refused
  up front instead of TT_FATALing.
- queue fragment bench/queues/c134b-agmm-grid.txt: doctor, then the ladder. The hw
  probe is already MEASURED. Not appended to the live queue.
- adds the c134 hw probe, aiclk, failed wb records and the verdict as evidence.

No new speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Belief before: the 11x9 AGMM grid at a 2304 chunk would beat stock 2048 by ~4% of chunk wall.
The ladder says HOLD for 11x9 (a) and KILL for gate|up only (c); the attribution rung c2304
(2304 chunk, grid off) is +12.2% / +8.4%, so 11x9 is ~-10% at an equal chunk and the 2304 chunk
itself costs +8..12% at these lengths. Records kept as the evidence c134c is designed from.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Belief before (c134b): a 2304 chunk is +8..12% slower per prompt than 2048, so 11x9 only breaks
even. What the c134b records say instead: 16384 and 30720 are exact multiples of 2048, so stock
paid no tail while 2304 paid a 256 / 768 tail; the 2304 per-token chunk cost (chunk_ms_at_depth)
is only +1..6% over stock (noisy). Est: the tail is ~200-310 of +320 ms at 16384 and ~150-290 of
+436 ms at 30720. The per-chunk part has a code-read suspect: nt11x8 at 72 tile rows gives
9 rows/core = AGMM M blocks 4+4+1, and the op streams the weight slice once per M block (3 passes
for 9 rows vs 2 for 8); the c134 hw probe has 11x9 at -17/-18% vs -11% from cores alone.

- tp_common: QWEN36_AGMM_MBLOCK (matmul roles, per call, default 4 = unchanged) and a banner for
  QWEN36_AGMM_MLP_MBLOCK; both log the per-core block split. Bit-exact by construction (K order).
- wb_knobs: QWEN36_AGMM_MBLOCK registered.
- prefill-op-share.py: work models scale with the record's chunk; ms_per_2048_tok column; 11x9
  core count from the GRID9 banner.
- arm wb-...-k8v4-c4608 (lint OK): est to TT_FATAL at warmup (GDN qkvzab in L1 ~690 KB/bank at
  4608); q256 GQA SDPA multicast not eligible there (216 > 110).
- run_c134c.sh / verdict_c134c.py / queue fragment c134c: one boot per chunk (A 2048, B 2304,
  C 4608), ruled on wall at 18432 (tail-free in all) and 16484 / 30820 (one tail in all), direct
  tail-cost and per-token chunk-cost rungs, one post-set per-op profile per A/B session, m8/m3/m5
  M-block rungs, phase-timing rungs, must-fail kept, AICLK logged. Not run; not in the live queue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Run 1's ladder was all REFUSED; only the phase-timing rungs landed. They show chunk 2304 is +9.6% (16k) /
+7.0% (30k) per token vs 2048 with no tail at either, so the 2304 penalty is per chunk, not tail structure.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c134c (wb, equal tails): grid9 at 2304 is -3.0..-3.3% prefill wall vs stock 2048 and bit-exact per op.

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>
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>
STATUS c149: cm-g9 gates clean, ships as TTFT arm
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 12s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 15s
tt-stack-ci / Build simulators and check the host module (push) Failing after 6s
tt-stack-ci / Report upstream drift (push) Successful in 7s
84b5dfa9f3
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit 84b5dfa9f3 into master 2026-10-01 20:11:50 +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!143
No description provided.