Perf loop c27–59: bit-exact stack −16…−18% B=8 makespan, EFMG −23% (escalated), MTP-batch (off), ttx gates/lint #102
No reviewers
Labels
No labels
cards:go
hermes-approved
human-approved
human-approved
iter
0
iter
1
iter
2
iter
3
prio:high
prio:low
prio:med
priority/high
state
blocked
state
doing
state
done
state
review
state
todo
x280
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!102
Loading…
Reference in a new issue
No description provided.
Delete branch "serving-throughput"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Perf loop, cycles 27–59, plus harness, MTP-batch and research. Every lever is off by default and gated by its own
QWEN36_*flag. Production serving is unchanged until the owner redeploys with flags set.Merge gate (on hardware)
bench/runs/merge-gate-serving-throughput-20260927T0950Z.jsonl.test_prod_matches_nixpasses. The Nix unit now mountsmtp_batch.pyandmtp_batch_host.py:qwen36_vllm.pyimportsmtp_batch_hostunconditionally, so a deploy without these mounts would fail at import.check-cited-records.pypasses.Confirmed improvements (LEDGER, TP=2, G2 bfp4, bf8 KV)
prod-g2-EF-gdnfused-sdpa(image k2-mr-pk2)R-2026-09-27-stack-bitexact-sdpaprod-g2-EFMG(image k2-mr-pk)R-2026-09-27-stack-EFMGB=1 on the bit-exact stack: TG 37.9 ms/token (loop start 50.8), PP about 3.9–4.1k tok/s. EFMG at B=1: TG 32.6 ms/token.
Bundles E and F, fused GDN, and SDPA GQA multicast at q=128 are all bit-exact, each with its own LEDGER entry and records.
Included but NOT yet proven on hardware (default off)
QWEN36_MTP_BATCH(batched MTP, docs/MTP-BATCH.md). It passes its host tests and the ttsim mechanics probe. Its B=8 greedy check has not run yet (the c58 attempt was void because of a harness bug, since fixed).perf-loop-c54).Tooling and docs
batched_onlybanners;equiv,gsm8kandretrievalsuites; a discarded warm cell;card_sandoutcomein every record.docs/PROCESS-REVIEW-2026-09-27.md,docs/RESEARCH-KERNEL-WORKBENCH.md, and the tt-bundle-loop skill updates.Deploying either stack is the owner's call. It needs the k2-mr-pk2 (or k2-mr-pk) image plus the arm's env.
🤖 Generated with Claude Code
Before: the c41p one-card probe showed num_workers_per_dram_bank 2-3 cuts the decode projections 12-28%, but on the TP=2 mesh every readers>1 matmul TT_FATALs in get_worker_noc_hop_distance ("only supported on unit MeshDevice"), so D1 could not be tried at TP=2 at all. #55922 (merged 09-11, not in our base) makes the reader placement mesh-aware; its only host change is in ttnn and the MeshDevice overload it calls is already exported by our libtt_metal.so, so a .so overlay on k2 is enough. 0024 carries the two ttnn hunks (placement + the k-row burst bound in the JIT reader), not the unrelated CB-stats hunks. Built on nixos by docker/build-k2-mr.sh (clean builder container, K ops re-grafted from k2, incremental ninja), verified in-build (mesh overload imported, op surface == k2, bind-now import OK) and loaded on cfx-llm2 (62/68 layers deduped, no image removed). No device run; no speed number. Record: bench/runs/k2-mr-build-20260927T0000Z.jsonl. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>What we believed: a DRAM-sharded decode path needs a second, width-sharded copy of every projection weight (the old .dramshard caches), which the TP=2 DRAM budget may not hold. What ttsim showed (n6 probe, correctness only): the interleaved weight can be re-laid out on device losslessly (uneven last shard included, so no padding and no cache change), and the in-proj AGMM / minimal_matmul read the relaid weight bit-identically -- but the 2D mcast prefill matmul reads a DRAM width-sharded weight WRONG with no error (PCC ~0.1). So per role: w1/w3 (decode-only; prefill uses w_gate_up) and qkvzab / attn_qkv are relaid out in place (0 extra DRAM); w2 and attn wo / GDN out get a decode-only sharded copy (ESTIMATE ~2.2 GiB/chip), relayout refused. Readers/in0 default to the c41p winners and are env-overridable (QWEN36_DECODE_MR_{ROLES,READERS,IN0,LAYOUT}). Banner lists the per-role config; one counted QWEN36_DECODE_MR_LAYER line per converted layer; bad configs raise, no fallback to 1D. Config is built from ModelArgs in tp_common, not model_config.py, so no ttx tensor-cache key moves. The MLP half is in decode-levers/mlp.py (prod mounts the image's mlp.py). Flag unset: every branch is inert. Validated: tests/test_decode_mr_lever.py (7 tests, inside vllm-tt:k2-mr, no device). Not validated: any model run, trace capture, L1 fit in-model, speed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>The 2026-09-27 process review (docs/PROCESS-REVIEW-2026-09-27.md) counted ~13 gate boots lost to the harness, not to arms: identity refusals discovered only after a full boot (6, ~35 min), c47's missing fixtures, c58's default-model 404, and a first 4k cell that carries the boot's cold JIT. We believed the identity check and the ad-hoc gate scripts were cheap safety; the evidence says they cost more card time than several levers. No hardware was used for this change; every test runs offline. - `ttx lint <arm> [--seqs N...]`: every [expect] banner / batched_only / min_counts string must be a substring of some expansion of a format string in the STAGED overlay (f-string fields, %-codes, {} fields are wildcards); image-only sources (patches/**/*.patch, $TTX_IMAGE_SRC) warn; batched_only is checked per B (c56); the verifier's env flags are read from scripts/verify-arm-banners.sh itself. `ttx run`, `ttx up` and `ttx ab` lint first and refuse on an error (--no-lint skips). All current arms pass except decode-split-tp2-prof without its driver's --mount, which is exactly the refusal its comment promises. - `--suite equiv | gsm8k | retrieval`: bench/batch-equiv-bench.py, bench/gsm8k.py and bench/kv-accuracy.py on the box against the session's port and served name, scripts, fixtures, references and the GSM8K dataset staged; a local preflight (--dry-prompts, ref width/tokens/prompt shas, sizes vs max_model_len) runs before any slot. equiv records n_exact, tie classes, gaps and a near-tie verdict (1.94, D-2026-09-25-identity-rule); captures land in bench/runs/equiv-ref-NAME.json and are never overwritten. - sweep32k: a discarded 4k B=max warm cell (default on, own prompt salt), kept under `warm_cell`, never in metrics. - Every record carries card_s and outcome (MEASURED/REFUSED/FAILED/VOID); a boot refused late still reports its card time; INDEX.tsv gains outcome and card_s columns. - batch-equiv-bench.py --long-prompts N (default off): ~32k-token prose prompts on disjoint slices, run as a second batch, so a gate covers the chunked prefill path; a reference must match on them. - tt-bundle-loop skill: the new commands, the confirm-boot rule (< 3x band, else a new axis) and re-running the loop control after each reboot or image change. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.