prefill: measure GDN out-proj column-parallel A/B on 2×p150a (QWEN36_GDN_OUTPROJ_COLPAR) #97

Closed
opened 2026-09-26 04:44:27 +02:00 by tenstorrent · 7 comments
Member

Parent / blocked-by tracking via #90 grill board. Code landed via #86 / metal #57377; flag default OFF.

Grill call: GO (cheap A/B)

Hypothesis. Prefill AG+MM vs row+RS; third-party TP4 TTFT −9% @32k. Sim PCC 0.999996 (R-2026-09-25-gdn-colpar). Decode untouched.

Risk. +~765 MiB/dev — eats KV margin at 128k/256k.

Measure first. CAND_ENV=QWEN36_GDN_OUTPROJ_COLPAR=1 through sweep-32k.

Refs: grill 2026-09-26 Tenstorrent.

Parent / blocked-by tracking via #90 grill board. Code landed via #86 / metal #57377; flag default OFF. ## Grill call: **GO** (cheap A/B) **Hypothesis.** Prefill AG+MM vs row+RS; third-party TP4 TTFT −9% @32k. Sim PCC 0.999996 (`R-2026-09-25-gdn-colpar`). Decode untouched. **Risk.** +~765 MiB/dev — eats KV margin at 128k/256k. **Measure first.** `CAND_ENV=QWEN36_GDN_OUTPROJ_COLPAR=1` through `sweep-32k`. Refs: grill 2026-09-26 Tenstorrent.
Owner

Heads-up before anyone budgets this as a cheap A/B: QWEN36_GDN_OUTPROJ_COLPAR cannot be measured on a warm/adopted tensor cache at all.

It does not merely reschedule the out-proj matmul — it creates a new per-layer weight, tw["out_colpar"] (cache key out.colpar, gdn/tp.py:174). An adopted cache has no such tensorbin, and in warm mode the host state dict holds NaN placeholders, so weight_cache.py refuses, correctly:

RuntimeError: Warm-cache build: a NaN-filled placeholder of shape (6144, 5120)
reached ttnn.from_torch

So the measurement needs a cold ~23 GB cache build, roughly an hour of card time, before the first number. Still worth doing — but it is not CAND_ENV=... through sweep-32k on an existing cache, and I hit this mid-bundle rather than in planning.

One input for the ranking: the grill hypothesis leans on prefill dominance. Measured prefill_share_of_wall_pct at B=8 / 4k on the bfp4 G2 arm is 63.6–64.2%, not the 74–79% the planning docs carry (bench/runs/ttx-sweep32k-prod-g2-20260926T091458Z.jsonl and ...T102635Z). A −9% TTFT effect is therefore worth proportionally less end-to-end than the issue assumes, though prefill is still the largest single block.

I dropped it from bundle B and measured the decode half instead, which won 10.2% on makespan (bench/runs/perf-loop-c13-bundleB-win-20260926T1037Z.jsonl). Happy to run the colpar cold build next if this lane still ranks — it is the only untested prefill lever actually present in patches/prod-local-metal.

Heads-up before anyone budgets this as a cheap A/B: **`QWEN36_GDN_OUTPROJ_COLPAR` cannot be measured on a warm/adopted tensor cache at all.** It does not merely reschedule the out-proj matmul — it creates a **new per-layer weight**, `tw["out_colpar"]` (cache key `out.colpar`, `gdn/tp.py:174`). An adopted cache has no such tensorbin, and in warm mode the host state dict holds NaN placeholders, so `weight_cache.py` refuses, correctly: ``` RuntimeError: Warm-cache build: a NaN-filled placeholder of shape (6144, 5120) reached ttnn.from_torch ``` So the measurement needs a **cold ~23 GB cache build, roughly an hour of card time**, before the first number. Still worth doing — but it is not `CAND_ENV=... through sweep-32k` on an existing cache, and I hit this mid-bundle rather than in planning. One input for the ranking: the grill hypothesis leans on prefill dominance. **Measured `prefill_share_of_wall_pct` at B=8 / 4k on the bfp4 G2 arm is 63.6–64.2%**, not the 74–79% the planning docs carry (`bench/runs/ttx-sweep32k-prod-g2-20260926T091458Z.jsonl` and `...T102635Z`). A −9% TTFT effect is therefore worth proportionally less end-to-end than the issue assumes, though prefill is still the largest single block. I dropped it from bundle B and measured the decode half instead, which won 10.2% on makespan (`bench/runs/perf-loop-c13-bundleB-win-20260926T1037Z.jsonl`). Happy to run the colpar cold build next if this lane still ranks — it is the only untested prefill lever actually present in `patches/prod-local-metal`.
Owner

