pp32k: cold-prefill night 2026-11-09 (CKPT_DEFER on export arm, suffix-rate finding, window safety fixes) #376
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!376
Loading…
Reference in a new issue
No description provided.
Delete branch "pp32k-prefill"
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?
Cold-prefill lane (pp32k). Night of 2026-11-09: 4 TT windows (w1a/w1b/w1c/w2), each CLAIM/RELEASE on #334 with a passing RELEASE-CHECK; router stayed P/D. LEDGER
R-2026-11-09-pp32k-cdr.Result: nothing to ship yet. CKPT_DEFER (L1) on the export arm:
TG/user −1.7…+1.9%. Verdict NOISE at 32k; the real gain is on short steps.
StagedRefbug. cdrkv (KV −2 blocks +pd_export.resolve_staged) passes all four gates (GSM8K 59/60, retrieval 1.0/1.0, agent-sessions, equiv). Still needed before a ship: A/B of cdrkv (queuedbench/queues/pp32k-w3a.txt, suffix shape) and a working export check.Safety fixes (from this night)
TTX_MESH_PORT(ttx): window test containers use :8001. In w1b the gate container sat on :8000 and the live router sent it two real 35k requests (TTFT ~150 s through the RTX fallback).window.sh: waits for foreign #334 claims (tools/pp32k/open_claims.py), windows of ~60 min, RELEASE only with router mode=pd; installedrouter-prod-restore.shon cfx-llm1 now printsmode=pdfrom router.env and appends topd-mode.log(backup.bak-pp32k-20261109; source lives onopus/rtx-dynk-fix).export_check.sh: thessh -nwrapper had fed /dev/null to the probe heredoc (no request ever ran).Also in here
pp32k-opmark(served per-op profile tooling, S3 profile record). The served RT profiler cannot run on cfx-llm0 (Blackhole needs host IOMMU); the parser now reports the skip.tt-cold-prefill-window(for pi), walkthroughdocs/walkthroughs/2026-11-08-pp32k-cold-prefill.md, HISTORY beat, LEVERS Pending row.Caveat for merge:
model_runner.py/pd_export.pychange (env-gated, off by default), so the production arm's gate parity goes STALE after merge; re-gate it in the next window or with the next ship.Tests:
tests/test_pd_export_ckpt_rows.py(11),test_pd_export_hardening,test_prefill_optrace, ttxtest_gates;scripts/check-cited-records.pyOK.🤖 Generated with Claude Code
The c177 opmark table (S3, pp/s3prof) came from the workbench, which calls prefill_forward without the S12 prefix kwargs and so runs a different path on a QWEN36_PREFIX_CACHING arm. This puts the window around the SERVED prefill_forward instead: - patches/pfprof-local (own overlay tree, mounted only by the diagnostic arm): opmark.py override (capture rows during every trace capture, analyse_prefill_window, install hook) + tt/prefill_optrace.py (class-level prefill_forward wrapper; window on the 2nd cold single-row prompt per ctx 4k/16k/32k, realtime profiler both chips, c177 exact-stream naming, sysfs AICLK; JSON to /var/lib/models/ttx-runs/prefill-optrace + log lines). The production trees are untouched: prod tree_sha dca74a98 and its gate records are unchanged. - bench/arms/s12phv-pd-export-mtp-pfprof.toml (arm-derive.py of s12phv-pd-export-mtp + OPMARK + PREFILL_OPTRACE, same tensor-cache key 412e7cd8, same image). - bench/probes/prefill_opmark/{run.sh,verdict.py,profile_table.py}: one sweep32k B=1 run on a max_num_seqs=8 boot (B=8 cells skipped), 35 min hard cap; op-class table, matmul roles, per-op TF/s or GB/s vs roofline and a bound label -> bench/runs/prefill-profile-<arm>-<utc>.jsonl. - profile_table.py re-derives the S3 table from its raw wb record to <=0.013 ms/chunk per class and identical role TF/s (bench/runs/prefill-profile-s3-repro-20261108.jsonl; S3 sources copied from pp/s3prof). - tests/test_prefill_optrace.py (24 incl. test_mtp_optrace pass). DIAGNOSTIC only: no number from the pfprof arm is a served speed number. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>verdict: approve
tier: T1
rationale: Night-bench PR: 4 windows (w1a/w1b/w1c/w2) of cold-prefill at 32k, with the CKPT_DEFER (L1) lever on the export arm (B1/B4/B8 rows, TG/user -1.7..+1.9%, "NOISE at 32k"), plus safety fixes (TTX_MESH_PORT to keep window test containers off :8000,
window.shwith foreign-claim detection + P/D-mode restore,export_check.shheredoc fix). All new levers are env-gated default-off:QWEN36_PD_EXPORT_CKPT_ROWS=1(which requiresQWEN36_PREFIX_CKPT_DEFER=1),TTX_MESH_PORT(byte-identical when unset, default 8000). The CKPT_ROWS path inmodel_runner.pyfalls through to the exact prior behaviour when the env is not set (snapshots = self.model.prefix_ckpt_resolve(snapshots)— unchanged). Nothing ships actively to production cards on merge.concerns:
patches/prod-local-plugin/src/vllm_tt_plugin/model_runner.py+pd_export.py— the CKPT_ROWS lever becomes the standing default for all future production arm boots once this merges. Off path is byte-identical (verified:self._pd_ckpt_rows = Falseskips the new branch), so no production behaviour changes — but flagging per the shared-tooling standing-default rule so the merge is a deliberate choice.tools/ttx/ttxlib/arm.py:50—SLOT_PORT["mesh"]is now read fromTTX_MESH_PORTenv (default 8000). Off-by-default; a caller who forgets to set it gets the old port. Fine as long as the window.sh discipline (window.sh always exports 8001) holds.model_runner.py/pd_export.pychanges make the production arm's gate parity STALE after merge. Author plans to re-gate in the next window or with the next ship — the next ship PR should verify the gate is still byte-identical whenQWEN36_PD_EXPORT_CKPT_ROWSis unset.bench/probes/pp32k/window.shusesssh sudo -n systemctl stop/start tenstorrent-servingon cfx-llm0 during the window — additive-only (new file, no change to existing production tooling), the trap-restore is explicit, and the release is gated onrouter-prod-restore.sh pd+ RELEASE-CHECK. Fine as a probe tool; just noting it does drive live card state.No secret leaks, no RCE patterns, no
--no-verify, noautoRollback=false, no sops bypass, no sops-recipient loosening. Secret-scan and code-exec catalogue both clean (grep-verified zero hits across the 120k-line diff).Label: held — head CI build run 11774 is still
runningon head8186fd33. Once the run lands green on that exact head, apply the single-idhuman-approvedlabel.Cards skipped
Cards unavailable on
cfx-llm0for PR #3768186fd33faf9d29f20557bda801730eec8607b02.systemctl is-active tenstorrent-serving.service=active(needinactive)78713144kB (need >= 4000000)No slot taken, no boot. This skip is green.
Update for owner decisions 2026-11-09 (
3e36c4c9, docs in the next commit):Review fixes in
4200f3ea; re-review requested.Chain killed before any commit. w3c ethdisp now runs from pinned
99c4d81cas a detached worktree inside the repo (.pp32k-wt/, git-excluded). Tests: 88 tests across test_ckpt_kv_reserve, test_pd_export_*, test_cold_pp and test_cold_levers, all OK; ttx lint OK on cdrfix, ctl and cdrkv. The chain will be relaunched only after APPROVE + merge, on the merged code.Re-review 2 fixes in
3627c1f5(final quick check requested):ttx lint cdrfix OK.
Coordinator check of
3627c1f5(the fix for re-review #2): ledger_check now fails on (a) formula != sizer pool, (b) allocated entries != defer_slots, (c) '(asked '. The engaged-line regex matches model.py:2722's format. The reviewer's repro rev376/logs/halved.log -> 3x FAIL, rc=1. tests/test_ckpt_kv_reserve.py standalone: 16 tests OK. cdrfix absent list has '(asked '. LEDGER line corrected. With the two Opus reviews (all earlier findings verified fixed) this closes the last finding: OK to merge.agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.
Cards skipped
Cards unavailable on
cfx-llm0for PR #3763627c1f5876c950715b7df9a58ce9e042c28b4ca.systemctl is-active tenstorrent-serving.service=active(needinactive)38706024kB (need >= 4000000)No slot taken, no boot. This skip is green.