pp32k: cold-prefill night 2026-11-09 (CKPT_DEFER on export arm, suffix-rate finding, window safety fixes) #376

Merged
orchestra merged 16 commits from pp32k-prefill into master 2026-11-09 09:55:39 +01:00
Member

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:

PP tok/s ctl → cdr 4k 8k 16k 32k
B1 5144 → 5810 (+13.0%) 6476 → 6741 (+4.1%) 6873 → 7206 (+4.8%) 6910 → 7035 (+1.8%)
B4 4890 → 5427 (+11.0%) 6338 → 6775 (+6.9%) 6847 → 7039 (+2.8%) 6796 → 6914 (+1.7%)
B8 5258 → 5190 (−1.3%) 6286 → 6390 (+1.7%) 6929 → 6985 (+0.8%) 6860 → 6916 (+0.8%)

TG/user −1.7…+1.9%. Verdict NOISE at 32k; the real gain is on short steps.

  • cdr gates: DRAM OOM at max_model_len 262144 (pool allocated after KV sizing) and an export StagedRef bug. 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 (queued bench/queues/pp32k-w3a.txt, suffix shape) and a working export check.
  • Production suffix-prefill rate (router log): a ~6k suffix on a ~30k cached prefix runs at 4.1k tok/s (cold 32k: 6.4k). The agentic B8 TTFT < 5 s target needs ~7.5k on that shape.

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; installed router-prod-restore.sh on cfx-llm1 now prints mode=pd from router.env and appends to pd-mode.log (backup .bak-pp32k-20261109; source lives on opus/rtx-dynk-fix).
  • export_check.sh: the ssh -n wrapper had fed /dev/null to the probe heredoc (no request ever ran).

Also in here

  • merge of 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.
  • skill tt-cold-prefill-window (for pi), walkthrough docs/walkthroughs/2026-11-08-pp32k-cold-prefill.md, HISTORY beat, LEVERS Pending row.

