decode: MR dual-NoC weight stream — one-card gate only (mesh hung c99) #153

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

Grill\n- Call: WATCH\n- Hypothesis: A dual-NoC weight stream could be large upside, but mesh c99 hung; use a one-card, no-model gate to validate the mechanism before risking a model run.\n- Depends: #90; mesh c99 hang and LEVERS review.\n- Measure first: one-card no-model stream correctness, liveness, bandwidth, and bounded completion.\n- Out of scope: full-model mesh rollout until the gate passes.\n- Refs: #90, mesh c99, LEVERS.

## Grill\n- **Call:** WATCH\n- **Hypothesis:** A dual-NoC weight stream could be large upside, but mesh c99 hung; use a one-card, no-model gate to validate the mechanism before risking a model run.\n- **Depends:** #90; mesh c99 hang and LEVERS review.\n- **Measure first:** one-card no-model stream correctness, liveness, bandwidth, and bounded completion.\n- **Out of scope:** full-model mesh rollout until the gate passes.\n- **Refs:** #90, mesh c99, LEVERS.
Owner

The 'mesh hung in c99' premise refers to rev 1. Rev 3 (in pk3r) ran in-model at c103, c104 and c108 without a hang, and gave no gain or a slight loss. So this gate is low priority, but it is cheap.

  • Gate: one card, no model, on branch prefill-prof (35a0db4).
    • It covers the 8 served per-chip MR roles at M=32 (bf4, served program configs), with dual-NoC off, on and must-fail.
    • Per role it checks eager output against a host reference, sequence and trace replay bitwise, device µs and GB/s per call, and how many readers move to NOC1.
  • Safety:
    • Card 1 only. Each step has a deadline enforced by a separate supervisor process.
    • After a hang it first tries a fresh open, which soft-resets the card. It resets card 1 alone only if that fails.
    • A record is written on every exit path.
  • ttsim: PASS. On and must-fail are bitwise equal to off at every role, PCC ≥ 0.99995. This is correctness only; ttsim says nothing about hangs. Record: bench/runs/mr-dual-noc-gate-ttsim-20261002T211439Z.jsonl.
  • Queued last in block c164-prof of card queue c160 (~25–40 min on card 1).
The 'mesh hung in c99' premise refers to rev 1. Rev 3 (in pk3r) ran in-model at c103, c104 and c108 without a hang, and gave no gain or a slight loss. So this gate is low priority, but it is cheap. - **Gate:** one card, no model, on branch `prefill-prof` (35a0db4). - It covers the 8 served per-chip MR roles at M=32 (bf4, served program configs), with dual-NoC off, on and must-fail. - Per role it checks eager output against a host reference, sequence and trace replay bitwise, device µs and GB/s per call, and how many readers move to NOC1. - **Safety:** - Card 1 only. Each step has a deadline enforced by a separate supervisor process. - After a hang it first tries a fresh open, which soft-resets the card. It resets card 1 alone only if that fails. - A record is written on every exit path. - **ttsim: PASS.** On and must-fail are bitwise equal to off at every role, PCC ≥ 0.99995. This is correctness only; ttsim says nothing about hangs. Record: `bench/runs/mr-dual-noc-gate-ttsim-20261002T211439Z.jsonl`. - **Queued** last in block c164-prof of card queue c160 (~25–40 min on card 1).
Owner

One-card gate PASSED on card 1 (TP=1, fast dispatch, no model). All 8 served MR roles are bitwise-equal off vs on, with PCC vs host ≥ 0.99995. Device time drops 6.5–14.6%:

role off µs on µs Δ
attn_out 26.2 22.4 −15%
gdn_out 26.1 22.4 −15%
lm_head 207.7 185.0 −11%
w1 61.6 55.8 −9%
w3 61.5 55.7 −9%
qkvzab 56.3 51.3 −9%
w2 59.5 55.4 −7%
attn_qkv 53.0 49.5 −7%
  • The must-fail was 32–52% slower on every role. No hang, no reset.
  • Next: a served A/B on the new best arm (C-split), being prepared. Earlier in-model runs (c103/c104/c108) showed no gain, and the A/B will say whether that still holds.
  • Record: bench/runs/mr-dual-noc-gate-20261002T220643Z.jsonl (branch prefill-prof).
