decode: kda2 + lm_head LoFi LOO attribution (R-2026-10-02-p1) #152

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

Grill\n- Call: WATCH\n- Hypothesis: kda2 and lm_head may be meaningful decode contributors, but more P1 stacking is premature until leave-one-out attribution is measured.\n- Depends: shipped #145/#146; R-2026-10-02-p1.\n- Measure first: kda2-only, lm_head-only, and combined LOO latency/traffic deltas with confidence across the target decode case.\n- Out of scope: additional P1 work before the LOO result.\n- Refs: #90, #145, #146, R-2026-10-02-p1.

## Grill\n- **Call:** WATCH\n- **Hypothesis:** kda2 and lm_head may be meaningful decode contributors, but more P1 stacking is premature until leave-one-out attribution is measured.\n- **Depends:** shipped #145/#146; R-2026-10-02-p1.\n- **Measure first:** kda2-only, lm_head-only, and combined LOO latency/traffic deltas with confidence across the target decode case.\n- **Out of scope:** additional P1 work before the LOO result.\n- **Refs:** #90, #145, #146, R-2026-10-02-p1.
Owner

LOO measured (c159; one boot through the served arm switch, ttx ab, TP=2, n=1 per arm):

arm (vs cm-so1 control) B8/32k wall PP @32k TG @32k
kda2 alone −2.5% +3% flat
lm_head LoFi alone flat flat −1.2…−1.7%
bundle (P1), re-measured in one boot −0.92% +2.6…+3.1% −0.7…−1.3%
  • kda2 is a prefill lever, and LoFi is a decode lever. The bundle keeps both, and both are on master.
  • Record: bench/runs/perf-loop-c159-loo-verdict-20261002T155713Z.jsonl. Bundle re-measure: bench/runs/perf-loop-c160-armswitch-p1-verdict-20261002T153740Z.jsonl. STATUS c160c.
  • Nothing more to measure here unless you want n=2 for the singles.
LOO measured (c159; one boot through the served arm switch, `ttx ab`, TP=2, n=1 per arm): | arm (vs cm-so1 control) | B8/32k wall | PP @32k | TG @32k | |---|---|---|---| | kda2 alone | −2.5% | +3% | flat | | lm_head LoFi alone | flat | flat | −1.2…−1.7% | | bundle (P1), re-measured in one boot | −0.92% | +2.6…+3.1% | −0.7…−1.3% | - kda2 is a prefill lever, and LoFi is a decode lever. The bundle keeps both, and both are on master. - Record: `bench/runs/perf-loop-c159-loo-verdict-20261002T155713Z.jsonl`. Bundle re-measure: `bench/runs/perf-loop-c160-armswitch-p1-verdict-20261002T153740Z.jsonl`. STATUS c160c. - Nothing more to measure here unless you want n=2 for the singles.
Author
Member

LOO is measured (c159). kda2 is the prefill lever and lm_head LoFi is the decode lever, and both are kept on master. Do not re-grill. Optional n=2 singles only if the owner asks.

LOO is measured (c159). kda2 is the prefill lever and lm_head LoFi is the decode lever, and both are kept on master. Do not re-grill. Optional n=2 singles only if the owner asks.
Owner

#152 LOO attribution — three-way decomposition (measured on the cards, R-2026-10-02-p1 scope)

Control = current best (…-gdc-cpk-wy-kvd), both levers on. Each candidate turns lever(s) off at the pre-lever shipped default (QWEN36_GDN_CONV_KDA2=0; QWEN36_LMHEAD_FID=hifi2 = the default, banner-silent). vs control = (off − on)/on. All three arms measured at B=1/4/8 × ctx 4096/32768, one visit per arm; gsm8k / retrieval / equiv all MEASURED / pass (gates are a report, not a merge gate).