Caveat for merge: model_runner.py / pd_export.py change (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, ttx test_gates; scripts/check-cited-records.py OK.

🤖 Generated with Claude Code

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: | PP tok/s ctl → cdr | 4k | 8k | 16k | 32k | |---|---|---|---|---| | B1 | 5144 → 5810 (+13.0%) | 6476 → 6741 (+4.1%) | 6873 → 7206 (+4.8%) | 6910 → 7035 (+1.8%) | | B4 | 4890 → 5427 (+11.0%) | 6338 → 6775 (+6.9%) | 6847 → 7039 (+2.8%) | 6796 → 6914 (+1.7%) | | B8 | 5258 → 5190 (−1.3%) | 6286 → 6390 (+1.7%) | 6929 → 6985 (+0.8%) | 6860 → 6916 (+0.8%) | TG/user −1.7…+1.9%. Verdict NOISE at 32k; the real gain is on short steps. - cdr gates: DRAM OOM at max_model_len 262144 (pool allocated after KV sizing) and an export `StagedRef` bug. **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 (queued `bench/queues/pp32k-w3a.txt`, suffix shape) and a working export check. - **Production suffix-prefill rate** (router log): a ~6k suffix on a ~30k cached prefix runs at **4.1k tok/s** (cold 32k: 6.4k). The agentic B8 TTFT < 5 s target needs ~7.5k on that shape. **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; installed `router-prod-restore.sh` on cfx-llm1 now prints `mode=pd` from router.env and appends to `pd-mode.log` (backup `.bak-pp32k-20261109`; source lives on `opus/rtx-dynk-fix`). - `export_check.sh`: the `ssh -n` wrapper had fed /dev/null to the probe heredoc (no request ever ran). **Also in here** - merge of `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. - skill `tt-cold-prefill-window` (for pi), walkthrough `docs/walkthroughs/2026-11-08-pp32k-cold-prefill.md`, HISTORY beat, LEVERS Pending row. **Caveat for merge:** `model_runner.py` / `pd_export.py` change (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`, ttx `test_gates`; `scripts/check-cited-records.py` OK. 🤖 Generated with [Claude Code](https://claude.com/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>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The production export arm runs with QWEN36_PREFIX_CKPT_DEFER=0 since 11-05 (its 4-entry
staging pool on top of the span-16 MTP warm tail ran device DRAM out at boot), so it lacks
lever L1 of R-2026-11-03-cold-prefix-l1234 (B1/32k PP +10.3%, B1/4k +34.8% jointly with L3/L4).
- QWEN36_PD_EXPORT_CKPT_ROWS: with CKPT_DEFER in an export process, resolve in-step only the
  staged final checkpoints of export-marked rows (after_prefill ships those now); other rows
  keep the deferred readback. Off by default; refuses without CKPT_DEFER; banner + stats.
- arm s12phv-pd-export-mtp-cdr: CKPT_DEFER=1, CKPT_DEFER_SLOTS=2 (75.8 MiB/card), CKPT_ROWS=1.
- arm s12phv-pd-export-mtp-ctl: gate-less twin of production for the A/B.
- bench/probes/pp32k/window.sh: night-window driver (P/D health precheck, CLAIM/RELEASE on
  #334, router-prod-restore.sh RELEASE-CHECK); export_check.sh: export + plain rows in one step.

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>
ab_table.py reproduces R-2026-11-03-cold-prefix-l1234's cells exactly from its records.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Per #334 COORDINATION 2026-11-08: cfx-llm0 TT and cfx-llm1 RTX windows never overlap,
windows ~60 min then re-queue. tools/pp32k/open_claims.py reads #334 JSON (12 h, RELEASE key,
'to at most HH:MM' end); window.sh waits instead of aborting, caps each window at
CLAIM + 75 min (06:00 hard), exits 3 on an unverified restore; chain.sh runs windows back
to back; ab_table.py pools several ab tags.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
w1 (2026-11-09) gated cdr at max_model_len 262144: MTP warm-tail DRAM OOM after agent-sessions, and the export
final path shipped a StagedRef when the row's step had no plan.checkpoint (TypeError, export aborted).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
w1b 2026-11-09: the cdr gate container served on :8000 and the live router sent two 35k user requests into it
(export aborted, TTFT 145/151 s through the RTX fallback). export_check's ssh -n wrapper fed /dev/null to the
probe heredoc, so no probe request ever ran (w1, w2). The ctl twin inherited a CKPT_DEFER after_traffic banner.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Cold PP cdr vs ctl (n=2): B1 4k +13%, B4 8k +6.9%, 32k +0.8..+1.8% (noise). cdr OOMs at 262144; cdrkv passes
all four gates. Production suffix rate (6k on 30k cached) 4.1k tok/s vs ~7.5k needed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
merge pp32k-opmark: served per-op prefill profile tooling (OPMARK/OPTRACE, pfprof arm) + S3 profile record
Some checks failed
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
5db2bc5563
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
skill tt-cold-prefill-window: cite the S3 profile record by branch
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 4m58s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 12m12s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 8m5s
cards-fresh cards: not measured (serving active or MemAvailable low); add cards:go to retry
tt-stack-ci / Serialized card gate (pull_request) Successful in 10m16s
8186fd33fa
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

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.sh with foreign-claim detection + P/D-mode restore, export_check.sh heredoc fix). All new levers are env-gated default-off: QWEN36_PD_EXPORT_CKPT_ROWS=1 (which requires QWEN36_PREFIX_CKPT_DEFER=1), TTX_MESH_PORT (byte-identical when unset, default 8000). The CKPT_ROWS path in model_runner.py falls 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:

  • [warn] 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 = False skips the new branch), so no production behaviour changes — but flagging per the shared-tooling standing-default rule so the merge is a deliberate choice.
  • [warn] tools/ttx/ttxlib/arm.py:50 — SLOT_PORT["mesh"] is now read from TTX_MESH_PORT env (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.
  • [warn] Per PR body caveat: model_runner.py / pd_export.py changes 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 when QWEN36_PD_EXPORT_CKPT_ROWS is unset.
  • [nit] bench/probes/pp32k/window.sh uses ssh sudo -n systemctl stop/start tenstorrent-serving on 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 on router-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, no autoRollback=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 running on head 8186fd33. Once the run lands green on that exact head, apply the single-id human-approved label.

**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.sh` with foreign-claim detection + P/D-mode restore, `export_check.sh` heredoc fix). All new levers are env-gated default-off: `QWEN36_PD_EXPORT_CKPT_ROWS=1` (which requires `QWEN36_PREFIX_CKPT_DEFER=1`), `TTX_MESH_PORT` (byte-identical when unset, default 8000). The CKPT_ROWS path in `model_runner.py` falls 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:** - [warn] `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 = False` skips the new branch), so no production behaviour changes — but flagging per the shared-tooling standing-default rule so the merge is a deliberate choice. - [warn] `tools/ttx/ttxlib/arm.py:50` — `SLOT_PORT["mesh"]` is now read from `TTX_MESH_PORT` env (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. - [warn] Per PR body caveat: `model_runner.py` / `pd_export.py` changes 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 when `QWEN36_PD_EXPORT_CKPT_ROWS` is unset. - [nit] `bench/probes/pp32k/window.sh` uses `ssh sudo -n systemctl stop/start tenstorrent-serving` on 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 on `router-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`, no `autoRollback=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 `running` on head `8186fd33`. Once the run lands green on that exact head, apply the single-id `human-approved` label.
Member

Cards skipped

Cards unavailable on cfx-llm0 for PR #376 8186fd33faf9d29f20557bda801730eec8607b02.

  • systemctl is-active tenstorrent-serving.service = active (need inactive)
  • MemAvailable = 78713144 kB (need >= 4000000)

No slot taken, no boot. This skip is green.

## Cards skipped Cards unavailable on `cfx-llm0` for PR #376 `8186fd33faf9d29f20557bda801730eec8607b02`. - `systemctl is-active tenstorrent-serving.service` = `active` (need `inactive`) - MemAvailable = `78713144` kB (need >= 4000000) No slot taken, no boot. This skip is green.
pp32k: KV sizer reserves the CKPT_DEFER pool (cdrfix arm), DRAM ledger, real export-row test, PP=2 probe + projection
Some checks failed
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
3e36c4c9dd
Owner 2026-11-09 (A): the checkpoint staging pool was allocated at warmup after the
KV pool was sized, so at max_model_len 262144 cdr ran DRAM out (w1 gsm8k OOM).
get_max_tokens_all_users now subtracts prefix_snap.kv_reserve_tokens (pool bytes per
card from config.json, as whole KV blocks at the arm's KV dtypes: 2 entries =
75.8 MiB = 3 blocks) before num_gpu_blocks is computed; StagePool and the sizer share
entry_bytes(). QWEN36_DRAM_LEDGER=1 logs the allocator view after KV, around the
pool (measured vs formula, RESERVE SHORT warning) and at the first served prefill.
Arm s12phv-pd-export-mtp-cdrfix replaces the hard-coded cdrkv.
tests/test_pd_export_staged_row.py drives a real export row through after_prefill
to a loopback receiver (StagedRef final checkpoint) and reproduces the w1 TypeError
without resolve_staged.

Owner (B): flops_ceiling pp_* shapes (every prefill projection at TP=2 half vs full
width, M 2048/8192, served operands) + norm tier; tools/pp32k/pp_project.py projects
PP=2 stage time vs the S3 TP=2 chunk. Queues w3a/w3b/w3c for the 11-10 night.

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

Update for owner decisions 2026-11-09 (3e36c4c9, docs in the next commit):

  • (A) KV sizer now reserves the CKPT_DEFER pool (prefix_snap.kv_reserve_tokens: 2 entries = 75.8 MiB/card = 3 KV blocks, not the hand-picked 2); QWEN36_DRAM_LEDGER logs the allocator view; arm s12phv-pd-export-mtp-cdrfix replaces cdrkv. Real export-row test (tests/test_pd_export_staged_row.py) to a loopback receiver; wrong-input branch reproduces the w1 TypeError.
  • (B) PP=2 projection: flops_ceiling pp_* shapes (half vs full width, M 2048/8192) + norm tier, tools/pp32k/pp_project.py.
  • Cards: chain w3a/w3b/w3c queued for 2026-11-10 02:00 (export check + cold A/B; suffix A/B + gates; PP probe + ETH). No nixos-llm PR until cdrfix holds.
Update for owner decisions 2026-11-09 (3e36c4c9, docs in the next commit): - (A) KV sizer now reserves the CKPT_DEFER pool (prefix_snap.kv_reserve_tokens: 2 entries = 75.8 MiB/card = 3 KV blocks, not the hand-picked 2); QWEN36_DRAM_LEDGER logs the allocator view; arm s12phv-pd-export-mtp-cdrfix replaces cdrkv. Real export-row test (tests/test_pd_export_staged_row.py) to a loopback receiver; wrong-input branch reproduces the w1 TypeError. - (B) PP=2 projection: flops_ceiling pp_* shapes (half vs full width, M 2048/8192) + norm tier, tools/pp32k/pp_project.py. - Cards: chain w3a/w3b/w3c queued for 2026-11-10 02:00 (export check + cold A/B; suffix A/B + gates; PP probe + ETH). No nixos-llm PR until cdrfix holds.
pp32k docs: KV-sizer reserve + DRAM ledger, PP=2 model and probe plan (owner decisions 2026-11-09)
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 7m21s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 16m8s
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
245fea6e4f
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pp32k review fixes (#376): pool sized by allocated pages, ledger gate first, largest-free floor, export guard
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 3m11s
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
4200f3ea28
1. prefix_snap.entry_bytes counts interleaved DRAM pages (ceil(pages/8 banks) in every
   bank): each [1,1,5120] row-major conv tap is one page = 81,920 B/card, so 2 entries
   = 102.0 MiB/card (not 75.8) -> the KV reserve is 4 blocks (8192 tokens). Tests pin
   the allocated formula. w3a step 1 = one-boot ledger check (bench/probes/pp32k/
   ledger_check.sh + tools/pp32k/ledger_check.py: measured pool == formula, <= reserve,
   post-warmup largest free >= 8 MiB/bank); every later w3a/w3b step needs its marker.
2. The w1 OOM was fragmentation (8.0 MiB free/bank, largest 3.75 MiB < 5.0 asked):
   QWEN36_DRAM_LEDGER_MIN_LARGEST_MIB -> LOW HEADROOM (cdrfix absent list); FORMULA
   MISMATCH / RESERVE SHORT vs the sizer's recorded reserve. Wording fixed in arms/docs.
3. KV dtype aliases = tp_common.KV_DTYPE_ALIASES (test keeps the key sets equal).
4. pd_export: resolve_staged only on the hook's own snapshot; a runner-held StagedRef
   fails the export closed (test).
w3c: ethdisp from pinned 99c4d81c as a detached worktree inside the repo.

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

Review fixes in 4200f3ea; re-review requested.

  1. High (prefix_snap entry_bytes): now counts allocated interleaved pages, ceil(pages/8 banks) per bank. Conv tap [1,1,5120] row-major = 81,920 B/card; rec 384 tiles = 786,432 B. 2 entries = 102.0 MiB/card, so the reserve is 4 blocks (8192 tokens). tests/test_ckpt_kv_reserve.py pins the allocated formula. w3a step 1 is a one-boot ledger check (bench/probes/pp32k/ledger_check.sh, tools/pp32k/ledger_check.py): the measured pool must equal the formula (±2% + 1 MiB), stay ≤ the reserve, and leave a post-warmup largest free block ≥ 8 MiB/bank. Every later w3a/w3b step needs its pass marker.
  2. Fragmentation: QWEN36_DRAM_LEDGER_MIN_LARGEST_MIB=8 logs LOW HEADROOM, which is in cdrfix's absent list together with FORMULA MISMATCH and RESERVE SHORT. RESERVE SHORT is checked against the reserve the sizer recorded. '8.3 MB free' is corrected to 8.0 MiB free/bank, largest block 3.75 MiB < 5.0 MiB asked, in the arms, the test and the docs.
  3. _KV_BPE covers every tp_common.KV_DTYPE_ALIASES key; a test keeps the sets equal, and unknown aliases raise.
  4. pd_export: resolve_staged runs only on the hook's own snapshot. A StagedRef in snapshots_by_slot fails that export closed and is not resolved (test_runner_staged_snapshot_fails_closed).
    Chain killed before any commit. w3c ethdisp now runs from pinned 99c4d81c as 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.
Review fixes in 4200f3ea; re-review requested. 1. High (prefix_snap entry_bytes): now counts allocated interleaved pages, ceil(pages/8 banks) per bank. Conv tap [1,1,5120] row-major = 81,920 B/card; rec 384 tiles = 786,432 B. 2 entries = 102.0 MiB/card, so the reserve is 4 blocks (8192 tokens). tests/test_ckpt_kv_reserve.py pins the allocated formula. w3a step 1 is a one-boot ledger check (bench/probes/pp32k/ledger_check.sh, tools/pp32k/ledger_check.py): the measured pool must equal the formula (±2% + 1 MiB), stay ≤ the reserve, and leave a post-warmup largest free block ≥ 8 MiB/bank. Every later w3a/w3b step needs its pass marker. 2. Fragmentation: QWEN36_DRAM_LEDGER_MIN_LARGEST_MIB=8 logs LOW HEADROOM, which is in cdrfix's absent list together with FORMULA MISMATCH and RESERVE SHORT. RESERVE SHORT is checked against the reserve the sizer recorded. '8.3 MB free' is corrected to 8.0 MiB free/bank, largest block 3.75 MiB < 5.0 MiB asked, in the arms, the test and the docs. 3. _KV_BPE covers every tp_common.KV_DTYPE_ALIASES key; a test keeps the sets equal, and unknown aliases raise. 4. pd_export: resolve_staged runs only on the hook's own snapshot. A StagedRef in snapshots_by_slot fails that export closed and is not resolved (test_runner_staged_snapshot_fails_closed). Chain killed before any commit. w3c ethdisp now runs from pinned 99c4d81c as 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.
pp32k review 2 (#376): ledger gate fails a shrunk pool; ledger tests run standalone; LEDGER arm line
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 4m22s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 16m19s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 11m45s
cards-fresh / Re-check cards-fresh on open PRs (push) Has been cancelled
cards-fresh cards: not measured (serving active or MemAvailable low); add cards:go to retry
tt-stack-ci / Serialized card gate (pull_request) Successful in 16m58s
3627c1f587
- ledger_check.py: fail when the measured pool's formula differs from the sizer's planned pool,
  when the engaged entry count differs from the sizer's entries (defer_slots), or on '(asked ';
  cdrfix absent list gets '(asked '. Test = the reviewer's halved-pool repro.
- tests/test_ckpt_kv_reserve.py: unittest.main() moved to the end (TestLedgerCheck ran only under pytest).
- LEDGER: cdr pool 102.0 MiB allocated; cdrkv 511 vs 513 blocks.

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

Re-review 2 fixes in 3627c1f5 (final quick check requested):

  1. Medium: ledger_check.py now fails when (a) the formula pool differs from the sizer's planned pool, (b) the engaged entry count differs from the sizer's entries, or (c) the log contains '(asked '. '(asked ' is also in cdrfix's absent list. The reviewer's halved repro (rev376/logs/halved.log) now FAILs all three, rc=1, and is test_halved_pool_fails.
  2. unittest.main() is now at the end of the file. Run standalone, test_ckpt_kv_reserve.py runs 16 tests, including TestLedgerCheck.
  3. LEDGER arm line: 102.0 MiB allocated (75.8 raw), cdrkv 511 vs 513 blocks.
    ttx lint cdrfix OK.
Re-review 2 fixes in 3627c1f5 (final quick check requested): 1. Medium: ledger_check.py now fails when (a) the formula pool differs from the sizer's planned pool, (b) the engaged entry count differs from the sizer's entries, or (c) the log contains '(asked '. '(asked ' is also in cdrfix's absent list. The reviewer's halved repro (rev376/logs/halved.log) now FAILs all three, rc=1, and is test_halved_pool_fails. 2. unittest.main() is now at the end of the file. Run standalone, test_ckpt_kv_reserve.py runs 16 tests, including TestLedgerCheck. 3. LEDGER arm line: 102.0 MiB allocated (75.8 raw), cdrkv 511 vs 513 blocks. ttx lint cdrfix OK.
Author
Member

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.

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.
orchestra merged commit 3627c1f587 into master 2026-11-09 09:55:39 +01:00
Owner

agent-gateway closeout (merged): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (merged): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Member

Cards skipped

Cards unavailable on cfx-llm0 for PR #376 3627c1f5876c950715b7df9a58ce9e042c28b4ca.

  • systemctl is-active tenstorrent-serving.service = active (need inactive)
  • MemAvailable = 38706024 kB (need >= 4000000)

No slot taken, no boot. This skip is green.

## Cards skipped Cards unavailable on `cfx-llm0` for PR #376 `3627c1f5876c950715b7df9a58ce9e042c28b4ca`. - `systemctl is-active tenstorrent-serving.service` = `active` (need `inactive`) - MemAvailable = `38706024` kB (need >= 4000000) No slot taken, no boot. This skip is green.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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!376
No description provided.