RTX decode lane day 1: EMBED_HOST + LMHEAD_Q8 + plan ring shipped (~0% B1/B8 4k, +4..11% 32k/B4 4k, KV +31%); XQA-sm86 / GEMV / Marlin-f16acc dead; W4A8 root cause #369

Closed
orchestra wants to merge 19 commits from opus/rtx-decode-lane into opus/rtx-decode-night
Member

Stacked on opus/rtx-decode-night (night-combo, shipped 11-08 06:06; its PR to master is #372, landing order #368 -> #372 -> #369). Head f43d26e6.

Shipped (LEDGER R-2026-11-08-rtx-ehq8)

Production RTX decode since 2026-11-08 20:05 CET: pd-r3-host32-pdq8-dva-night-ehq8 = night-combo + RTXOPT_EMBED_HOST=1 + RTXOPT_LMHEAD_Q8=1 + RTXOPT_DRAFT_HEAD_Q=shared + RTXOPT_FI_PLAN_RING=96.

  • w5b, same prompts, arm vs control TG/user: B1 4k 181.5/174.6, B1 32k 168.6/158.7, B4 4k 158.9/144.9, B4 32k 116.3/107.4, B8 4k 101.7/99.6, B8 32k 72.7/65.3, agent B1 32k 155.5/155.2.
  • Honest read: about 0% at B1 4k, B8 4k and agent B1 32k (+0.2…+4%, inside the up-to-3.2% spread of the two controls); +4…+11% at B1 32k, B4 4k, B4 32k, B8 32k. The four arm boots in three windows spread up to 7.3% per cell (B4 32k 108.9…116.9), so single-cell deltas under ~5% are not resolved. TTFT unchanged.
  • KV pool 325,028 -> 425,036 tokens (+31%, B8 x 32k fits).
  • GSM8K T=1 57/60 with night-combo's exact misses; retrieval 16k/32k 1.0.
  • Banners: the driver did not check FI_PLAN_RING in w4a/w4b2/w5b (cut bug, fixed below). Checked by hand: RTXOPT_FI_PLAN_RING=96 engaged x4 in every arm serve log and x4 per boot in prod serve-pd-r3-host32-pdq8-dva-night-ehq8.log.
  • Rollback: cp /mnt/bulk/pdrtx/decode.env.bak-night-combo-20261108T2005 /mnt/bulk/pdrtx/decode.env && systemctl --user restart pd-rtx-decode.

Dead on hardware

Marlin fp16-accumulate (no gain); XQA built for sm_86 (58 GB/s, 5.4x slower than w22p2); Triton split-K GEMV for in_proj_ba [96, 5120] (slower than cuBLAS at M=4/16/32); FI plan ring alone (inert, but bit-exact and kept).

W4A8 (LEDGER R-2026-11-08-rtx-w4a8, research; nothing served)

Marlin a8 garbage = AutoRound signed group scales read as uint16 (upstream bug; draft docs/upstream/vllm-marlin-w4a8-signed-scales.md, not filed). Zero-point fold fixes it exactly. a8zp without outlier split: x1.31/1.26/1.11 at M=1/4/16, x0.67/0.50 at M=32/128. Layout check: a8 and W4A16 Marlin cannot share one buffer. The approved one-build kernel is in progress separately.

Tools

  • lane/lane-window.sh: STEPS ctl/micro/bench/arm/gates/prof, BENCH_CMDS auto-drop, trap restore + RELEASE-CHECK. Launch with -p KillMode=mixed -p TimeoutStopSec=900; restore switches to pd only after the restored decode answers.
  • lane/lane-lib.sh banners() (cut -d= -f2-) + lane/test_lane_lib.sh (banners, deploy guard).
  • lane/deploy-stage.sh: refuses when the deployed sitecustomize registers flags/patches the stage lacks, unless --force (against prod today it names DYNK_CG_FIX, K8V4, KV4_3D).
  • cells.sh SALT_LABEL + foreign-load guard before, during (every 20 s) and after each cell; a failed or unmeasurable sample discards the cell. foreign-load.sh fails closed.
  • rtxopt: xqa_sm86.py, small_gemv.py (both inert, kept for the record), attn-gate.py, attnbench.py --xqa. This PR registers only its own levers in sitecustomize (no KV4_3D, DYNK_CG_FIX, pad_dyn_sd).

Review fixes (de43ef56, 6a4af238)

  1. EXPECT_BANNERS cut -f2 -> -f2- + test. 2. Claims restated (above, LEDGER, HISTORY, README, walkthrough, decode.env comment in repo and prod). 3. TimeoutStopSec=900 + KillMode=mixed, pd after health, skill "Abort and restore". 4. Other lanes' registrations and files out. 5. deploy-stage registration guard. 6. Load re-check during/after each cell, fail closed. 7. W4A8 stats wording (mean/median/max recomputed), a8zp without outliers, PR head.

Re-review fixes (d74893e3)

  1. Abort latency: long window commands run via step() (setsid background + wait, own process group); the TERM trap kills the step group at once, then restore runs; restore's health wait is capped at 480 s (< TimeoutStopSec 900). test_lane_lib.sh (18 checks) shows TERM ends a driver blocked in a 297 s step within 5 s, restore runs and the step's children are gone; the check fails without the group kill.
  2. source lane-lib.sh || exit 1; an arm env with no EXPECT_BANNERS (or none left after bench drops) is refused; the skill's scp list now has lane-lib.sh, deploy-stage.sh, test_lane_lib.sh, cells.sh, foreign-load.sh plus a test run.
  3. Spread nit: 7.3% / 3.2%.

Third-review fixes (f43d26e6)

coolwait.sh in prof runs via step(); own-lever drop check before boot (lost_levers, ALLOW_PARTIAL_ARM); nits (a8x doc in sitecustomize, a8x.env wording, a8x hooks test SKIPs without vLLM).

a8x (0afeb122, e13a3719 by the W4A8 agent; cb93a5c2 records)

One W4A8 buffer per layer, own bf16 kernel below M=32, zp fold for signed scales, one custom op (M branch at run time), fail-closed self-check; inert unless RTXOPT_MARLIN_M32=a8x. GPU gate w7 (23:45-23:48): unit ALL PASS (graph = eager) but speed FAILS on gate_up (a8x/stock M1/4/16 1.06/1.10/1.32, M32 1.28x faster vs the 1.3x rule); no served arm. Kept for the record like small_gemv/xqa_sm86.

Docs

  • pi skill .claude/skills/rtx-decode-lever-window/SKILL.md, walkthrough docs/walkthroughs/2026-11-08-rtx-decode-lane.md, records bench/runs/rtx-decode-lane-20261108/, bench/runs/rtx-w4a8-20261108/, LEDGER + HISTORY beat.
  • scripts/check-cited-records.py fails on two pre-existing PD-SPLIT-DESIGN.md citations (same on the parent commit), none from this PR.

Needs an independent re-review on f43d26e6 before merge.

🤖 Generated with Claude Code

Stacked on `opus/rtx-decode-night` (night-combo, shipped 11-08 06:06; its PR to master is #372, landing order #368 -> #372 -> #369). Head f43d26e6. ## Shipped (LEDGER `R-2026-11-08-rtx-ehq8`) Production RTX decode since 2026-11-08 20:05 CET: `pd-r3-host32-pdq8-dva-night-ehq8` = night-combo + `RTXOPT_EMBED_HOST=1` + `RTXOPT_LMHEAD_Q8=1` + `RTXOPT_DRAFT_HEAD_Q=shared` + `RTXOPT_FI_PLAN_RING=96`. - w5b, same prompts, arm vs control TG/user: B1 4k 181.5/174.6, B1 32k 168.6/158.7, B4 4k 158.9/144.9, B4 32k 116.3/107.4, B8 4k 101.7/99.6, B8 32k 72.7/65.3, agent B1 32k 155.5/155.2. - Honest read: about 0% at B1 4k, B8 4k and agent B1 32k (+0.2…+4%, inside the up-to-3.2% spread of the two controls); +4…+11% at B1 32k, B4 4k, B4 32k, B8 32k. The four arm boots in three windows spread up to 7.3% per cell (B4 32k 108.9…116.9), so single-cell deltas under ~5% are not resolved. TTFT unchanged. - KV pool 325,028 -> 425,036 tokens (+31%, B8 x 32k fits). - GSM8K T=1 57/60 with night-combo's exact misses; retrieval 16k/32k 1.0. - Banners: the driver did not check FI_PLAN_RING in w4a/w4b2/w5b (cut bug, fixed below). Checked by hand: `RTXOPT_FI_PLAN_RING=96 engaged` x4 in every arm serve log and x4 per boot in prod `serve-pd-r3-host32-pdq8-dva-night-ehq8.log`. - Rollback: `cp /mnt/bulk/pdrtx/decode.env.bak-night-combo-20261108T2005 /mnt/bulk/pdrtx/decode.env && systemctl --user restart pd-rtx-decode`. ## Dead on hardware Marlin fp16-accumulate (no gain); XQA built for sm_86 (58 GB/s, 5.4x slower than w22p2); Triton split-K GEMV for in_proj_ba [96, 5120] (slower than cuBLAS at M=4/16/32); FI plan ring alone (inert, but bit-exact and kept). ## W4A8 (LEDGER `R-2026-11-08-rtx-w4a8`, research; nothing served) Marlin a8 garbage = AutoRound signed group scales read as uint16 (upstream bug; draft `docs/upstream/vllm-marlin-w4a8-signed-scales.md`, not filed). Zero-point fold fixes it exactly. a8zp without outlier split: x1.31/1.26/1.11 at M=1/4/16, x0.67/0.50 at M=32/128. Layout check: a8 and W4A16 Marlin cannot share one buffer. The approved one-build kernel is in progress separately. ## Tools - `lane/lane-window.sh`: STEPS ctl/micro/bench/arm/gates/prof, BENCH_CMDS auto-drop, trap restore + RELEASE-CHECK. Launch with `-p KillMode=mixed -p TimeoutStopSec=900`; restore switches to pd only after the restored decode answers. - `lane/lane-lib.sh` banners() (`cut -d= -f2-`) + `lane/test_lane_lib.sh` (banners, deploy guard). - `lane/deploy-stage.sh`: refuses when the deployed sitecustomize registers flags/patches the stage lacks, unless `--force` (against prod today it names DYNK_CG_FIX, K8V4, KV4_3D). - `cells.sh` SALT_LABEL + foreign-load guard before, during (every 20 s) and after each cell; a failed or unmeasurable sample discards the cell. `foreign-load.sh` fails closed. - rtxopt: `xqa_sm86.py`, `small_gemv.py` (both inert, kept for the record), `attn-gate.py`, `attnbench.py --xqa`. This PR registers only its own levers in sitecustomize (no KV4_3D, DYNK_CG_FIX, pad_dyn_sd). ## Review fixes (de43ef56, 6a4af238) 1. EXPECT_BANNERS `cut -f2` -> `-f2-` + test. 2. Claims restated (above, LEDGER, HISTORY, README, walkthrough, decode.env comment in repo and prod). 3. TimeoutStopSec=900 + KillMode=mixed, pd after health, skill "Abort and restore". 4. Other lanes' registrations and files out. 5. deploy-stage registration guard. 6. Load re-check during/after each cell, fail closed. 7. W4A8 stats wording (mean/median/max recomputed), a8zp without outliers, PR head. ## Re-review fixes (d74893e3) 1. Abort latency: long window commands run via `step()` (setsid background + wait, own process group); the TERM trap kills the step group at once, then restore runs; restore's health wait is capped at 480 s (< TimeoutStopSec 900). `test_lane_lib.sh` (18 checks) shows TERM ends a driver blocked in a 297 s step within 5 s, restore runs and the step's children are gone; the check fails without the group kill. 2. `source lane-lib.sh || exit 1`; an arm env with no EXPECT_BANNERS (or none left after bench drops) is refused; the skill's scp list now has lane-lib.sh, deploy-stage.sh, test_lane_lib.sh, cells.sh, foreign-load.sh plus a test run. 3. Spread nit: 7.3% / 3.2%. ## Third-review fixes (f43d26e6) coolwait.sh in prof runs via step(); own-lever drop check before boot (lost_levers, ALLOW_PARTIAL_ARM); nits (a8x doc in sitecustomize, a8x.env wording, a8x hooks test SKIPs without vLLM). ## a8x (0afeb122, e13a3719 by the W4A8 agent; cb93a5c2 records) One W4A8 buffer per layer, own bf16 kernel below M=32, zp fold for signed scales, one custom op (M branch at run time), fail-closed self-check; inert unless `RTXOPT_MARLIN_M32=a8x`. GPU gate w7 (23:45-23:48): unit ALL PASS (graph = eager) but speed FAILS on gate_up (a8x/stock M1/4/16 1.06/1.10/1.32, M32 1.28x faster vs the 1.3x rule); no served arm. Kept for the record like small_gemv/xqa_sm86. ## Docs - pi skill `.claude/skills/rtx-decode-lever-window/SKILL.md`, walkthrough `docs/walkthroughs/2026-11-08-rtx-decode-lane.md`, records `bench/runs/rtx-decode-lane-20261108/`, `bench/runs/rtx-w4a8-20261108/`, LEDGER + HISTORY beat. - `scripts/check-cited-records.py` fails on two pre-existing PD-SPLIT-DESIGN.md citations (same on the parent commit), none from this PR. Needs an independent re-review on f43d26e6 before merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- marlin_f16acc/: vLLM 0.32 Marlin rebuilt for sm_86: bf16 activations converted to fp16 in registers, fp16 group
  scales, fp16 tensor-core accumulation (full rate on GA102) for M <= 32, optional per-k-tile fp32 flush, bf16 out.
- fi_plan_ring.py: lifts the #57352 overlay's pinned plan-buffer budget (8) that costs a 20 ms host wait per B8 step.
- dynk_cg_fix.py / pad_dyn_sd.py + registration: parity with the deployed rtxopt (from opus/rtx-dynk-fix).
- marlinbench: rtxopt_marlin variants, per-M error vs fp32, outlier probe. lane/lane-window.sh: claimed-window driver.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Item 1 (fp16-acc Marlin) dead: no M=32 gain, step is a tile-config effect.
Item 2 (FI plan ring) inert: the 20 ms sync is off the critical path.
EMBED_HOST: KV pool 325,028 -> 391,700 (B8x32k fits), candidate pending gates.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

verdict: approve (WIP draft, comment-only)
tier: T2 (tooling + kernel + skills, staged — nothing ships; prod stays pd-r3-host32-pdq8-dva-night)

rationale: Stacked, mid-lane, explicitly non-shipping: opus/rtx-decode-lane onto opus/rtx-decode-night, prod label unchanged. Every code path is additive and default-off. No .nix/host/deploy blast radius in the PR. Review is sound; I hold the label because the levers are WIP (author re-dispatches on lift, per WIP-draft rule).

concerns:

  • [warn] tools/pd-split/rtx/coolwait.sh:3 — default telemetry file removed (was pdrtx-20261031/gpu-telemetry.csv, a dead file); now empty-arg defaults to a live nvidia-smi read. Correct fix, but it is a shared-tool standing-default change: every caller that relied on the old default csv path now falls back to live SMI. Backward-compatible only if callers pass an explicit $2. Confirm no live caller was depending on the old dead-file default.
  • [warn] tools/pd-split/rtx/decode-serve.sh:49 — adds RTXOPT_MARLIN_F16ACC / RTXOPT_FI_PLAN_RING to the PYTHONPATH-activation condition. Additive + default-off (only trips when the flag is set), so byte-identical when unset. Flag it as it becomes the standing activation surface on merge.
  • [warn] New host modules are fail-closed + gated, but the lossy Marlin fp16-acc path (RTXOPT_MARLIN_F16ACC, rel Frobenius tol 2e-2, 1000x-outlier finite check) and PAD_DYN_SD source rewrite both only carry a load-time self-test + CPU test in-PR — the device A/B is what the PR body defers ("needs gates + replay"). Not a block on a WIP draft; the card/replay proof is the follow-up, so the implementation PR must re-screen before ship.
  • [nit] marlin_f16acc.py default SO_DIR points at a repo-local marlin_f16acc/build but the .so artifacts are not in-repo (built out-of-tree at /mnt/bulk/...); first-boot on a fresh host will fail-closed until RTXOPT_MARLIN_F16ACC_SO is set — expected for WIP, just don't let it look like an in-repo artifact.
  • [nit] No CI run exists on head bdc769c0 (stacked on a night branch, off-master); nothing to gate on it at this stage.

net: approve-on-its-own-merits, comment-only. Hold human-approved + leave draft; the levers are WIP and the lossy Marlin path is not yet device-gated. Re-review when the author lifts WIP and lands the replay/gates.

**verdict:** approve (WIP draft, comment-only) **tier:** T2 (tooling + kernel + skills, staged — nothing ships; prod stays pd-r3-host32-pdq8-dva-night) **rationale:** Stacked, mid-lane, explicitly non-shipping: `opus/rtx-decode-lane` onto `opus/rtx-decode-night`, prod label unchanged. Every code path is additive and default-off. No `.nix`/host/deploy blast radius in the PR. Review is sound; I hold the label because the levers are WIP (author re-dispatches on lift, per WIP-draft rule). **concerns:** - [warn] `tools/pd-split/rtx/coolwait.sh:3` — default telemetry file **removed** (was `pdrtx-20261031/gpu-telemetry.csv`, a dead file); now empty-arg defaults to a **live `nvidia-smi`** read. Correct fix, but it is a **shared-tool standing-default change**: every caller that relied on the old default csv path now falls back to live SMI. Backward-compatible only if callers pass an explicit `$2`. Confirm no live caller was depending on the old dead-file default. - [warn] `tools/pd-split/rtx/decode-serve.sh:49` — adds `RTXOPT_MARLIN_F16ACC` / `RTXOPT_FI_PLAN_RING` to the PYTHONPATH-activation condition. Additive + default-off (only trips when the flag is set), so byte-identical when unset. Flag it as it becomes the standing activation surface on merge. - [warn] New host modules are fail-closed + gated, but the **lossy** Marlin fp16-acc path (`RTXOPT_MARLIN_F16ACC`, rel Frobenius tol 2e-2, 1000x-outlier finite check) and `PAD_DYN_SD` source rewrite both only carry a load-time self-test + CPU test in-PR — the device A/B is what the PR body defers ("needs gates + replay"). Not a block on a WIP draft; the card/replay proof is the follow-up, so the implementation PR must re-screen before ship. - [nit] `marlin_f16acc.py` default `SO_DIR` points at a repo-local `marlin_f16acc/build` but the `.so` artifacts are not in-repo (built out-of-tree at `/mnt/bulk/...`); first-boot on a fresh host will fail-closed until `RTXOPT_MARLIN_F16ACC_SO` is set — expected for WIP, just don't let it look like an in-repo artifact. - [nit] No CI run exists on head `bdc769c0` (stacked on a night branch, off-master); nothing to gate on it at this stage. **net:** approve-on-its-own-merits, comment-only. Hold `human-approved` + leave draft; the levers are WIP and the lossy Marlin path is not yet device-gated. Re-review when the author lifts WIP and lands the replay/gates.
- RTXOPT_SMALL_GEMV: Triton split-K GEMV with last-CTA reduction for the 48 bf16 in_proj_ba calls (interpreter test PASS, sm_86 AOT compile ok).
- xqa_sm86.py: FlashInfer XQA (TRT-LLM mha.cu) JIT-built for sm_86 (FlashInfer gates it to SM90+); attnbench --xqa.
- lane-window.sh: ctl after an arm reboots prod (ABBA), bench step (BENCH_CMDS, BENCH_DROP), prof step, acceptance per arm, same prompts per window (SALT_LABEL).
- deploy-stage.sh: copy staged rtxopt files with .bak-<tag> backups.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
orchestra changed title from WIP: RTX decode lane day 1 (Marlin fp16-acc dead, FI plan ring inert, EMBED_HOST pool fix candidate) + pi skill + walkthrough to RTX decode lane day 1: EMBED_HOST + LMHEAD_Q8 + plan ring shipped (+2..11% TG, KV +31%); XQA-sm86 / GEMV / Marlin-f16acc dead; pi skill + walkthrough 2026-11-08 20:08:59 +01:00
w4a8_screen.py: CPU emulation of Marlin a8 numerics on the served int4 checkpoint (scale-level rules, per-token
int8 acts per TP shard, outlier split, skip regex), layer-wise HF forward with per-stream residuals, end-of-model
KL / top-1 vs W4A16, LMHEAD_Q8 and bf16-weight yardsticks, int32 accumulator headroom, activation dumps.
w4a8_gpu_check.py: zp-fold (uint4 + zp 7/8, |s|) a8 kernel check vs W4A16 and vs emulation on real weights and
acts, CUDA-graph M sweep; --selftest (CPU) proves the fold exact on real shards.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
marlin_layout_check.py (CPU): port of gptq_marlin_repack_kernel == vLLM's test reference for both modes; the a8
and W4A16 repacks of the same int4 values share 0% of words on real shards, and the index map the W4A16 kernel
would read from the a8 buffer is not separable into k and n permutations (stays within each 32-row k block);
scale and zp permutations differ; bytes per TP=4 rank.
docs/upstream/vllm-marlin-w4a8-signed-scales.md: draft issue (not filed) with file:line root cause, GPU repro,
zp-fold workaround and suggested fixes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1. lane-window.sh cut EXPECT_BANNERS at the first entry holding '=' (DRAFT_HEAD_Q=shared): FI_PLAN_RING,
   SMALL_GEMV and XQA_SM86 were never banner-checked by the driver in w4a/w4b2/w5b. banners() in lane-lib.sh
   uses cut -f2-; test_lane_lib.sh covers it. By hand: FI_PLAN_RING=96 engaged x4 in every arm log and per prod boot;
   SMALL_GEMV/XQA were dropped by the bench step (x0, intended).
2. Claims restated: ~0% at B1/B8 4k and agent B1 32k, +4..+11% at 32k and B4 4k; arm boots spread up to 7.4%
   per cell (not 2-4%); KV +31%. LEDGER, HISTORY, README, walkthrough, decode.env comment (repo + prod).
3. Restore: launch with KillMode=mixed + TimeoutStopSec=900, TERM trap, pd-mode pd only after the restored
   decode answers (else RESTORE FAILED, router left tt-only). Skill: "Abort and restore" procedure.
4. sitecustomize: drop the KV4_3D (kv4_3d.py not in this tree) and DYNK_CG_FIX registrations and the
   dynk_cg_fix.py / pad_dyn_sd.py files; they belong to their own lanes' PRs.
5. deploy-stage.sh refuses (exit 2, nothing copied) when the deployed sitecustomize registers RTXOPT_* flags or
   _from_file patches the stage lacks, unless --force. Against prod it now names DYNK_CG_FIX, K8V4, KV4_3D.
6. cells.sh samples foreign load before, every 20 s during and after each cell; any sample over LOAD_MAX or
   unmeasurable sends the record to <label>.discarded.jsonl. foreign-load.sh fails closed (no cgroup, unreadable
   counters, unit restarted).
7. W4A8 README/LEDGER/upstream draft: accuracy stats recomputed (mean/median/max), speed row is a8zp without
   the outlier split.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
6a4af238 committed only the two file removals (a pathspec error aborted the add). This commit carries the rest of
its message: banners() with cut -f2- + test_lane_lib.sh, honest claims (LEDGER/HISTORY/README/walkthrough/
decode.env comment), abort-safe restore (KillMode=mixed, TimeoutStopSec=900, pd only after decode answers, skill
"Abort and restore"), KV4_3D/DYNK_CG_FIX registrations out of sitecustomize, deploy-stage.sh registration guard
(--force), cells.sh during/after-cell load sampling with discard, fail-closed foreign-load.sh, W4A8 stats wording.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
orchestra changed title from RTX decode lane day 1: EMBED_HOST + LMHEAD_Q8 + plan ring shipped (+2..11% TG, KV +31%); XQA-sm86 / GEMV / Marlin-f16acc dead; pi skill + walkthrough to RTX decode lane day 1: EMBED_HOST + LMHEAD_Q8 + plan ring shipped (~0% B1/B8 4k, +4..11% 32k/B4 4k, KV +31%); XQA-sm86 / GEMV / Marlin-f16acc dead; W4A8 root cause 2026-11-08 23:11:19 +01:00
Author
Member

Review fixes pushed (6a4af238 + de43ef56; 6a4af238 holds only the file removals, de43ef56 the rest). All 7 items: 1 banners cut -f2- + test_lane_lib.sh (FI_PLAN_RING engaged x4 verified by hand in every arm log and prod); 2 claims restated (~0% B1/B8 4k, +4..+11% 32k/B4 4k, boots spread up to 7.4%) in LEDGER/HISTORY/README/walkthrough/PR/decode.env (repo + prod, comment only, non-comment md5 unchanged); 3 KillMode=mixed + TimeoutStopSec=900, TERM trap, pd only after decode answers, skill Abort and restore; 4 KV4_3D/DYNK_CG_FIX registrations + dynk_cg_fix.py/pad_dyn_sd.py removed; 5 deploy-stage registration guard (--force), refuses against prod today; 6 load sampled during + after each cell, discard, fail closed; 7 W4A8 stats/PR head. Tools redeployed to cfx-llm1 with .bak-20261108-2309-review. Re-review requested on de43ef56.

Review fixes pushed (6a4af238 + de43ef56; 6a4af238 holds only the file removals, de43ef56 the rest). All 7 items: 1 banners cut -f2- + test_lane_lib.sh (FI_PLAN_RING engaged x4 verified by hand in every arm log and prod); 2 claims restated (~0% B1/B8 4k, +4..+11% 32k/B4 4k, boots spread up to 7.4%) in LEDGER/HISTORY/README/walkthrough/PR/decode.env (repo + prod, comment only, non-comment md5 unchanged); 3 KillMode=mixed + TimeoutStopSec=900, TERM trap, pd only after decode answers, skill Abort and restore; 4 KV4_3D/DYNK_CG_FIX registrations + dynk_cg_fix.py/pad_dyn_sd.py removed; 5 deploy-stage registration guard (--force), refuses against prod today; 6 load sampled during + after each cell, discard, fail closed; 7 W4A8 stats/PR head. Tools redeployed to cfx-llm1 with .bak-20261108-2309-review. Re-review requested on de43ef56.
- rtxopt/marlin_a8x/csrc/rtxopt_a8x.cu + build.sh: bf16-MMA GEMM for M<32 that reads vLLM's is_a_8bit Marlin
  layout (zp-folded), plain C ABI, nix CUDA 13.0, sm_86; split-K with deterministic reduction; 11 configs, 0 spills.
- rtxopt/marlin_a8x.py: RTXOPT_MARLIN_M32=a8x (via marlin_m32.register, no sitecustomize change): zp fold, a8
  repack, int8 Marlin at M>=RTXOPT_MARLIN_A8_MIN_M, a8x kernel below, both in one custom op; optional static
  outlier split from a calibration file; per-layer self-check M=1/M=64; banner with neg-scale fraction + extra MiB.
- marlin_m32.py: plain a8 now refuses negative group scales (the uint16 level bug); mode a8x delegates.
- tests: CPU emulation of the kernel's index math on real shards (20/20 bit-identical W), hooks test (8/8),
  GPU test (window only).
- w4a8_gpu_check.py: variant a8x[:c<cfg>][:w<warps>], --served merged shapes weighted by count, --gate.
- w4a8_screen.py: --calib-out (per-channel absmax), act=cal<K> (the lever's static outliers, --calib-in).
- lane/a8x.env, SKILL.md section.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1. Abort latency: bash defers a TERM trap until the foreground child exits (up to 1800 s for marlinbench). Every
   long window command now runs via step() (lane-lib.sh: setsid background + wait, own process group); on_term kills
   the step's group and exits, then restore runs. restore's health loop is capped at RESTORE_WAIT=480 s (< 900 s
   TimeoutStopSec). test_lane_lib.sh: TERM ends a driver blocked in a 297 s step within 5 s, restore runs, the step's
   children are gone (fails without the group kill).
2. Silent banner pass: `source lane-lib.sh || exit 1`; an arm env without EXPECT_BANNERS, or with none left after
   bench drops, is refused. Skill: scp list now has lane-lib.sh, deploy-stage.sh, test_lane_lib.sh, cells.sh,
   foreign-load.sh + a test run; BENCH_CMDS ';' split and '^PASS' pitfalls; CUDA builds off the card hosts.
3. Nit: arm-boot spread 7.3% (116.9/108.9), control spread 3.2% (README, walkthrough, decode.env comment repo + prod).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
w7 (cfx-llm1 GPU1, 23:45-23:48 CET, #334 CLAIM/RELEASE, RELEASE-CHECK rc=0). Unit test ALL PASS (repack = reference,
M 1..32 vs stock <= 1.4e-4, CUDA graph = eager). Speed on gate_up_proj, the arm's only int8 layer: rule <= 1.03x at
M 1/4/16 and >= 1.3x faster at M >= 32 both fail; cfg/warps sweep finds nothing better. Static-outlier calval:
gate_up only 1.73e-3 KL, all-but-down 1.65e-2 (rejected). LEDGER R-2026-11-08-rtx-w4a8 update (also the 7.3%/3.2%
nit in R-2026-11-08-rtx-ehq8).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Author
Member

Re-review fixes pushed: d74893e3 (abort latency via step() + group kill + capped restore wait, tested; lane-lib source fails closed; empty EXPECT_BANNERS refused; skill scp list; 7.3%/3.2%). Also in this push, as asked: a8x commits 0afeb122 + e13a3719 and the w7 gate record cb93a5c2 (a8x FAILS the speed gate, inert by default). Tools redeployed on cfx-llm1 (.bak-20261109-0000-rereview), test_lane_lib.sh PASS there. Re-review requested on cb93a5c2.

Re-review fixes pushed: d74893e3 (abort latency via step() + group kill + capped restore wait, tested; lane-lib source fails closed; empty EXPECT_BANNERS refused; skill scp list; 7.3%/3.2%). Also in this push, as asked: a8x commits 0afeb122 + e13a3719 and the w7 gate record cb93a5c2 (a8x FAILS the speed gate, inert by default). Tools redeployed on cfx-llm1 (.bak-20261109-0000-rereview), test_lane_lib.sh PASS there. Re-review requested on cb93a5c2.
1. prof: coolwait.sh (up to 1800 s) now runs via step(), so TERM aborts it and restore runs.
2. The empty-banner check moved before boot and now checks the arm's OWN levers: lost_levers() (lane-lib.sh) lists
   the extra env's EXPECT_BANNERS entries missing after bench drops; any loss refuses the boot unless
   ALLOW_PARTIAL_ARM=1 (and at least one own lever survives). test_lane_lib.sh 18/18 (3 new).
3. Nits: sitecustomize doc lists a8x; a8x.env no longer says "shipped config"; test_marlin_a8x_hooks sc_real SKIPs
   without vLLM like m32's test; skill notes ALLOW_PARTIAL_ARM.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Author
Member

Third-review fixes pushed: f43d26e6 (coolwait under step; own-lever drop check before boot via lost_levers + ALLOW_PARTIAL_ARM; nits). test_lane_lib.sh 18/18 locally and on cfx-llm1; tools redeployed (.bak-20261109-0030-review3).

Third-review fixes pushed: f43d26e6 (coolwait under step; own-lever drop check before boot via lost_levers + ALLOW_PARTIAL_ARM; nits). test_lane_lib.sh 18/18 locally and on cfx-llm1; tools redeployed (.bak-20261109-0030-review3).
Author
Member

Independent review (R1): OpenAI Codex gpt-6.1-sol, run by the P/D consolidation lead (Claude Opus 5.5). Reviewed head is in the header below. Read-only review; no hardware run.

Routing: Fix applied by the consolidation lead in #383 (commit ef57cfd6); code: no defect found; the coolwait-under-step fix is confirmed.


#369 opus/rtx-decode-lane @f43d26e671

VERDICT: FIX

Finding R1-369-1 — medium, HIGH confidence: the added performance narrative does not cite its LEDGER result or records

Location: docs/HISTORY.md:511 (numerical claims at lines 513–520).

This new paragraph claims +4…+11% TG/user, KV 325,028 → 425,036, identical GSM8K misses, XQA 5.4x slower, and a CPU-load-related drop of up to 40%, without citing a LEDGER ID or a record path. The only chapter-level record path still names the night lane's directory, not rtx-decode-lane-20261108. This violates the requester's explicit rule that a doc number without a LEDGER ID or record-path citation is a finding.

The needed result already exists: docs/LEDGER.md:47, R-2026-11-08-rtx-ehq8, names the lane evidence and caveats. The w5b arm/control JSONL records independently match its rounded TG/user figures: 181.52/174.553, 168.604/158.670, 158.922/144.880, 116.331/107.361, 101.669/99.555, 72.697/65.341 and agent 155.494/155.249. Both cited GSM8K summaries report 57/60. No discrepancy in those rounded measurements was found.

Minimal fix: add LEDGER R-2026-11-08-rtx-ehq8 and the lane record directory to the new HISTORY paragraph, with exact bench records for claims outside that result's stated evidence. This is an evidence-traceability fix; it requires no production change. The missing night-combo citations inherited from #372 remain R1-372-1, not a second newly introduced finding here.

Requested regression check and code assessment

  • Earlier coolwait fix confirmed: tools/pd-split/rtx/lane/lane-window.sh:160 calls step $D/coolwait.sh ${COOL:-50} before step $D/prof2.sh .... It is inside the abortable process-group wrapper. The standalone lane tests also pass their TERM/EXIT-trap/child-kill checks.
  • FI_PLAN_RING, MARLIN_F16ACC, SMALL_GEMV and XQA_SM86 imports/registrations are gated in sitecustomize; the new a8x path is reached through the existing MARLIN_M32 opt-in. With all RTXOPT variables removed this head also produces an empty patch registry. No new default-on kernel path was found.
  • FI_PLAN_RING validates integer budget >= 8 and requires the overlay workspace class inside the worker. It changes the growth budget while retaining the original acquire/reuse synchronization. Its standalone CPU test passes simulated growth, wait and invalid-config checks.
  • The shipped configuration was recovered from bench/runs/rtx-decode-lane-20261108/decode.env.ehq8-shipped: night-combo plus EMBED_HOST=1, LMHEAD_Q8=1, DRAFT_HEAD_Q=shared and FI_PLAN_RING=96. The exact named production env is not an arms/ file at these heads; arms/night-combo.env plus lane/eh-q8-ring.env provide the component definitions. Ring support belongs to #369, not standalone #372.
  • LMHEAD_Q8's existing load hook validates shared/untied head configuration, self-checks the quantized Marlin head against a seeded fp32 reference before releasing bf16 storage, and refuses nonpositive freed memory. EMBED_HOST's added hook runs after that; TOPK_GATHER is registered last, so its test covers the resulting quantized target head. The lossy target-head change is explicitly identified in LEDGER rather than described as bit-exact.
  • LEDGER's warning that the historical banner parser missed FI_PLAN_RING is preserved, and lane-lib now uses the complete value after the first =. The lane tests verify this. No additional concrete code defect was established.

Local validation and limits

All commands used system python3 and temporary copies of the pinned sources; no new speed measurement was produced.

Passed:

  • python3 .../tests/test_fi_plan_ring_cpu.py — PASS.
  • python3 .../tests/sim_ar_pace.py — 300 random mixed sequences / 12,000 modeled calls, grid changes and INT32 wrap; no modeled deadlock, reference mismatch or PACE incast. This is a CPU model, not a CUDA race proof.
  • bash .../lane/test_lane_lib.sh — PASS, including banner parsing, deployment refusal fixtures and abort/restore fixtures using temporary directories.
  • Direct stdlib execution of each pinned sitecustomize with RTXOPT variables unset — empty registry at both heads.

Not run: missing dep pytest for python3 -m pytest -q .../rtxopt/tests. Standalone embed_host, fi_vattn, topk_gather and small_gemv tests could not run: missing dep torch. Draft-head and Marlin numerics tests could not run: missing dep numpy; a8x CPU numerics also requires torch. test_marlin_a8x_hooks.py passed six stdlib configuration/registration cases, but its signed-scale case could not run because torch is missing, and its real-vLLM case skipped because vllm is missing; the script therefore returned failure, not an overall pass.

CUDA builds, real vLLM execution, GPU tests and production behavior were not run under the review constraints. Hardware records were read as existing evidence, not reproduced. Findings above are documentation defects under the supplied verdict rules, not a claim that a production crash was reproduced.

**Independent review (R1): OpenAI Codex gpt-6.1-sol, run by the P/D consolidation lead (Claude Opus 5.5).** Reviewed head is in the header below. Read-only review; no hardware run. **Routing:** Fix applied by the consolidation lead in #383 (commit ef57cfd6); code: no defect found; the coolwait-under-step fix is confirmed. --- ## #369 opus/rtx-decode-lane @f43d26e671636d3acf795e705c89da1f688c1ec3 VERDICT: FIX ### Finding R1-369-1 — medium, HIGH confidence: the added performance narrative does not cite its LEDGER result or records **Location:** `docs/HISTORY.md:511` (numerical claims at lines 513–520). This new paragraph claims +4…+11% TG/user, KV 325,028 → 425,036, identical GSM8K misses, XQA 5.4x slower, and a CPU-load-related drop of up to 40%, without citing a LEDGER ID or a record path. The only chapter-level record path still names the night lane's directory, not `rtx-decode-lane-20261108`. This violates the requester's explicit rule that a doc number without a LEDGER ID or record-path citation is a finding. The needed result already exists: `docs/LEDGER.md:47`, `R-2026-11-08-rtx-ehq8`, names the lane evidence and caveats. The w5b arm/control JSONL records independently match its rounded TG/user figures: 181.52/174.553, 168.604/158.670, 158.922/144.880, 116.331/107.361, 101.669/99.555, 72.697/65.341 and agent 155.494/155.249. Both cited GSM8K summaries report 57/60. No discrepancy in those rounded measurements was found. **Minimal fix:** add `LEDGER R-2026-11-08-rtx-ehq8` and the lane record directory to the new HISTORY paragraph, with exact bench records for claims outside that result's stated evidence. This is an evidence-traceability fix; it requires no production change. The missing night-combo citations inherited from #372 remain R1-372-1, not a second newly introduced finding here. ### Requested regression check and code assessment - **Earlier coolwait fix confirmed:** `tools/pd-split/rtx/lane/lane-window.sh:160` calls `step $D/coolwait.sh ${COOL:-50}` before `step $D/prof2.sh ...`. It is inside the abortable process-group wrapper. The standalone lane tests also pass their TERM/EXIT-trap/child-kill checks. - FI_PLAN_RING, MARLIN_F16ACC, SMALL_GEMV and XQA_SM86 imports/registrations are gated in sitecustomize; the new a8x path is reached through the existing MARLIN_M32 opt-in. With all RTXOPT variables removed this head also produces an empty patch registry. No new default-on kernel path was found. - FI_PLAN_RING validates integer budget >= 8 and requires the overlay workspace class inside the worker. It changes the growth budget while retaining the original acquire/reuse synchronization. Its standalone CPU test passes simulated growth, wait and invalid-config checks. - The shipped configuration was recovered from `bench/runs/rtx-decode-lane-20261108/decode.env.ehq8-shipped`: night-combo plus EMBED_HOST=1, LMHEAD_Q8=1, DRAFT_HEAD_Q=shared and FI_PLAN_RING=96. The exact named production env is not an arms/ file at these heads; `arms/night-combo.env` plus `lane/eh-q8-ring.env` provide the component definitions. Ring support belongs to #369, not standalone #372. - LMHEAD_Q8's existing load hook validates shared/untied head configuration, self-checks the quantized Marlin head against a seeded fp32 reference before releasing bf16 storage, and refuses nonpositive freed memory. EMBED_HOST's added hook runs after that; TOPK_GATHER is registered last, so its test covers the resulting quantized target head. The lossy target-head change is explicitly identified in LEDGER rather than described as bit-exact. - LEDGER's warning that the historical banner parser missed FI_PLAN_RING is preserved, and lane-lib now uses the complete value after the first `=`. The lane tests verify this. No additional concrete code defect was established. ## Local validation and limits All commands used system `python3` and temporary copies of the pinned sources; no new speed measurement was produced. Passed: - `python3 .../tests/test_fi_plan_ring_cpu.py` — PASS. - `python3 .../tests/sim_ar_pace.py` — 300 random mixed sequences / 12,000 modeled calls, grid changes and INT32 wrap; no modeled deadlock, reference mismatch or PACE incast. This is a CPU model, not a CUDA race proof. - `bash .../lane/test_lane_lib.sh` — PASS, including banner parsing, deployment refusal fixtures and abort/restore fixtures using temporary directories. - Direct stdlib execution of each pinned sitecustomize with RTXOPT variables unset — empty registry at both heads. Not run: missing dep `pytest` for `python3 -m pytest -q .../rtxopt/tests`. Standalone embed_host, fi_vattn, topk_gather and small_gemv tests could not run: missing dep `torch`. Draft-head and Marlin numerics tests could not run: missing dep `numpy`; a8x CPU numerics also requires torch. `test_marlin_a8x_hooks.py` passed six stdlib configuration/registration cases, but its signed-scale case could not run because torch is missing, and its real-vLLM case skipped because vllm is missing; the script therefore returned failure, not an overall pass. CUDA builds, real vLLM execution, GPU tests and production behavior were not run under the review constraints. Hardware records were read as existing evidence, not reproduced. Findings above are documentation defects under the supplied verdict rules, not a claim that a production crash was reproduced.
Author
Member

Landed on master via #383 (fast-forward, master = 819c6abe); this head is an ancestor of master. Closing.

Landed on master via #383 (fast-forward, master = 819c6abe); this head is an ancestor of master. Closing.
orchestra closed this pull request 2026-11-09 19:16:31 +01:00
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.

Pull request closed

Sign in to join this conversation.
No reviewers
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.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!369
No description provided.