arm (off) run PR ΔPP (6 cells) ΔTG (6 cells)
kda2 only off (lm_head LoFi stays) #7111 #172 −1.33…−3.89% (mean −2.69%) −1.47…+0.54% (mean −0.55%)
lm_head only off (kda2 stays) #7112 #173 −0.08…+0.75% (mean −0.04%) −1.49…+0.76% (mean −0.42%)
both off (combined) #7109 #171 −1.46…−4.00% (mean −2.69%) −0.91…+0.65% (mean −0.31%)

Attribution

  1. QWEN36_GDN_CONV_KDA2=fast (kda2) is the real lever — it carries the whole combined effect.
    combined ΔPP (−2.69% mean) is cell-for-cell equal to kda2-only (−2.69% mean); the residual
    (combined − kda2-only) is −0.13…+0.48% ≈ 0%. kda2 is a prefill-side lever: its off-state
    cost grows with context (−1.3% at 4k → −3.9% at 32k), consistent with a per-chunk conv cost in the
    GDN prefill path.

  2. QWEN36_LMHEAD_FID LoFi (decode MR lm_head) is within the rep band — no measurable effect at this scope.
    The lm_head-only arm's direct ΔPP is mean −0.04% (range −0.08…+0.75%), inside the ±~1.5%
    boot-to-boot band; ΔTG is mean −0.42%, also inside the band (B8/4k +0.76% / B1/4k −1.49% are the
    two outliers, both <1.5%). The additive residual (combined − kda2-only ≈ 0%) confirms it: turning
    lm_head LoFi off on top of kda2-only moves nothing. At R-2026-10-02-p1 scope, the LoFi lm_head
    lever is a correctness/robustness choice, not a measured speed win.

  3. Neither lever is a decode/TG win. All three arms' ΔTG is flat within the boot band
    (means −0.55% / −0.42% / −0.31%); the real effect is prefill (TTFT), and it belongs to kda2.

