so1 C-split: new best arm (TG -3.1...-3.8%); queue guard + resident fixes #156
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!156
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?
New best arm: so1 C-split (#149, flag-gated port of PR #155).
R-2026-10-03-so1-csplit, STATUS c164 (also covers the #150 doubles re-rank). The README has the new numbers and arm.Also in this merge (tooling, tested on the workstation):
reset_if_killedstep: the old guard reset the cards on every run.Not deployed: production is the owner's call.
🤖 Generated with Claude Code
Believed before: the per-step shell guard emitted by mkqueue.py ("tail -80 $q | grep -q 'needed SIGKILL' && ... slot reset") looked at real signal from a hung step. Actually it tailed the QUEUE'S OWN LOG, which always contains its own "=== STEP n START ... :: <cmd>" line -- and that line is the guard's own command text, which literally says "needed SIGKILL". The guard matched itself on every single run: 92 mesh resets logged vs ~7 real forced kills, each reset (tt-smi -r, ~44s) also wiping weights kept in card DRAM. Fix: a native `reset_if_killed` queue step (tools/ttx/ttxlib/queue.py) that looks only at the PREVIOUS executed step's recorded output (reusing `_tail_log_for_step`, with `=== `-marker lines stripped so it never sees its own command), and resets the mesh only on a real "needed SIGKILL" or a `WATCHDOG <kind>:` trip there. The mesh-reset sequence is factored out of `trip_breaker` into `reset_mesh_slot`, shared by both. mkqueue.py now emits `reset_if_killed` instead of the bash guard; `parse_line` maps the legacy shell guard text onto the same native kind (so old/resumed queue files pick up the fix) while leaving `text` unchanged for done_count step identity. Also note in docs/DEV-LOOP.md that a card reset and a host reboot both invalidate weights kept in card DRAM, so a reset should only ever follow a real forced kill. Tests: tools/ttx/tests/test_queue_robustness.py adds guard-does-not-fire-on -its-own-echo, fires-on-real-SIGKILL, doesn't-fire-two-steps-back, and legacy-line-maps-to-new-kind cases. test_mkqueue.py updated for the new emitted guard text. `python3 -m pytest tools/ttx/tests/` passes (447 passed, 1 skipped; the 2 known test_prod_matches_nix failures are pre-existing and unrelated). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>Believed: each record file a verdict names holds one run. Evidence: ttx run / ttx resident run --stem S append to bench/runs/S.jsonl, and queue c160 r2 reused r1's stems: rv-res-b8-pyreload.jsonl has r1's REFUSED line (16:29Z) above r2's MEASURED one (18:59Z), and the V1 verdict failed on the stale REFUSED ("resident record kind REFUSED"). Rotating or refusing an existing stem in ttx would break queues that name a fixed stem on purpose and would hide the history the file already keeps, so the reader changes instead: per file, the newest record (utc, then line order) for each (label, B) is read, for --fresh, --resident and --equiv alike; a record with another label in the same file is a different measurement and stays, each kept record its own sample (sweep-verdict's cells() kept only a file's last line per cell, so rv-fresh-b8.jsonl's "ref" and "ref r1" boots counted once). The used and superseded lines are printed and recorded (records_used / records_superseded). sweep-verdict.py's cells()/pool() take parsed records; its CLI is unchanged. Re-run on the c160 records: V1 now reads rv-res-b8-pyreload.jsonl:2 (MEASURED) and lists :1 (REFUSED) as superseded; verdict inconclusive (B8/4096 wall +3.0%, n_resident=1), no problems. Tests: tools/ttx/tests/test_resident.py Verdict (reused stem; newest REFUSED still fails). 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.
verdict: approve
tier: T0 (data-heavy benchmark PR; no production
.nix, CI, secret, or fleet-merge path touched — bench arm TOMLs, queue files, run logs, plus Python tooling undertools/ttx/and a flag-gatedQWEN36_MTP_SO1_CSPLITsplit of the MTP commit/draft C trace underpatches/)rationale: The diff is a self-contained experiment/telemetry set plus a flag-gated perf lever behind
QWEN36_MTP_SO1_CSPLIT=1. It is opt-in (unset keeps the one C/C2 trace, byte-identical) and is explicitly not deployed. No secret, no CI gate change, no fleet-merge path, no.nixsemantic change.concerns:
README.md+docs/LEDGER.md/STATUS.md: n=2 on one B=8 boot (cells share one boot for B=8/4/1), TG/wait_cdeltas are single-boot and not statistically robust, but the caveats are stated and the LEDGER record is claimed for what it is. Flagging for awareness, not a block — the reviewer (operator) decides n=2 is acceptable.resident.py teardown_model: the DRAM-accounting rework (gc-referrer walk,dram_survivors,expected_after_teardown) is intricate and hardware-validated on cards only — no offline unit exercises the real_on_dram/_tensor_mibestimate path for a genuine 16+ GiB leak; the fake ttnn intest_resident.pycovers the happy path. Worth a human re-read if it ever trips on a card.arm_switch.py:_rb_mtp_gdn:from models.demos.blackhole.qwen36.tt import mtp_batch_hostimported inside the rebinder (per-call import); fine, but could be a module-level import.Not deployed: production is the owner's call, consistent with the PR.