**One-card gate PASSED** on card 1 (TP=1, fast dispatch, no model). All 8 served MR roles are bitwise-equal off vs on, with PCC vs host ≥ 0.99995. Device time drops 6.5–14.6%: | role | off µs | on µs | Δ | |---|---|---|---| | attn_out | 26.2 | 22.4 | −15% | | gdn_out | 26.1 | 22.4 | −15% | | lm_head | 207.7 | 185.0 | −11% | | w1 | 61.6 | 55.8 | −9% | | w3 | 61.5 | 55.7 | −9% | | qkvzab | 56.3 | 51.3 | −9% | | w2 | 59.5 | 55.4 | −7% | | attn_qkv | 53.0 | 49.5 | −7% | - The must-fail was 32–52% slower on every role. No hang, no reset. - Next: a served A/B on the new best arm (C-split), being prepared. Earlier in-model runs (c103/c104/c108) showed no gain, and the A/B will say whether that still holds. - Record: `bench/runs/mr-dual-noc-gate-20261002T220643Z.jsonl` (branch prefill-prof).
Owner

Served A/B on the C-split best (one boot, C A C A, B8/4/1 x 4k/32k): MR dual-NoC (-mrdn) is slower in every cell, wall +0.6…+1.6% (mean), TG up to +1.7% at B1. The one-card per-role gain (−6.5…−14.6% device time) does not carry into served decode on two cards. Not shipped. Record: bench/runs/perf-loop-c166-mrdn-verdict-20261003T070500Z.jsonl (master 90795bf).

Served A/B on the C-split best (one boot, C A C A, B8/4/1 x 4k/32k): MR dual-NoC (-mrdn) is slower in every cell, wall +0.6…+1.6% (mean), TG up to +1.7% at B1. The one-card per-role gain (−6.5…−14.6% device time) does not carry into served decode on two cards. Not shipped. Record: bench/runs/perf-loop-c166-mrdn-verdict-20261003T070500Z.jsonl (master 90795bf).
Author
Member

Served dual-NoC was slower in every cell (wall +0.6…+1.6%, c166) and was not shipped. No further card.

Served dual-NoC was slower in every cell (wall +0.6…+1.6%, c166) and was not shipped. No further card.
Author
Member

Placement map (prefill and decode). No further card.

c99 is not c166. c99 is patch 0032 rev 1: one RISC on both NoCs (DM_DYNAMIC_NOC); the in-model must-fail hung the mesh in decode warmup (bench/runs/perf-loop-c99-dualnoc-hang-verdict-20260928T2220Z.jsonl, docs/LEVERS.md). Rev 2 hung one bare card on the second program (bench/runs/perf-loop-c102-dualnoc-pk3p-hang-verdict-20260929T0400Z.jsonl, bench/runs/mr-dual-noc-hw1card-20260929T034427Z.jsonl). c166 is rev 3 on the C-split arm (TT_MR_IN1_DUAL_NOC=1, odd pure-in0 readers swapped onto NOC1, DM_DEDICATED_NOC). It completed. Mean wall of the two reps is +0.6…+1.6% in every cell (bench/runs/perf-loop-c166-mrdn-verdict-20261003T070500Z.jsonl; one rep at B4/4k was −0.74%, the pair mean is still up). Not shipped. Do not rerun that flag. Comment 11137 stands; this is the map behind it.

Shipped. Decode SDPA KV only: K on the reader NoC, V on the writer NoC, DM_DEDICATED_NOC, TT_SDPA_DEC_KV_DUAL_NOC=1 (LEDGER R-2026-09-29-dn). Not matmul weights. The factories already split streams: AGMM weights NOC0 / activations NOC1, decode MR the same, prefill SDPA reader NOC0 / writer NOC1, prefill w2 and reduce-scatter one RISC per NoC (docs/OP-DATASHEETS.md P1, D1, P4, P5).