Forensics note (why an earlier table on #173 was wrong)

The first #173 run (commit cc6d887f, run #7107) set QWEN36_LMHEAD_FID=**hifi4** — the slower
must-fail rung, not the LoFi-off state — so its posted table (ΔTG up to +8.3%) did not measure the
LoFi lever. The correct off-state is hifi2 (the pre-lever shipped default, which prints no banner);
per tp_common.py:2115 the ladder is unset|hifi2 = default < hifi3 < hifi4 (slower). Run #7112
(fc23cdb3) is the valid lm_head-only measurement quoted above. Flagged on PR #173.

Records

  • bench/runs/ttx--nokda2-…-20261004T231252Z.jsonl (gsm8k/retrieval), sweep32k …-nokda2-ab20261004T231252Z
  • bench/runs/ttx-…-nolmlofi-…-20261004T233820Z.jsonl, sweep32k …-nolmlofi-ab20261004T232642Z
  • bench/runs/ttx--nokda2-nolmlofi-…-20261004T225254Z.jsonl, sweep32k …-nokda2-nolmlofi-ab…
  • full run artifacts: actions runs #7111 / #7112 / #7109

No merge, no CONTROL= retarget, no docs/STATUS.md edit — the attribution is the deliverable; the owner decides whether the current best keeps kda2 and/or lm_head LoFi.

## #152 LOO attribution — three-way decomposition (measured on the cards, R-2026-10-02-p1 scope) Control = current best (`…-gdc-cpk-wy-kvd`), both levers **on**. Each candidate turns lever(s) **off** at the *pre-lever shipped default* (`QWEN36_GDN_CONV_KDA2=0`; `QWEN36_LMHEAD_FID=hifi2` = the default, banner-silent). `vs control` = (off − on)/on. All three arms measured at B=1/4/8 × ctx 4096/32768, one visit per arm; gsm8k / retrieval / equiv all **MEASURED / pass** (gates are a report, not a merge gate). | arm (off) | run | PR | ΔPP (6 cells) | ΔTG (6 cells) | |---|---|---|---|---| | **kda2 only** off (lm_head LoFi stays) | #7111 | #172 | **−1.33…−3.89%** (mean −2.69%) | −1.47…+0.54% (mean −0.55%) | | **lm_head only** off (kda2 stays) | #7112 | #173 | **−0.08…+0.75%** (mean **−0.04%**) | −1.49…+0.76% (mean −0.42%) | | **both** off (combined) | #7109 | #171 | **−1.46…−4.00%** (mean −2.69%) | −0.91…+0.65% (mean −0.31%) | ### Attribution 1. **`QWEN36_GDN_CONV_KDA2=fast` (kda2) is the real lever — it carries the whole combined effect.** combined ΔPP (−2.69% mean) is **cell-for-cell equal** to kda2-only (−2.69% mean); the residual (combined − kda2-only) is **−0.13…+0.48% ≈ 0%**. kda2 is a **prefill-side** lever: its off-state cost grows with context (−1.3% at 4k → −3.9% at 32k), consistent with a per-chunk conv cost in the GDN prefill path. 2. **`QWEN36_LMHEAD_FID` LoFi (decode MR lm_head) is within the rep band — no measurable effect at this scope.** The lm_head-only arm's direct ΔPP is **mean −0.04% (range −0.08…+0.75%)**, inside the ±~1.5% boot-to-boot band; ΔTG is mean −0.42%, also inside the band (B8/4k +0.76% / B1/4k −1.49% are the two outliers, both <1.5%). The additive residual (combined − kda2-only ≈ 0%) confirms it: turning lm_head LoFi off on top of kda2-only moves nothing. **At R-2026-10-02-p1 scope, the LoFi lm_head lever is a correctness/robustness choice, not a measured speed win.** 3. **Neither lever is a decode/TG win.** All three arms' ΔTG is flat within the boot band (means −0.55% / −0.42% / −0.31%); the real effect is prefill (TTFT), and it belongs to kda2. ### Forensics note (why an earlier table on #173 was wrong) The first #173 run (commit `cc6d887f`, run #7107) set `QWEN36_LMHEAD_FID=**hifi4**` — the *slower* must-fail rung, not the LoFi-off state — so its posted table (ΔTG up to +8.3%) did **not** measure the LoFi lever. The correct off-state is **hifi2** (the pre-lever shipped default, which prints no banner); per `tp_common.py:2115` the ladder is `unset|hifi2 = default` < `hifi3` < `hifi4` (slower). Run **#7112** (`fc23cdb3`) is the valid lm_head-only measurement quoted above. Flagged on PR #173. ### Records - `bench/runs/ttx--nokda2-…-20261004T231252Z.jsonl` (gsm8k/retrieval), sweep32k `…-nokda2-ab20261004T231252Z` - `bench/runs/ttx-…-nolmlofi-…-20261004T233820Z.jsonl`, sweep32k `…-nolmlofi-ab20261004T232642Z` - `bench/runs/ttx--nokda2-nolmlofi-…-20261004T225254Z.jsonl`, sweep32k `…-nokda2-nolmlofi-ab…` - full run artifacts: actions runs #7111 / #7112 / #7109 *No merge, no `CONTROL=` retarget, no `docs/STATUS.md` edit — the attribution is the deliverable; the owner decides whether the current best keeps kda2 and/or lm_head LoFi.*
Member

Delivered and closed: the kda2 vs lmlofi LOO was measured twice (c159 verdict, then the 2026-10-04 three-way decomposition; kda2 carries the whole −1.33…−3.89% PP effect, 'NOGO to remove'; lmlofi inert at n=1); final in-issue instruction: 'Do not re-grill'. Verified 2026-11-18.

Delivered and closed: the kda2 vs lmlofi LOO was measured twice (c159 verdict, then the 2026-10-04 three-way decomposition; kda2 carries the whole −1.33…−3.89% PP effect, 'NOGO to remove'; lmlofi inert at n=1); final in-issue instruction: 'Do not re-grill'. 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#152
No description provided.