dn ships: dual-NoC decode SDPA (-2% makespan at 32k); prefill split; AICLK finding #129

Merged
Grok merged 20 commits from serving-throughput into master 2026-09-29 20:15:48 +02:00
Owner

Merges the proven dn win (LEDGER R-2026-09-29-dn) and today's loop work to master. Production is not redeployed; that stays the owner's call.

  • dn: the dual-NoC decode SDPA KV reader (patch 0033, TT_SDPA_DEC_KV_DUAL_NOC=1, image vllm-tt:k2-mr-pk3r), added on top of ab-so.
    • Served, 2 rounds interleaved (ab-so, dn, ab-so, dn):
      • B8/32k makespan −2.02%, TG −4.22%.
      • B4/32k makespan −2.11%.
      • 4k makespan −0.6%; B=1 flat.
    • Greedy output is byte-identical to ab-so on all 8 streams. Retrieval is 1.0 early and late at 16k and 32k.
    • Record: bench/runs/perf-loop-c110-dn-verdict-20260929T1935Z.jsonl.
  • c109 prefill split (TP=2 workbench): attention carries 84% of the growth with context. MLP is about 47% of each chunk and the GDN projections about 30%.
  • Prefill AICLK sag: about 1195 MHz in bursts while temperature stays below 83 °C. The pattern fits a firmware TDP/TDC limit; escalated. HARDWARE.md has the telemetry paths.
  • c107b 2x2: WO carries a prefill win and RM is inert. The earlier "decode interaction" was drift between run blocks and is retracted.
  • Harness: tools/ttx/factorial-2x2.py. The ttnn-incr ship fix and Path I landed in #128.

🤖 Generated with Claude Code

Merges the proven dn win (LEDGER `R-2026-09-29-dn`) and today's loop work to master. Production is not redeployed; that stays the owner's call. - **dn:** the dual-NoC decode SDPA KV reader (patch 0033, `TT_SDPA_DEC_KV_DUAL_NOC=1`, image `vllm-tt:k2-mr-pk3r`), added on top of ab-so. - Served, 2 rounds interleaved (ab-so, dn, ab-so, dn): - B8/32k makespan −2.02%, TG −4.22%. - B4/32k makespan −2.11%. - 4k makespan −0.6%; B=1 flat. - Greedy output is byte-identical to ab-so on all 8 streams. Retrieval is 1.0 early and late at 16k and 32k. - Record: `bench/runs/perf-loop-c110-dn-verdict-20260929T1935Z.jsonl`. - **c109 prefill split** (TP=2 workbench): attention carries 84% of the growth with context. MLP is about 47% of each chunk and the GDN projections about 30%. - **Prefill AICLK sag:** about 1195 MHz in bursts while temperature stays below 83 °C. The pattern fits a firmware TDP/TDC limit; escalated. HARDWARE.md has the telemetry paths. - **c107b 2x2:** WO carries a prefill win and RM is inert. The earlier "decode interaction" was drift between run blocks and is retracted. - **Harness:** `tools/ttx/factorial-2x2.py`. The ttnn-incr ship fix and Path I landed in #128. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Grok added 20 commits 2026-09-29 20:15:41 +02:00
Before: decode SDPA (12.0 of 40.3 ms/chip at TP=2 B=8 32k) issued every K and V tile read from the
reader RISC on NOC0, one 1088-B bf8 tile per request, while the writer RISC's NOC1 carried no KV
traffic. c104 showed 96 -> 48 cores changes nothing, so the op is bound in aggregate by that one
NoC's request stream; the c104 verdict named V-on-the-writer as the next lever.

Change: with TT_SDPA_DEC_KV_DUAL_NOC=1 the factory selects a reader without the paged V reads and a
writer that runs the same per-head V chunk loop into cb_v_in on its own NoC; the page table is shared
through c_9 (reader push_back, writer wait_front). Every core stays DM_DEDICATED_NOC and each RISC
issues only on its own NoC, the shape 0032 rev 3 moved to after revs 1/2 (one RISC on both NoCs)
hung. =mustfail reads every V tile twice. Unset = the stock kernel files and args (the Dockerfile
cmp-checks them).

Evidence: image vllm-tt:k2-mr-pk3r built on nixos (sha256:acef273b..., 0 warnings). ttsim: off/on/
mustfail bitwise equal on 4 paged bf8 cases (tree reduction, cores without data, auto k_chunk,
heads_per_core 2), --repeat 2 and reversed order; a sabotaged writer diverges, so the engaged ELF
runs. ttsim has no timing or NIU model, so hardware hang-safety and any speed are still open:
hw1card.sh (one bare card, B=8 32k) gates run.sh (in-model wb). Not shipped.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner 2026-09-29: levers inert alone can pay together. cph and KCHUNK were flat because decode SDPA was
one-NoC aggregate bound. 0033 (S) lifts that bound. MR dual-NoC (M) shares the second NoC. The analyzer
reports every main effect and interaction; it was checked on synthetic cells with known effects.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: docker logs holds every boot line. cfx-llm2's default driver is journald, which suppressed 889,035
messages in one boot; a 64x banner read 55 and refused a good pfw2-gf control (B=8). An absent-banner check
could equally have passed falsely. Containers now log to their own json-file.

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>
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>
c110: dn ships (LEDGER R-2026-09-29-dn). The decode SDPA KV read was one-NoC bound at 32k; K on the reader NoC and V on the writer NoC cut B8/32k makespan 2.0% and TG 4.2%, greedy byte-identical to ab-so, retrieval 1.0
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 26s
tt-stack-ci / Build simulators and check the host module (push) Failing after 1m20s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 1m49s
tt-stack-ci / Report upstream drift (push) Successful in 15s
06645c1d33
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit 06645c1d33 into master 2026-09-29 20:15:48 +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!129
No description provided.