bench(#53/#55): the p150-decode-40 campaign; B=1 control at 48.5 ms, hypothesis A closed #85
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!85
Loading…
Reference in a new issue
No description provided.
Delete branch "decode-campaign-53-55"
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?
The #53/#55 decode campaign the owner rescued off the
serving-throughputworktree before itwas deleted:
bench/p150-decode-40/(program, hypotheses, results), the control andhypA-hostdev records, the low-level audit record, and the GDN conv-gates probes.
Recorded in
docs/LEDGER.mdasR-2026-09-23-decode40:Tracy image and 48.563 under py-spy, text sha
bafed7a9…matching across all three. Thisis the valid control the serving module's
deviceResidentdocs cite — it was a danglingcitation until this branch landed, and is now a plain path.
ttnn.decorators.__call__is45.297 ms, 93.3% of the step — a blocked native call, not host Python; host leaves total
3.27 ms. No large host win at B=1, matching the earlier B=8 finding.
cpp_device_perf_report.csvwith 100% of OP NAME / METAL TRACE ID / REPLAY SESSION IDblank (5916/5916 untraced, 5962/5962 traced; P0 on 09-12 likewise). An unnamed table is not
an inventory, so no class breakdown is quoted from it.
production numbers.
bench/results.tsvrecords the GDN conv-gates attempts explicitly asnot measurements (suspect accounting, then a crash, then a withdrawal).
Resurrections caught and re-deleted
Cut before PR #68, so the merge tried to bring back 21 files that overhaul removed:
CLAUDE.md, tendocs/*.md(DIRECTIVES-LEDGER, DOC-STATUS, GOAL-VLLM-SERVING,LOOP-ITERATIVE-IMPROVEMENT, PRODUCTION-27B, AGY-TAKEOVER-BRIEF, HANDOVER-20260919,
PASS-SDPA-STREAMING-E2E, THATCH-FIR-DRIFT, UPSTREAM-WATCH-PLUGIN-METAL),
nix/production-serving-recipe.nix, and 16bench/runsrecords that already live underbench/runs/archive/2026-09/. All re-deleted in the merge commit, plus an emptyuntitled.md.docs/is back to 11.Production files
Master's side taken for all five conflicts — master is a superset of this branch for each, and
qwen36_vllm.pymost of all, where master has patch 0019 and the branch does not.One thing the branch had that master lacked is kept, re-applied on top of master's
model.py:process_output_decodenow honours_decode_logits_sharded._lm_headsets thatflag under
QWEN36_LM_HEAD_GATHER_MODE=none, but nothing read it, so the mode died on a124160-vs-248320 reshape. No shipped arm changes — that mode is the measured +31 ms batch
regression and is never enabled at batch.
A defect the branch introduced is fixed: it re-pinned
bench/profile/prod-sources.sha256to a newer
model.pywhileprod-decode-profile.shstill hardcoded the old sha as its--expect-shadefault, so the driver would fail immediately after its own manifest checkpassed. The expected sha is now read from the manifest.
Locally green:
check-cited-records.py,shellcheck,nix flake check, 41 ttx unit tests.Refs #53, #55.
🤖 Generated with Claude Code
It read the document and pushed back before accepting it. All four were right: - Section 5 still listed MALLOC_ARENA_MAX and swappiness as levers to batch, contradicting section 2, which had just dropped them on evidence. Section 5 was written before the result landed and I never reconciled it. - Section 2 carried stale in-flight bullets ('Arm 1 running >2h', 'Arm 2 chained to auto-start') sitting directly under the conclusion that both arms finished. - 'PR #34 is merged - verify it deploys' gave no way to verify it. Merging is not deploying: the unit comes from the Nix closure via nixos-llm. Added the command and how to read either outcome. - 'Ship device argmax + prefix caching' was ambiguous. The arm is NAMED prefix but vLLM prefix caching is off and blocked; the cached fraction is the benchmark reusing a prompt head. Renamed and warned. Also recorded the batching lesson where it will be read: two levers were dropped without being convicted because one arm could not attribute its own failure. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>The hugepages=8 control -- the ORIGINAL aperture, no arena cap, stock swappiness -- failed stage 3 at 1 of 32 with the byte-identical assertion ("expected one of ['391']; got: '33'") that the RAM bundle failed on. That settles it. The failure appears at both hugepage counts, with and without the arena cap, with and without the swap change, and under both trace modes. It is the intermittent defect patch 0019 bounded at <=0.85%/request rather than eliminated, and it is not attributable to any host-RAM lever. Retracts the suspicion that MALLOC_ARENA_MAX or swappiness hurt correctness. The earlier record already declined to convict them on one rep; this is the direct evidence that they were innocent. They stay dropped for buying nothing -- arena capping measurably made RSS and VmHWM worse. Two consequences worth carrying. This is a live production defect: about one in 32 concurrent requests returns a coherent-but-wrong answer that passes serially. And methodologically, a single stage-3 rep cannot separate an arm's own defect from this baseline rate, so any arm reporting exactly 1-of-32 needs repeats before that failure is pinned on it. Co-Authored-By: Claude Opus 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.
[ho-524dce6c9795] PR #85 merged before review began — nothing in flight to abort. Skipping. Resources saved.
verdict: approve
tier: T1
Reviewed the p150-decode-40 campaign (records + the one shipped code fix). Nothing in the diff is a risk; the only code change is a correct, gated bugfix.
What changed (vs the branch head / merge base):
Note for the record: the campaign's headline finding (per-op profiler table 100% blank OP NAME on this build) is a measured negative, honestly reported, and nothing is inferred from the unreadable table. Well-documented.
One nit: comment is dense but accurate — fine for a serving hot path. No action.
verdict: approve
tier: T1
Reviewed the p150-decode-40 campaign (records + the one shipped code fix). Nothing in the diff is a risk; the only code change is a correct, gated bugfix.
What changed (vs the branch head / merge base):
_decode_logits_sharded(set byQWEN36_LM_HEAD_GATHER_MODE=none) withConcatMeshToTensor(dim=3)instead of reading one replica and reshaping to full vocab (124160 vs 248320). The flag was already set but never honoured, so the mode died on the reshape. The gate keeps the old one-replica path as the default, so no default behaviour changes. Comment explains the mechanism. Correct../model.pysha from the manifest instead of a hardcoded second copy; fixes the driver failing immediately after its own manifest check passed. Correct, and closes a real drift bug../model.pyto the newer overlay; consistent with the manifest the profile now reads from. No unexplained hash.deviceResidentdocs cited the control by branch-qualified path (decode-campaign-53-55:…) which is now a plain path on master. No semantic change.Note for the record: the campaign's headline finding (per-op profiler table 100% blank OP NAME on this build) is a measured negative, honestly reported, and nothing is inferred from the unreadable table. Well-documented.
One nit:
model.pycomment is dense but accurate — fine for a serving hot path. No action.