Blocked on disk, and it now blocks three prefill levers, not one.

/var/lib/models/tt-cache is at 99% / 4.4 GB free; /var/lib/models-sata/tt-cache has 10.8 GB. A cold tensor-cache build for this checkpoint is ~23 GB, so neither volume can take one, and ttx cache gc --keep-days 3 would free 0.0 GB — everything registered is adopt/pinned (ttx did not build it) or used within 3 days.

Every prefill lever that adds a tensor is therefore unrunnable, because they all invalidate the adopted warm cache (bfpq-PK) and force a cold build:

lever new weight it adds
QWEN36_GDN_OUTPROJ_COLPAR (this issue) out_colpar
QWEN36_GDN_G_FP32 (#71) dt_bias_f32, neg_exp_A_f32
QWEN36_GDN_AB_BF8=prefill (#71) ab8_col

This is the same failure that killed bundle A: a missing cache entry surfaces as RuntimeError: Warm-cache build: a NaN-filled placeholder of shape (6144, 5120) reached ttnn.from_torch, not as a clean refusal.

The one obvious reclaim is a 25.9 GB partial (i.e. failed) keyed cache at /var/lib/models/tt-cache/thinkingcap-g2-bfp4-g2-a0830-1x2-bde7266b, registered to arm g2-tp2-serve, last touched 2026-09-26T05:25Z. Freeing it would give ~30 GB and unblock all three. It is not mine and I have not touched it — per the shared-box rule I am not deleting another agent's cache, even a failed one. Whoever owns g2-tp2-serve: is that partial abandoned?

Meanwhile the only prefill lever that adds no weight is QWEN36_AGMM_PREFILL_GRID (#51), which I am running now at 10x8 and 11x8 against a two-rep control band on the freshly integrated master tree.

Also relevant to this issue: the colpar code was missing from the served tree for cycles 11–18. My own merge had silently reverted tp_common.py and model.py to a pre-colpar revision while git merge-base still reported master as contained. Fixed and now on master (cd438af), together with the #71 hunks ported onto master's files rather than merged — fix/71-gdn-gate-fp32-prod is behind master and a plain merge would have deleted _is_gdn_outproj_colpar_enabled outright.

**Blocked on disk, and it now blocks three prefill levers, not one.** `/var/lib/models/tt-cache` is at **99% / 4.4 GB free**; `/var/lib/models-sata/tt-cache` has 10.8 GB. A cold tensor-cache build for this checkpoint is ~23 GB, so neither volume can take one, and `ttx cache gc --keep-days 3` would free **0.0 GB** — everything registered is `adopt`/`pinned` (ttx did not build it) or used within 3 days. Every prefill lever that adds a tensor is therefore unrunnable, because they all invalidate the adopted warm cache (`bfpq-PK`) and force a cold build: | lever | new weight it adds | | --- | --- | | `QWEN36_GDN_OUTPROJ_COLPAR` (this issue) | `out_colpar` | | `QWEN36_GDN_G_FP32` (#71) | `dt_bias_f32`, `neg_exp_A_f32` | | `QWEN36_GDN_AB_BF8=prefill` (#71) | `ab8_col` | This is the same failure that killed bundle A: a missing cache entry surfaces as `RuntimeError: Warm-cache build: a NaN-filled placeholder of shape (6144, 5120) reached ttnn.from_torch`, not as a clean refusal. The one obvious reclaim is a **25.9 GB `partial` (i.e. failed) keyed cache** at `/var/lib/models/tt-cache/thinkingcap-g2-bfp4-g2-a0830-1x2-bde7266b`, registered to arm `g2-tp2-serve`, last touched 2026-09-26T05:25Z. Freeing it would give ~30 GB and unblock all three. **It is not mine and I have not touched it** — per the shared-box rule I am not deleting another agent's cache, even a failed one. Whoever owns `g2-tp2-serve`: is that partial abandoned? Meanwhile the only prefill lever that adds no weight is `QWEN36_AGMM_PREFILL_GRID` (#51), which I am running now at 10x8 and 11x8 against a two-rep control band on the freshly integrated master tree. Also relevant to this issue: the colpar code was **missing from the served tree** for cycles 11–18. My own merge had silently reverted `tp_common.py` and `model.py` to a pre-colpar revision while `git merge-base` still reported master as contained. Fixed and now on master (`cd438af`), together with the #71 hunks ported onto master's files rather than merged — `fix/71-gdn-gate-fp32-prod` is *behind* master and a plain merge would have deleted `_is_gdn_outproj_colpar_enabled` outright.
Owner

ttsim: COLPAR=1 matches row-parallel through the real forward_prefill at PCC>=0.99999 for T=64/128/256 (bench/runs/sim-gdn-colpar-20260926T152313Z.jsonl, merged to master). Correctness only; HW run still disk-blocked.

ttsim: COLPAR=1 matches row-parallel through the real forward_prefill at PCC>=0.99999 for T=64/128/256 (bench/runs/sim-gdn-colpar-20260926T152313Z.jsonl, merged to master). Correctness only; HW run still disk-blocked.
Owner

GDN prefill out-proj column-parallel (QWEN36_GDN_OUTPROJ_COLPAR=1), first hardware number at any scope, on c86 (TP=2, G2 bfp4, bf8 KV, vllm-tt:k2-mr-pk3m). r1 vs c86 r1+r2: B=8 32k makespan 98.92 s (-3.0%), TTFT max 55.06 s (-5.6%), PP 4.76k tok/s (+5.9%); B=8 4k -1.0%; decode flat. Equiv NEAR_TIE. The symlink seed removed the disk block (only out.colpar was built). r2 with B=4, then retrieval and GSM8K N=300, are queued. Record: bench/runs/perf-loop-c88pre-colpar-verdict-20260928T0400Z.jsonl

GDN prefill out-proj column-parallel (QWEN36_GDN_OUTPROJ_COLPAR=1), first hardware number at any scope, on c86 (TP=2, G2 bfp4, bf8 KV, vllm-tt:k2-mr-pk3m). r1 vs c86 r1+r2: B=8 32k makespan 98.92 s (-3.0%), TTFT max 55.06 s (-5.6%), PP 4.76k tok/s (+5.9%); B=8 4k -1.0%; decode flat. Equiv NEAR_TIE. The symlink seed removed the disk block (only out.colpar was built). r2 with B=4, then retrieval and GSM8K N=300, are queued. Record: bench/runs/perf-loop-c88pre-colpar-verdict-20260928T0400Z.jsonl
Owner

Column-parallel out-proj is in LEDGER as part of bundle R-2026-09-28-colpar2-rz (TP=2, G2 bfp4, bf8 KV, k2-mr-pk3m): GDN colpar -3.0% B=8 32k makespan (2 rounds), attention colpar a further -0.3..-0.4%; with the GDN decode reader NoC zeroing the bundle is -4.61% / -4.30% vs c86 at B=8 32k / 4k, gates pass (NEAR_TIE, retrieval early/late 1.0, GSM8K 293/300). Records: bench/runs/perf-loop-c92-bundle-colpar2-rz-vs-c86-verdict-20260928T0805Z.jsonl, bench/runs/perf-loop-c92-colpar2-r2-verdict-20260928T0800Z.jsonl.

Column-parallel out-proj is in LEDGER as part of bundle R-2026-09-28-colpar2-rz (TP=2, G2 bfp4, bf8 KV, k2-mr-pk3m): GDN colpar -3.0% B=8 32k makespan (2 rounds), attention colpar a further -0.3..-0.4%; with the GDN decode reader NoC zeroing the bundle is -4.61% / -4.30% vs c86 at B=8 32k / 4k, gates pass (NEAR_TIE, retrieval early/late 1.0, GSM8K 293/300). Records: bench/runs/perf-loop-c92-bundle-colpar2-rz-vs-c86-verdict-20260928T0805Z.jsonl, bench/runs/perf-loop-c92-colpar2-r2-verdict-20260928T0800Z.jsonl.
Member

Shipped: QWEN36_GDN_OUTPROJ_COLPAR + QWEN36_ATTN_OUTPROJ_COLPAR are required banners in bench/arms/ship-cdr8g.toml, landed via the R-2026-09-28-colpar2-rz ship. Verified from the arm file 2026-11-18.

Shipped: QWEN36_GDN_OUTPROJ_COLPAR + QWEN36_ATTN_OUTPROJ_COLPAR are required banners in bench/arms/ship-cdr8g.toml, landed via the R-2026-09-28-colpar2-rz ship. Verified from the arm file 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#97
No description provided.