prefill: dual-NoC placements — desk verdict, no card #161

Open
opened 2026-10-03 16:01:07 +02:00 by tenstorrent · 1 comment
Member

Desk, not a card

No prefill dual-NoC placement is worth a mesh boot. Do not write a kernel until a placement is named that is not one of the rows below. If one is named later, the gate is served A/B at B=4 and B=8, bit-exact vs the parent, and a loss or a hang kills it. This issue is the pickup so that gate is not reinvented.

Prefill is ~61% of B8/32k wall (LEDGER R-2026-10-01-cm-g9, #151) and that share is AGMM compute, not an idle NoC (docs/analysis/tp2-levers-20260929/p2-agmm.md: ~7,300 FLOP/B, AGMM ~58% of padded LoFi peak).

Placements

  • AGMM weights vs activations. Already split: in1 weights RISCV_0/NOC0, in0 activations RISCV_1/NOC1 (docs/OP-DATASHEETS.md P1). No A/B of also splitting the weight read across both NoCs. That would take NOC1 away from activations, which is the failure mode of the decode weight-stream loss on #153 (c166). Lottolabs leaves streamed/2D prefill off dual-NoC (runtime/qwen36/README.md on https://huggingface.co/Lottolabs/Qwen3.8-27B-TT-Mixed-BFP4-BFP8-P150).
  • Prefill KV on the second NoC. No K-vs-V A/B. Reader is already NOC0 and writer NOC1 (OP-DATASHEETS P4). DRAM is not the floor: K+V multicast ~0.9 ms/chunk vs ~24 ms LoFi. The decode case where KV was the bound is already shipped (TT_SDPA_DEC_KV_DUAL_NOC, LEDGER R-2026-09-29-dn).
  • Activation multicast / reduce-scatter. Activations are already the other NoC (P1, P5a). RS already uses reader RISCV_1 and writer RISCV_0 (P5b). The RS config sweep was served-inert (c70). Overlap stays on #108. Not a second NoC card.
  • Do not rerun TT_MR_IN1_DUAL_NOC=1 / …-csplit-mrdn. That is decode, rev 3 of 0032, and it lost (see #153).

Pass/fail (only if a new placement is named here first)

  • Desk until the placement names which tensor moves on which NoC, prefill vs decode, and which RISC mode (DM_DEDICATED_NOC only; DM_DYNAMIC_NOC hung, c99/c102).
  • Then one served A/B, B=4 and B=8, bit-exact, no kernel before that name exists.
  • Fail: wall not down at both B=4 and B=8, or any hang. Own-core loopback stays hands-off (LEDGER D-2026-09-29-decode-standing-orders).
## Desk, not a card No prefill dual-NoC placement is worth a mesh boot. Do not write a kernel until a placement is named that is not one of the rows below. If one is named later, the gate is served A/B at B=4 and B=8, bit-exact vs the parent, and a loss or a hang kills it. This issue is the pickup so that gate is not reinvented. Prefill is ~61% of B8/32k wall (LEDGER `R-2026-10-01-cm-g9`, #151) and that share is AGMM compute, not an idle NoC (`docs/analysis/tp2-levers-20260929/p2-agmm.md`: ~7,300 FLOP/B, AGMM ~58% of padded LoFi peak). ## Placements - **AGMM weights vs activations.** Already split: in1 weights RISCV_0/NOC0, in0 activations RISCV_1/NOC1 (`docs/OP-DATASHEETS.md` P1). No A/B of also splitting the weight read across both NoCs. That would take NOC1 away from activations, which is the failure mode of the decode weight-stream loss on #153 (c166). Lottolabs leaves streamed/2D prefill off dual-NoC (`runtime/qwen36/README.md` on https://huggingface.co/Lottolabs/Qwen3.8-27B-TT-Mixed-BFP4-BFP8-P150). - **Prefill KV on the second NoC.** No K-vs-V A/B. Reader is already NOC0 and writer NOC1 (OP-DATASHEETS P4). DRAM is not the floor: K+V multicast ~0.9 ms/chunk vs ~24 ms LoFi. The decode case where KV was the bound is already shipped (`TT_SDPA_DEC_KV_DUAL_NOC`, LEDGER `R-2026-09-29-dn`). - **Activation multicast / reduce-scatter.** Activations are already the other NoC (P1, P5a). RS already uses reader RISCV_1 and writer RISCV_0 (P5b). The RS config sweep was served-inert (c70). Overlap stays on #108. Not a second NoC card. - **Do not rerun** `TT_MR_IN1_DUAL_NOC=1` / `…-csplit-mrdn`. That is decode, rev 3 of 0032, and it lost (see #153). ## Pass/fail (only if a new placement is named here first) - Desk until the placement names which tensor moves on which NoC, prefill vs decode, and which RISC mode (`DM_DEDICATED_NOC` only; `DM_DYNAMIC_NOC` hung, c99/c102). - Then one served A/B, B=4 and B=8, bit-exact, no kernel before that name exists. - Fail: wall not down at both B=4 and B=8, or any hang. Own-core loopback stays hands-off (LEDGER D-2026-09-29-decode-standing-orders).
Owner

Pickup: second NoC on decode down, GDN-out, and attn-out

Desk first, then one served card run. This is not a "do not try". It is also not c166.

What is still bandwidth-bound and still one NoC

OP-DATASHEETS D1, decode MR (DecodeMRRole in qt/tp_common.py, factory matmul_multicore_reuse_mcast_dram_sharded_program_factory.cpp). in1 weights are RISCV_0/BRISC on NOC0 only. in0 activations stay on NOC1.

tensor role call weight / chip DRAM floor @ 454 GB/s measured distance
MLP down w2 dl/mlp.py ~419 25.1 MB 55.2 µs 59.7 µs 1.08×
GDN out out qt/gdn/tp.py:677 8.85 MB (shared out role) 19.5 µs 26.6 µs 1.36×
attn out out qt/attention/tp.py:461 (wo) same out role 19.5 µs 26.6 µs 1.36×

out is the furthest MR role from its DRAM floor. w2 is on the floor and still single-NoC.

Already on both NoCs — do not retouch

  • Decode SDPA KV: TT_SDPA_DEC_KV_DUAL_NOC shipped (LEDGER R-2026-09-29-dn). K on the reader NoC, V on the writer NoC, DM_DEDICATED_NOC.
  • Prefill AGMM is compute-bound (~7,300 FLOP/B, ~58% of padded LoFi peak). in1 is already NOC0 and in0 is already NOC1. Not a candidate. Prefill w2 is an FPU matmul (P5a), not this reader.

Not the experiment

Do not rerun c166 / TT_MR_IN1_DUAL_NOC=1 / arm …-csplit-mrdn (patch 0032). That flag puts both NoCs on every MR in1, including gate/up. One-card device time fell; served wall was +0.6…+1.6% in every cell (bench/runs/perf-loop-c166-mrdn-verdict-20261003T070500Z.jsonl). DM_DYNAMIC_NOC hung the mesh (c99). Issue #153 stays that loss.

Lottolabs' serving win was a different placement: second NoC only on down, GDN-out, and attn-out inside verify (microbench 435 vs 374 GB/s; serving +3–7%). Not a global matmul flag. We do not have their 8-row DFlash verify; the same three tensors are our decode MR w2 and out roles.

Desk, then the card

  1. Desk: a per-role allowlist, w2 and out only, DM_DEDICATED_NOC. Do not set TT_MR_IN1_DUAL_NOC. The second weight NoC must not take NOC1 away from in0 (that is how 0032 lost). Banner names the roles. ttsim bit-exact vs the parent reader.
  2. Must-fail: a mode that reads a weight tile twice or skips one. Logits must move. If they do not, the flag is inert and the card is refused.
  3. Card, only after that patch exists: one served A/B on the current best, B=1, B=4, and B=8, contexts 4096 and 32768. No boot before the desk patch.

Pass / fail

  • Pass: wall down at both B=4 and B=8, and no B=1 regression. Logits unchanged vs the parent (the must-fail arm is the one that must move them).
  • Fail: wall not down at either B=4 or B=8, any B=1 regression, any hang, or the real arm moves logits.

Explicit non-work

BFP4 drafter (acceptance collapsed), streaming fused FFN, more CB slots, temp>0 host sampling as a speed path, L1-resident GDN state (75.5 MB; does not fit max_num_seqs=8). None of those is this placement.

## Pickup: second NoC on decode down, GDN-out, and attn-out Desk first, then one served card run. This is not a "do not try". It is also not c166. ### What is still bandwidth-bound and still one NoC OP-DATASHEETS D1, decode MR (`DecodeMRRole` in `qt/tp_common.py`, factory `matmul_multicore_reuse_mcast_dram_sharded_program_factory.cpp`). in1 weights are RISCV_0/BRISC on NOC0 only. in0 activations stay on NOC1. | tensor | role | call | weight / chip | DRAM floor @ 454 GB/s | measured | distance | | --- | --- | --- | --- | --- | --- | --- | | MLP down | `w2` | `dl/mlp.py` ~419 | 25.1 MB | 55.2 µs | 59.7 µs | 1.08× | | GDN out | `out` | `qt/gdn/tp.py:677` | 8.85 MB (shared out role) | 19.5 µs | 26.6 µs | 1.36× | | attn out | `out` | `qt/attention/tp.py:461` (`wo`) | same out role | 19.5 µs | 26.6 µs | 1.36× | `out` is the furthest MR role from its DRAM floor. w2 is on the floor and still single-NoC. ### Already on both NoCs — do not retouch - Decode SDPA KV: `TT_SDPA_DEC_KV_DUAL_NOC` shipped (LEDGER `R-2026-09-29-dn`). K on the reader NoC, V on the writer NoC, `DM_DEDICATED_NOC`. - Prefill AGMM is compute-bound (~7,300 FLOP/B, ~58% of padded LoFi peak). in1 is already NOC0 and in0 is already NOC1. Not a candidate. Prefill w2 is an FPU matmul (P5a), not this reader. ### Not the experiment Do not rerun c166 / `TT_MR_IN1_DUAL_NOC=1` / arm `…-csplit-mrdn` (patch 0032). That flag puts both NoCs on every MR in1, including gate/up. One-card device time fell; served wall was **+0.6…+1.6% in every cell** (`bench/runs/perf-loop-c166-mrdn-verdict-20261003T070500Z.jsonl`). `DM_DYNAMIC_NOC` hung the mesh (c99). Issue #153 stays that loss. Lottolabs' serving win was a different placement: second NoC only on down, GDN-out, and attn-out inside verify (microbench 435 vs 374 GB/s; serving +3–7%). Not a global matmul flag. We do not have their 8-row DFlash verify; the same three tensors are our decode MR `w2` and `out` roles. ### Desk, then the card 1. Desk: a per-role allowlist, `w2` and `out` only, `DM_DEDICATED_NOC`. Do not set `TT_MR_IN1_DUAL_NOC`. The second weight NoC must not take NOC1 away from in0 (that is how 0032 lost). Banner names the roles. ttsim bit-exact vs the parent reader. 2. Must-fail: a mode that reads a weight tile twice or skips one. Logits must move. If they do not, the flag is inert and the card is refused. 3. Card, only after that patch exists: one served A/B on the current best, B=1, B=4, and B=8, contexts 4096 and 32768. No boot before the desk patch. ### Pass / fail - Pass: wall down at **both B=4 and B=8**, and **no B=1 regression**. Logits unchanged vs the parent (the must-fail arm is the one that must move them). - Fail: wall not down at either B=4 or B=8, any B=1 regression, any hang, or the real arm moves logits. ### Explicit non-work BFP4 drafter (acceptance collapsed), streaming fused FFN, more CB slots, temp>0 host sampling as a speed path, L1-resident GDN state (75.5 MB; does not fit `max_num_seqs=8`). None of those is this placement.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#161
No description provided.