MTP/decode: GDN verify residual traffic / small-ops ablation (c154 ~18.9 ms) #150

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

Grill\n- Call: GO\n- Hypothesis: At c154 (~18.9 ms), residual GDN/decode traffic is concentrated in a small set of ops; qkvzab, gathers, norm-gate, and out-proj ablations will identify the remaining state traffic.\n- Depends: #90; c154 trace/config.\n- Measure first: ablate qkvzab, gathers, norm-gate, and out-proj one at a time; name residual state traffic and report latency deltas.\n- Out of scope: new kernel designs or unrelated prefill work.\n- Refs: #90, c154 (~18.9 ms).

## Grill\n- **Call:** GO\n- **Hypothesis:** At c154 (~18.9 ms), residual GDN/decode traffic is concentrated in a small set of ops; qkvzab, gathers, norm-gate, and out-proj ablations will identify the remaining state traffic.\n- **Depends:** #90; c154 trace/config.\n- **Measure first:** ablate qkvzab, gathers, norm-gate, and out-proj one at a time; name residual state traffic and report latency deltas.\n- **Out of scope:** new kernel designs or unrelated prefill work.\n- **Refs:** #90, c154 (~18.9 ms).
Author
Member

Desk residual (#150) — post-so1, no card

Code-read on master (0cfcbdc). No card, no kernel PR.

1. so1 verify path: c155a five ops still present; splits gone

TPGatedDeltaNet.forward_verify → _state_once_check → _forward_verify_state_once (gdn/tp.py).

Op (c155a / QWEN36_MTP_VERIFY_DOUBLE) Still on so1 path? Where
A recurrence yes — one state_once.verify (was T launches) _forward_verify_state_once + rec double
B conv-multi (build_windows + conv_gates) yes — _conv_multi_verify(..., whole=True) cmulti double; no split_rows
C qkvzab yes — _project_qkvzab before the so1 branch proj double in forward_verify
D out-proj yes — _row_proj(..., tw["out"]) out double
E norm-gate yes — gdn_decode_norm_gate normgate double

state_once.op_counts: CONV_MULTI was build_windows + conv_gates + 2 split + T rec; STATE_ONCE is build_windows + conv_gates + 1. Splits are gone under so1 (whole=True → split="none").

2. VERIFY_DOUBLE / class ablate / skill under so1 — YES

Knob Engages under so1? File refs
QWEN36_MTP_VERIFY_DOUBLE={proj,cmulti,rec,normgate,out} yes — _dbl sampled in forward_verify; so1 branch receives _dbl and doubles cmulti/rec/normgate/out; proj doubles before the branch gdn/tp.py verify_double() ~L124; _forward_verify_state_once ~L1942; forward_verify ~L2011
QWEN36_MTP_VERIFY_CLASS_ABLATE={mlp,attn,lmhead} yes — wraps _verify_ops via _ClassAblate; independent of GDN so1 mtp_batch.py verify_class_ablate / _ClassAblate ~L325–338; engage ~L870
skill mtp-verify-itemise still the procedure (class ablate → op double on overlap-timing) .claude/skills/mtp-verify-itemise/SKILL.md

3. Desk residual table — post-so1 ~15.7 ms GDN+rest

Envelope (desk, from measured records; not a new doubling run):

  • c154 GDN+rest @ B8/4k = 18.89 ms (perf-loop-c154-verify-class-ablation-20261002T0010Z.jsonl)
  • so1 verify Δ @ B8/4k ≈ −3.2 ms (cm-ot 39.73 → so1-ot 36.52; LEDGER R-2026-10-02-mtp-gdn-state-once, STATUS c155, record …-cm-so1-ot-20261002T014114Z.jsonl)
  • post-so1 GDN+rest ≈ 15.7 ms

Ranked A–E from the c155a grill (cm-ot doubles, B8/T=3/4k; perf-loop-c155a-gdn-op-double-20261002T0120Z.jsonl). Post-so1 note is desk only — re-measure on so1-ot before picking a lever:

Rank Op Grill marginal (cm-ot, ×48 layers) Post-so1 residual note
A recurrence +7.67 ms so1 already cut T→1 state read + dropped splits’ share of the −3.2 ms verify; re-double on so1-ot
B conv-multi (windows + gates + split) +4.05 ms splits gone; residual = build_windows + conv_gates only
C qkvzab +3.22 ms unchanged by so1 (outside state path)
D out-proj +1.37 ms unchanged
E norm-gate +0.67 ms unchanged

Grill five sum 17.0 of c154’s 18.9. Unchanged C+D+E ≈ 5.26 ms; implied A+B post-so1 share of the ~15.7 ms envelope ≈ ~8.5 ms (desk; unexplained ~1.9 carries).

4. First-card recipe — so1-ot doubles (grill order A→E)

Parent: …-warm-kb-cm-so1-ot (already on master). Copy five arms …-cm-so1-ot-dbl-{rec,cmulti,proj,out,normgate}:

  • inherits so1-ot; [env] QWEN36_MTP_VERIFY_DOUBLE = "<op>" (one op each)
  • banners: keep so1-ot list plus QWEN36_MTP_VERIFY_DOUBLE engaged: ['<op>']; keep STATE_ONCE banners
  • queue: control so1-ot → dbl-rec → dbl-cmulti → dbl-proj → dbl-out → dbl-normgate → control so1-ot
  • B8, --contexts 4096 only (GDN flat in ctx); parse mtp_batch.per_ctx[4096].timing[8].phase_ms.verify.p50
  • Skill: mtp-verify-itemise. Outputs stay correct; deltas are diagnostic, never a speed number.

No MTP-BATCH.md edit this turn — residual A/B post-so1 ranks are desk until the so1-ot doubles land; comment-only.

## Desk residual (#150) — post-so1, no card Code-read on `master` (`0cfcbdc`). No card, no kernel PR. ### 1. so1 verify path: c155a five ops still present; splits gone `TPGatedDeltaNet.forward_verify` → `_state_once_check` → `_forward_verify_state_once` (`gdn/tp.py`). | Op (c155a / `QWEN36_MTP_VERIFY_DOUBLE`) | Still on so1 path? | Where | |---|---|---| | **A** recurrence | yes — one `state_once.verify` (was T launches) | `_forward_verify_state_once` + `rec` double | | **B** conv-multi (`build_windows` + `conv_gates`) | yes — `_conv_multi_verify(..., whole=True)` | `cmulti` double; **no `split_rows`** | | **C** qkvzab | yes — `_project_qkvzab` before the so1 branch | `proj` double in `forward_verify` | | **D** out-proj | yes — `_row_proj(..., tw["out"])` | `out` double | | **E** norm-gate | yes — `gdn_decode_norm_gate` | `normgate` double | `state_once.op_counts`: CONV_MULTI was `build_windows + conv_gates + 2 split + T rec`; STATE_ONCE is `build_windows + conv_gates + 1`. Splits are gone under so1 (`whole=True` → `split="none"`). ### 2. `VERIFY_DOUBLE` / class ablate / skill under so1 — **YES** | Knob | Engages under so1? | File refs | |---|---|---| | `QWEN36_MTP_VERIFY_DOUBLE={proj,cmulti,rec,normgate,out}` | **yes** — `_dbl` sampled in `forward_verify`; so1 branch receives `_dbl` and doubles cmulti/rec/normgate/out; proj doubles before the branch | `gdn/tp.py` `verify_double()` ~L124; `_forward_verify_state_once` ~L1942; `forward_verify` ~L2011 | | `QWEN36_MTP_VERIFY_CLASS_ABLATE={mlp,attn,lmhead}` | **yes** — wraps `_verify_ops` via `_ClassAblate`; independent of GDN so1 | `mtp_batch.py` `verify_class_ablate` / `_ClassAblate` ~L325–338; engage ~L870 | | skill `mtp-verify-itemise` | still the procedure (class ablate → op double on overlap-timing) | `.claude/skills/mtp-verify-itemise/SKILL.md` | ### 3. Desk residual table — post-so1 ~15.7 ms GDN+rest Envelope (desk, from measured records; **not** a new doubling run): - c154 GDN+rest @ B8/4k = **18.89 ms** (`perf-loop-c154-verify-class-ablation-20261002T0010Z.jsonl`) - so1 verify Δ @ B8/4k ≈ **−3.2 ms** (cm-ot 39.73 → so1-ot 36.52; LEDGER `R-2026-10-02-mtp-gdn-state-once`, STATUS c155, record `…-cm-so1-ot-20261002T014114Z.jsonl`) - **post-so1 GDN+rest ≈ 15.7 ms** Ranked **A–E from the c155a grill** (cm-ot doubles, B8/T=3/4k; `perf-loop-c155a-gdn-op-double-20261002T0120Z.jsonl`). Post-so1 note is desk only — re-measure on so1-ot before picking a lever: | Rank | Op | Grill marginal (cm-ot, ×48 layers) | Post-so1 residual note | |---|---|---|---| | **A** | recurrence | **+7.67 ms** | so1 already cut T→1 state read + dropped splits’ share of the −3.2 ms verify; **re-double on so1-ot** | | **B** | conv-multi (windows + gates + **split**) | +4.05 ms | **splits gone**; residual = `build_windows` + `conv_gates` only | | **C** | qkvzab | +3.22 ms | unchanged by so1 (outside state path) | | **D** | out-proj | +1.37 ms | unchanged | | **E** | norm-gate | +0.67 ms | unchanged | Grill five sum 17.0 of c154’s 18.9. Unchanged C+D+E ≈ 5.26 ms; implied A+B post-so1 share of the ~15.7 ms envelope ≈ ~8.5 ms (desk; unexplained ~1.9 carries). ### 4. First-card recipe — so1-ot doubles (grill order A→E) Parent: `…-warm-kb-cm-so1-ot` (already on master). Copy five arms `…-cm-so1-ot-dbl-{rec,cmulti,proj,out,normgate}`: - `inherits` so1-ot; `[env] QWEN36_MTP_VERIFY_DOUBLE = "<op>"` (one op each) - banners: keep so1-ot list **plus** `QWEN36_MTP_VERIFY_DOUBLE engaged: ['<op>']`; keep STATE_ONCE banners - queue: control so1-ot → dbl-rec → dbl-cmulti → dbl-proj → dbl-out → dbl-normgate → control so1-ot - B8, `--contexts 4096` only (GDN flat in ctx); parse `mtp_batch.per_ctx[4096].timing[8].phase_ms.verify.p50` - Skill: `mtp-verify-itemise`. Outputs stay correct; deltas are diagnostic, never a speed number. No MTP-BATCH.md edit this turn — residual A/B post-so1 ranks are desk until the so1-ot doubles land; comment-only.
Owner

Arms …-cm-so1-ot-dbl-{rec,cmulti,proj,out,normgate} are on branch mtp-csplit, derived from so1-ot per the recipe, with the C-split banner listed as absent.

  • Queued in block c164-mtp of the card queue, on the same boot as the #149 ot screen: so1-ot control, then the five doubles, 2 reps, so the control brackets them.
  • Shape: B8, 4k only. Read the verify p50 with phase-split.py --ctx 4096 --bw 8.
  • Diagnostic only, never a speed number. Not run yet.
Arms `…-cm-so1-ot-dbl-{rec,cmulti,proj,out,normgate}` are on branch `mtp-csplit`, derived from so1-ot per the recipe, with the C-split banner listed as absent. - **Queued** in block c164-mtp of the card queue, on the same boot as the #149 ot screen: so1-ot control, then the five doubles, 2 reps, so the control brackets them. - **Shape:** B8, 4k only. Read the verify p50 with `phase-split.py --ctx 4096 --bw 8`. - Diagnostic only, never a speed number. Not run yet.
Owner

so1-ot verify-op doubles, measured at B8/4k (diagnostic; each number is the cost of one extra copy of the op):

op Δ verify ms c155a grill
rec +5.53 +7.67
proj (qkvzab) +3.13 +3.22
cmulti +2.88 +4.05
out +1.52 +1.37
normgate +0.68 +0.67
  • The order is unchanged, except that proj and cmulti swap places, within noise.
  • After so1, rec and cmulti both shrank.
  • The recurrence is still the first target.

Record: bench/runs/perf-loop-c164-doubles-20261002T221311Z.jsonl.

so1-ot verify-op doubles, measured at B8/4k (diagnostic; each number is the cost of one extra copy of the op): | op | Δ verify ms | c155a grill | |---|---|---| | rec | +5.53 | +7.67 | | proj (qkvzab) | +3.13 | +3.22 | | cmulti | +2.88 | +4.05 | | out | +1.52 | +1.37 | | normgate | +0.68 | +0.67 | - The order is unchanged, except that proj and cmulti swap places, within noise. - After so1, rec and cmulti both shrank. - The recurrence is still the first target. Record: `bench/runs/perf-loop-c164-doubles-20261002T221311Z.jsonl`.
Author
Member

The five so1-ot doubles are measured (c164, diagnostic). Do not re-queue them. gdc has since removed the qkvzab slices. A new ablation belongs on BEST as a new issue, not a kernel from this one. Commit overlap was #149.

The five so1-ot doubles are measured (c164, diagnostic). Do not re-queue them. gdc has since removed the qkvzab slices. A new ablation belongs on BEST as a new issue, not a kernel from this one. Commit overlap was #149.
Member

Obsolete with records: the c154-era verify anatomy was superseded by so1/gdc — c155/c164 re-doubling measurements exist (bench/runs/perf-loop-c164-doubles-20261002T221311Z.jsonl) and the final in-issue comment clears closure; a new ablation belongs on the current BEST arm as a new issue. Verified 2026-11-18.

Obsolete with records: the c154-era verify anatomy was superseded by so1/gdc — c155/c164 re-doubling measurements exist (bench/runs/perf-loop-c164-doubles-20261002T221311Z.jsonl) and the final in-issue comment clears closure; a new ablation belongs on the current BEST arm as a new issue. 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#150
No description provided.