Measured loss. The c166 weight stream above. Workbench c108 put 0032 at +0.13 ms/step (same LEDGER row). The one-card role speedup (comment 11057) did not survive two-card serving (comment 11086). docs/LEVERS.md: reopen only with a new reader shape.

Hung, do not retry. c99/c102 (DM_DYNAMIC_NOC). Own-core NoC loopback hung twice and wedged Ethernet (bench/runs/perf-loop-c91-reader-risc-bisect-verdict-20260928T0700Z.jsonl); hands off in LEDGER D-2026-09-29-decode-standing-orders.

Never measured, and not a card. Prefill AGMM weight-split across both NoCs: no A/B, but AGMM is compute-bound (~7,300 FLOP/B, ~58% of padded peak; docs/analysis/tp2-levers-20260929/p2-agmm.md) and NOC1 is already the activation mcast. Prefill K-vs-V on the second NoC: no A/B, and KV DRAM is ~0.9 ms/chunk against ~24 ms LoFi (OP-DATASHEETS P4). Reduce-scatter is already both RISCs; the cfg sweep was served-inert (c70); overlap stays on #108. Lottolabs' QWEN36_PACKED_DUAL_NOC (gate/up, GDN mega, lm_head, plus QKV under the optimized flag; one output tile row M=1..32; K-range split; both DM processors dynamic; unlinked activation mcast) is a different reader than 0032 rev 3 and has no 2× A/B here. It is still a decode weight stream, and dynamic NoC on both DM processors is the mode that hung. Their own line: projection bandwidth is not an end-to-end decode speedup. They leave streamed/2D prefill and, on that path, the down projection off it (runtime/qwen36/README.md).

Lottolabs, so the name is not a trail. Current card: previous release was dual-noc-mtp1-20260920; LocalMaxxing 23.8 tok/s MTP-1 is that release, not gptq-ctx2-20261002 (49.1 tok/s DFlash2). https://huggingface.co/Lottolabs/Qwen3.8-27B-TT-Mixed-BFP4-BFP8-P150 reproduction.json is gptq-ctx2-20261002 and names no NoC. The placement text is runtime/qwen36/README.md and evidence/previous-dual-noc-mtp1-20260920/dual-noc-results.json. runtime/qwen-runtime-support.json is path→sha256 only, and it is not in this repo.

Next: no further card. Prefill write-up, desk not a boot: #161. Decode TG on the shipped arm remains LEDGER R-2026-10-03-gdc-cpk (B1/4k 15.51 ms, B8/32k 22.56 ms). The ~61% prefill share of B8/32k wall is R-2026-10-01-cm-g9.

## Placement map (prefill and decode). No further card. c99 is not c166. c99 is patch 0032 rev 1: one RISC on both NoCs (`DM_DYNAMIC_NOC`); the in-model must-fail hung the mesh in decode warmup (`bench/runs/perf-loop-c99-dualnoc-hang-verdict-20260928T2220Z.jsonl`, `docs/LEVERS.md`). Rev 2 hung one bare card on the second program (`bench/runs/perf-loop-c102-dualnoc-pk3p-hang-verdict-20260929T0400Z.jsonl`, `bench/runs/mr-dual-noc-hw1card-20260929T034427Z.jsonl`). c166 is rev 3 on the C-split arm (`TT_MR_IN1_DUAL_NOC=1`, odd pure-in0 readers swapped onto NOC1, `DM_DEDICATED_NOC`). It completed. Mean wall of the two reps is +0.6…+1.6% in every cell (`bench/runs/perf-loop-c166-mrdn-verdict-20261003T070500Z.jsonl`; one rep at B4/4k was −0.74%, the pair mean is still up). Not shipped. Do not rerun that flag. Comment 11137 stands; this is the map behind it. **Shipped.** Decode SDPA KV only: K on the reader NoC, V on the writer NoC, `DM_DEDICATED_NOC`, `TT_SDPA_DEC_KV_DUAL_NOC=1` (LEDGER `R-2026-09-29-dn`). Not matmul weights. The factories already split streams: AGMM weights NOC0 / activations NOC1, decode MR the same, prefill SDPA reader NOC0 / writer NOC1, prefill w2 and reduce-scatter one RISC per NoC (`docs/OP-DATASHEETS.md` P1, D1, P4, P5). **Measured loss.** The c166 weight stream above. Workbench c108 put 0032 at +0.13 ms/step (same LEDGER row). The one-card role speedup (comment 11057) did not survive two-card serving (comment 11086). `docs/LEVERS.md`: reopen only with a new reader shape. **Hung, do not retry.** c99/c102 (`DM_DYNAMIC_NOC`). Own-core NoC loopback hung twice and wedged Ethernet (`bench/runs/perf-loop-c91-reader-risc-bisect-verdict-20260928T0700Z.jsonl`); hands off in LEDGER `D-2026-09-29-decode-standing-orders`. **Never measured, and not a card.** Prefill AGMM weight-split across both NoCs: no A/B, but AGMM is compute-bound (~7,300 FLOP/B, ~58% of padded peak; `docs/analysis/tp2-levers-20260929/p2-agmm.md`) and NOC1 is already the activation mcast. Prefill K-vs-V on the second NoC: no A/B, and KV DRAM is ~0.9 ms/chunk against ~24 ms LoFi (OP-DATASHEETS P4). Reduce-scatter is already both RISCs; the cfg sweep was served-inert (c70); overlap stays on #108. Lottolabs' `QWEN36_PACKED_DUAL_NOC` (gate/up, GDN mega, lm_head, plus QKV under the optimized flag; one output tile row M=1..32; K-range split; both DM processors dynamic; unlinked activation mcast) is a different reader than 0032 rev 3 and has no 2× A/B here. It is still a decode weight stream, and dynamic NoC on both DM processors is the mode that hung. Their own line: projection bandwidth is not an end-to-end decode speedup. They leave streamed/2D prefill and, on that path, the down projection off it (`runtime/qwen36/README.md`). **Lottolabs, so the name is not a trail.** Current card: previous release was `dual-noc-mtp1-20260920`; LocalMaxxing 23.8 tok/s MTP-1 is that release, not `gptq-ctx2-20261002` (49.1 tok/s DFlash2). https://huggingface.co/Lottolabs/Qwen3.8-27B-TT-Mixed-BFP4-BFP8-P150 `reproduction.json` is `gptq-ctx2-20261002` and names no NoC. The placement text is `runtime/qwen36/README.md` and `evidence/previous-dual-noc-mtp1-20260920/dual-noc-results.json`. `runtime/qwen-runtime-support.json` is path→sha256 only, and it is not in this repo. **Next:** no further card. Prefill write-up, desk not a boot: #161. Decode TG on the shipped arm remains LEDGER `R-2026-10-03-gdc-cpk` (B1/4k 15.51 ms, B8/32k 22.56 ms). The ~61% prefill share of B8/32k wall is `R-2026-10-01-cm-g9`.
Member

Dead with records: the one-card gate passed (−6.5…−14.6% device time per role) but the served A/B lost every cell (perf-loop-c166-mrdn-verdict, +0.6…+1.6% wall, B1 TG +1.7%); LEVERS row: reopen only with a new reader shape. The KV-side dual-NoC win (patch 0025-era 0033) shipped separately. Verified 2026-11-18.

Dead with records: the one-card gate passed (−6.5…−14.6% device time per role) but the served A/B lost every cell (perf-loop-c166-mrdn-verdict, +0.6…+1.6% wall, B1 TG +1.7%); LEVERS row: reopen only with a new reader shape. The KV-side dual-NoC win (patch 0025-era 0033) shipped separately. 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#153
No description provided.