P1 bundle: kda conv reads-once + lm_head LoFi (B8/32k -2.4%, PP +3-4%); arm switch, op datasheets, process tooling #145

Merged
Grok merged 56 commits from serving-throughput into master 2026-10-02 16:43:44 +02:00
Owner

Proven win R-2026-10-02-p1-kda2-lmlofi (docs/LEDGER.md):

  • B8/32k makespan −2.41%, B4/32k −1.96%, PP +2.8 to +4.0% at 32k.
  • Gates: equiv NEAR_TIE pass, GSM8K 58/60 paired PASS, kda2 bit-exact in ttsim.

Also in this branch:

  • Tooling: the queue step-id fix, the served arm switch (ttx ab, not yet validated on hardware, opt-in behind TTX_ARM_SWITCH), --b-cells, phase-split, mkqueue, arm-derive and paired GSM8K.
  • Docs: the op datasheets and the GDN prefill anatomy (c158).
  • Skills: tt-perf-optimizer, tt-test-ops, blackhole-arch, tt-box-coordination, ttsim-bitwise-gate and tt-lever-build-contract.

Production (tenstorrent-serving.service) is untouched; redeploying is the owner's call.

🤖 Generated with Claude Code

Proven win `R-2026-10-02-p1-kda2-lmlofi` (docs/LEDGER.md): - B8/32k makespan −2.41%, B4/32k −1.96%, PP +2.8 to +4.0% at 32k. - Gates: equiv NEAR_TIE pass, GSM8K 58/60 paired PASS, kda2 bit-exact in ttsim. Also in this branch: - Tooling: the queue step-id fix, the served arm switch (`ttx ab`, not yet validated on hardware, opt-in behind TTX_ARM_SWITCH), `--b-cells`, phase-split, mkqueue, arm-derive and paired GSM8K. - Docs: the op datasheets and the GDN prefill anatomy (c158). - Skills: tt-perf-optimizer, tt-test-ops, blackhole-arch, tt-box-coordination, ttsim-bitwise-gate and tt-lever-build-contract. Production (`tenstorrent-serving.service`) is untouched; redeploying is the owner's call. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Grok added 56 commits 2026-10-02 16:43:40 +02:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: the so1 commit (+2.4 ms) was launch-bound, so a multi-layer commit fold would pay. The synced split shows it scales with rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: `--screen --contexts 4096` ran 4k only. cells_for() ignored contexts under --screen, so every 4k diagnostic (c154-c156a) also paid a 32k cell per B: ~5 min of card time each, and the record turned FAILED on that cell's distinct-completion check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: the 09-30 testing review's fixes were being applied. Checked: items 1, 2, 6 and 8 never landed; boots are still 45% of 110 h of queue time and 20 boots were refused on hand-edited banner lists. Splits judgement from operation so operator work can run on a cheaper model, and makes idle mesh time use a standby queue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: comparing the phase_ms breakdown between two sweep32k records (e.g. the
c156a so1 tree against its tm-cm parent) meant opening both jsonl files by hand
and lining up per_ctx[ctx].timing[bw].phase_ms[phase].p50 in a text editor.
That does not scale past two records and silently includes low-sample buckets.

phase-split.py reads N records, prints one table (record x B x ctx x bw rows,
phase columns), adds a delta vs the first record for every later one, skips
buckets with fewer than --min-steps samples (the count lives at
timing[bw].steps, not a key named n/count -- confirmed against the real
warm-kb-tm-so1 and warm-kb-tm-cm records), and marks non-MEASURED records so a
FAILED record's numbers are never read as clean.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Before: deriving an isolation-rung arm (e.g. "parent minus one env flag")
meant hand-copying the parent's banners/batched_only/absent lists into a new
TOML file, because lists replace (not merge) on inherit -- a forgotten
banner silently relaxes the identity check instead of failing it.

arm-derive.py resolves the parent through ttxlib.arm.load_raw (the same
inherit-chain code ttx itself uses), applies --env/--unset-env/--banner/
--drop-banner/--batched-only/--absent, refuses outright if a banner ends up
in both banners and batched_only, writes the full resolved lists into the
new arm file, and runs ttxlib.lint.lint() against it (static only: overlay/
image source scan and the B=1 batched_only check -- no hardware, no
container, no live device).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Before: every A/B queue (c156, c-thatch2, c145..c156) was hand-typed, and
each one re-derived the same three rules from scratch: must-fail boots go
first, reboot_if_leak goes before every boot, and a forced-kill guard (tail
the queue's own log for "needed SIGKILL", mesh-reset if seen) goes after
every run step. A hand-typed queue is also the only place an arm name typo
surfaces -- after the first boot, 300+ s in.

mkqueue.py validates every named arm exists under bench/arms/*.toml before
writing anything, then emits must-fail boots first, control/candidate reps
interleaved with control at both the start and end of the block (so a drift
mid-block is visible), and copies the exact reboot_if_leak / guard line
syntax from bench/queues/c156.txt and thatch-cpp.txt.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Root cause found for the c-thatch2 incident (~/.cache/ttx/queue/
20261002T041044Z-2390851/state.json: done=True, stopped=True, current=None,
only 26 of the queue's results although bench/runs/queue-c-thatch2.log shows
step 27 started and never printed its END marker): Queue.run()'s outer
except BaseException handler wrote done=True unconditionally whenever the
runner process itself was interrupted mid-step, exactly the same as a normal
finish or an intentional `ttx queue stop`. `ttx queue status` then read
alive=False, done=True and reported "done" for a runner that had actually
crashed. Fixed by writing `crashed=True` on that path instead and never
`done`, so status correctly falls through to DEAD.

Also, from TESTING-REVIEW-2026-09-30 #5/#6:
- A circuit breaker (`--breaker N`, default 2, 0 disables): after N
  consecutive steps whose note/cmd/log tail match a boot-failure shape (not
  ready after, needed SIGKILL, boot aborted, llrt.cpp, assert_active_ethernet_
  cores, Timeout waiting for physical cores), the queue resets the mesh slot
  once and PAUSES (not stops) until `ttx queue resume` or `ttx queue stop`. A
  step labelled mustfail or matching `-mf` never counts, even when it reports
  REFUSED/failed on purpose.
- `ttx queue wait [--step N | --done] [--timeout S]`: polls (not busy-spins)
  until the condition holds or the timeout passes, then prints the log's own
  END markers.
- Step completion is now tracked by a hash of (step text, occurrence of that
  exact text) instead of raw file index, so an insertion above the pointer no
  longer skips or re-runs a rep (12418f2's bug class). Old state.json files
  with no done_ids/state_format/crashed/paused keys still parse (status()
  treats them as absent, not as an error); a fresh `ttx queue <file>` always
  starts its own bookkeeping from empty, same as the old index always
  starting at 0, rather than reading a prior run's leftover done_ids.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Before: measuring B=4 needed a full separate boot (reboot + warm cache +
identity), identical to measuring B=8, even though B=4 is strictly a subset
of B=8's load. TESTING-REVIEW-2026-09-30 #6 (rank 2) estimated 6-10 h of 65 h
went to these separate B=1/B=4 boots.

Found: bench/serving-bench.py's --concurrency IS the number-of-simultaneous-
requests knob (the client's B); it is independent of the server's
--max-num-seqs, which is set once at boot by ttxlib.suites.sweep32k's
`serve={"max_num_seqs": b, ...}` override. So a smaller B cell can be served
by the SAME booted process, just sending fewer concurrent requests.

sweep32k(..., b_cells=(8, 4)) now builds a (client B, boot B) plan: every B
in b_cells boots at max(b_cells), and only the first (largest) B in the
group calls up(); the rest reuse that session, tagged with
suite.shared_boot_b and the caveat "B=4 on a max_num_seqs=8 boot (validation
pending)" (this path is new and not yet validated against a dedicated B=4
boot). Wired to `ttx run --suite sweep32k --b-cells 8 4`.

When b_cells is absent, the (client B, boot B) plan is [(b, b) for b in
seqs] -- boot B always equals client B, so the "reuse this boot" and "keep
the session open" branches are never taken, and the loop is byte-for-byte
the one-boot-per-B loop it always was (checked against test_records.py's and
test_gate_then_sweep.py's existing sweep32k expectations, both still pass
unmodified).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Each build subagent re-derived the ttsim gate pattern; the 06:46Z container restart left a dead queue mid-reset and a stale slot, and a queue insert took four peer messages.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before this, the machine model lived in docs/BLACKHOLE-PERF.md (measured, no
per-line source citations) and the blackhole-kernel skill (workflow). Upstream
facts (ISA, tech reports, SoC yaml, LLK headers, firmware tables) were scattered
or absent, and some local claims had never been checked against source. This
skill is reference knowledge with a provenance tag on every number
([measured: record] / [doc] / [source: file:line] / [estimate] / [3p]), split by
progressive disclosure: SKILL.md (one-page model, bound decision table, index)
plus ten reference files (chip, tensix-core, memory-dram, noc, data-formats,
ethernet-fabric-ccl, programming-model, perf-numbers, isa-sfpu, gotchas).

Checking local claims against tt-metal 24576047 (contains pin 60053f1f) and
tt-isa-documentation ea0aed9 confirmed L1 1536 KiB, 64 CBs, 576/1088/320 B bfp
tiles, 8x3 DRAM ports, 64 B flit / 16 KiB packet, 1 packer, half-sync fp32 = 4
tiles. It also surfaced contradictions now listed in gotchas.md section 8 (p150
140 vs 120 Tensix, bring-up guide 1464 KB L1, ISA "4x Packer", UMD 256 KiB eth
L1, fabric max payload 15232 B vs our 8192 setting).

No hardware was touched; no new speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
docs/TESTING-REVIEW-2026-09-30.md §3 showed GSM8K at n=60/300 is underpowered
(a 1-2 item regression is statistically invisible) and that near-tie equivalence
only ever inspects the first divergence per prompt. §6 item 7 asked for paired
McNemar scoring plus a teacher-forced top-k KL/agreement signal over all positions.

- gates.py's run_gsm8k now stores the full per-item array (gsm8k.items), not just
  the first 20 failures, so two runs can be paired by id without re-running.
- tools/ttx/ttxlib/paired_stats.py + tools/ttx/gsm8k-paired.py: exact McNemar
  (binomial, no scipy) on the discordant pairs, accuracy delta with a 95% CI, and
  a verdict that FAILs on significance OR an absolute b-c floor (default 3 of 60)
  because the p-value alone under-detects at this n. Wired into `ttx run --suite
  gsm8k --paired-control <rec>`; --min-correct keeps working alongside it.
- Checked whether the served endpoint can return prompt_logprobs for real teacher
  forcing: it cannot. vllm_tt_plugin/platform.py raises "Not yet supporting
  prompt_logprobs on tt" (every platform.py copy under patches/), matching what
  bench/bfpq/kl_probe.py already documents. So bench/agreement-bench.py instead
  scores two equiv --capture files (logprobs 5) offline over each prompt's shared
  prefix -- the span before first divergence, where both captures are genuinely
  teacher-forced on the identical context -- giving per-position top-5 Jaccard and
  an approximate top-k KL as a drift trend, not just the single first-divergence
  check near_tie_verdict makes.
- 35 new unit tests (paired_stats, agreement-bench, the CLI, and the gate wiring),
  all passing under plain python3 -m unittest; no card time used.
- docs/TESTING-REVIEW-2026-09-30.md addendum and tt-bundle-loop SKILL.md §4a
  record what shipped, what's offline-only, and why.

Co-Authored-By: Claude Sonnet 5 <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>
Before: prefill (~59% of B8/32k makespan on cm) had no procedure once every per-op knob went dead
in LEVERS. The loop kept re-proposing knobs and ranked on profiler busy time. The trace-blind op-share
profile (91% on one writer class, c134c) was not flagged anywhere a planner would read it.
The new-checkpoint carry-over (TESTING-REVIEW 09-30 6#10) existed only as one table row.

tt-prefill-kernel-research is the owner's kernel-technique route (memory decode-first-prefill-
kernel-deepdive) written as a procedure:
- the per-op table, eager because traced chunks blind the profiler, plus the wall-based
  knockout split;
- bound and floor per op;
- the upstream, tech_reports and GPU-literature sources, with a Tensix translation;
- the dead-lever filter;
- the lever-spec handoff.
The ranked candidates are led by upstream #58891/#57445 (GDN producer pool + SFPU WY solve,
measured upstream at our exact BH=24 on a p150, third-party).
The LEVERS c102 "re-test kblock with bf8 in0" row turns out to be mostly done by the c111
factorial (d8k16 shipped); only subblock 2x2 x bf8 is untested.

tt-new-checkpoint-bringup:
- links tt-model-baseline rather than duplicating it;
- adds the keyed cold build plus seeding, the control self-check that re-derives the near-tie
  threshold and the GSM8K per-item baseline, and the trace re-measure;
- adds the checkpoint-specific retargets (QWEN36_MTP_BATCH_WEIGHTS is an absolute ThinkingCap
  path);
- carries the now 38-file stack over by numerics tier as group LOO.

No card time and no new 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>
Our served log printed the 96-of-110-core pick 1056x per boot, 0025b exported the geometry knob, and we were 1.6x behind upstream's previous version; we screened only fidelity. Root causes and the capability changes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: we only ever summed device-profiler time per op, and treated a blank Tracy op_name as
"no per-op data". PROCESS-REVIEW §6 traced the missed GDN producer pool (#58891) to exactly that:
no record of ours says "cores busy / 110" for any op. The CSV has had the answer all along:
every launch carries `run host ID` and per-core, per-RISC *-KERNEL zones even with blank names
(profiler.cpp:1243-1310, 1631-1636, 1770-1775).

The tool windows the CSV per program launch (run host ID + trace counter, launch order for
repeats, time gaps when IDs are absent) and reports occupancy, per-RISC busy, the critical
core/RISC, idle cores, role skew/imbalance, a logical-grid heatmap and custom-zone (stall)
splits. CSV coordinates are NOC0; the P150a column map (x = 1-6, 11-15) was checked against a
real 110-core decode CSV from cfx-llm2 (3.87M rows, 2981 windows per chip, 12 s).

Tests: synthetic CSVs in the pinned format (GDN-shaped 96/110 op, trace replays, repeats,
fallback clustering, zones + ZONE_TOTAL, orphan markers, partial columns), the v0.77 format
fixture, and the real CSV via OP_ANATOMY_REAL_CSV.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the fused chunk_gated_delta_rule (QWEN36_GDN_FUSED, patch 0025) was only ever timed
inside the model; its geometry knob (ChunkGdnFusedProgramConfig, 0025b) was never swept, and
its cost-model pick (NV=1 NP=3 = 96 of 110 cores) only lived in an INFO line.

The probe runs only that op at the served per-chip shape (BH=24, T=2048, K=V=128, flat bf16
q/k/v, fp32 g/beta/state, chunk 32, HiFi2 = QWEN36_GDN_SCAN_FID), a full-grid calib op that
measures the NOC0 column map, then the cost-model pick and every NVxNP that fits 11x10, one
CSV per config, op-anatomy with the factory's own core map (chunk_gdn_fused_placement), the
cost model's prediction (chunk_gdn_fused_geometry) and a bitwise check vs the pick. The runner
mirrors sdpa_dec_dual_noc/hw1card.sh (ttx slot on one card, deadline, reset on hang, record on
every exit). Not run: it needs a Tracy-ON build of the pk3r tree, which does not exist yet;
PROFILER=0 on vllm-tt:k2-mr-pk3r gives the timing + bitwise sweep meanwhile. Dry-run against a
mock ttnn only.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: a lever started from a per-op time and the FPU/DRAM roofline, so a dependency-chain op
fed by a producer pipeline (the GDN scan) was ranked as if it were a matmul and closed on
fidelity. The skill makes static anatomy (factory core map, RISC roles, CBs, the op's self-log),
dynamic anatomy (op-anatomy.py on a one-card profile), the op-class floor (chain: fill + NC x
max(step, supply per head)), the upstream-HEAD comparison and the datasheet entry mandatory,
with the GDN fused prefill (96/110 cores, #58891) as the worked example, and hands the gap to
tt-lever-build-contract.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
docs/PROCESS-REVIEW-2026-10-02.md §6: we missed the GDN prefill producer-pool
PR (#58891) because nobody watches a served op's upstream directory once its
PR has been lifted once. #57445/#58626/#58891 had been open for days to weeks
on an op we serve through QWEN36_GDN_FUSED, and the same author iterates on it
every few days, but upstream-perf-scout only ran ad hoc, per theme.

This reads the served-op -> tt-metal-path watchlist (tools/upstream-watch.toml,
built by grepping patches/prod-local-metal for ttnn op calls and mapping them
onto the pinned tree at /home/orchestra/ttm-build/src), reads our pin from
flake.lock, and lists commits on main plus open PRs touching each op's paths
since the pin. PRs are found by gh search (full-text, all open PRs) rather
than `gh pr list` (which silently truncates to the most-recently-updated few
hundred and drops exactly the stale-but-still-open PRs this tool exists to
catch -- that is how the first draft missed #57445). Each item is flagged
PERF from title/label/body heuristics with any numbers pulled out, and marked
NOT LIFTED unless its PR number or commit sha appears in patches/README.md or
patches/tt-metal/*.patch.

Verified against the real patches/: #57440 (lifted, patch 0025/0025b) shows
lifted; #57445, #58626 and #58891 all show NOT LIFTED, matching §6.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
docs/PROCESS-REVIEW-2026-10-02.md §6 item 5: the GDN fused cost-model pick
(NV=1 NP=3 on our BH=24 shape) prints as an INFO line 1,056 times a boot but
nobody ever extracted or diffed it, so the 96-of-110-core geometry sat in
plain sight across many server logs without anyone noticing it never changed.

ttxlib/opconfig.py parses the GDN FUSED-path line, the AGMM grid/layout line,
and the SDPA streaming/GQA-mcast selection lines out of a saved server log,
counts occurrences per distinct value (the dominant pick plus any stragglers),
and suites.run() now stores the result in rec["op_configs"] right after the
server log is saved, so every future MEASURED record carries it for free.

tools/ttx/op-configs.py diffs op_configs across records (or raw .server.log
files, so it works even before a record exists) and prints which op's pick
changed between arms -- the diff this process review says we need before any
more card time is spent assuming an op's geometry hasn't moved.

Tested against real server-log excerpts saved under tests/fixtures/ (from
bench/runs/ttx-sweep32k-prod-g2-c86-noab-...server.log), not synthetic text.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
PROCESS-REVIEW-2026-10-02 §6 found we treated lifted ops as black boxes: no core map,
no occupancy, no upstream baseline. This sheet writes each served op down to the core
and RISC (factory code-reads of the pk3r image tree, cross-checked with the B8 server
log banners), with per-resource floors, the measured time, swept vs never-swept knobs,
and the upstream PR gap.

What the evidence changed:
- The GDN fused scan runs at its own stale cost model (0.71 ms measured vs 0.754
  predicted); the 1.6x gap to upstream is the missing SFPU WY solve (#57445) + pool.
- AGMM packer_l1_acc never reaches the ComputeConfig, so every past "l1acc inert"
  rung measured a no-op.
- lm_head is the only MR role at HiFi2; its time is about compute + read in series.
- Distributed prefill RMSNorm runs on 64 of 110 cores.
No card run; no new 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>
c156a showed the so1 commit was recompute-bound (scales with rows). so-t0 has the
verify write the token-0 state, so the commit recomputes idx tokens: the synced split
confirms only commit moves. Makespan barely moves (prefill ~59%), so this is a TG
lever; LEDGER waits for equiv on the c157 shipping bundle.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
bench/probes/op_anatomy_gdn_prefill.sh needs a device-profiler build of the
SAME tree vllm-tt:k2-mr-pk3r serves (K1/K2 grafts + 0024..0033), not production
k2's tree (vllm-tt:k2-tracy). None of pk3r's incremental build containers
survived to overlay onto, and TRACY_ENABLE is a global compile define, so the
full pk3 lever chain was reapplied from a clean vllm-tt:builder tree (same
order every build-k2-mr-pk3*.sh used) and rebuilt as one CIBW_ENABLE_TRACY=ON
wheel, then overlaid onto vllm-tt:k2-mr-pk3r with 0025b reapplied on top (the
wheel install wipes its python re-exports).

Built and verified on nixos, shipped to cfx-llm2 (wheel-only transfer + docker
build on the box, no compute there), record in
bench/runs/k2-mr-pk3r-tracy-build-20261002T091311Z.jsonl. No container run, no
card touched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
b41e5d1 and OP-DATASHEETS §P1 believed the c88pre/c111 "l1acc inert" rungs were void because the
factory drops packer_l1_acc at :239, and ranked "plumb it, then re-test" as lever #4. Reading the
kernel (pk3r compute.cpp:519/524, served compute.fast.cpp:521/526) shows why the knob is dropped: the
AGMM K loop turns llk_pack_reconfig_l1_acc on after K block 0 unconditionally, into the Float32/bf16
intermediate CB. There is no off state, so plumbing the flag is byte-identical and a
stock -> CKC=l1acc -> stock2 screen would only re-measure the no-op. No patch is built. The open
question becomes the inverse (a spill/reload must-fail overlay) or a last-K-block direct pack.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
OP-DATASHEETS P3 had the kda qkv_causal_conv1d_silu 5.5x off its DRAM floor and, by code-read,
re-reading and re-tilizing the activation once per tap (4x per item). Upstream #58493 fixes that but
does not apply to our fork (no sequence-parallel / predecessor_carry), and its own-core NoC loopback
is the idiom that hung c91 (LEDGER hands-off). So this is a hand port: the reader stages the 35 rows
an item needs once into a row-entry DFB, compute tilizes each tap's 32-row window from that stage
with the asymmetric-page tilize helper, taps load once per channel block. No loopback, no copies.

Flag QWEN36_GDN_CONV_KDA2 = 0|1|fast (fast = silu_tile<false>, matching the served c98 compute
overlay, so the served arm must use fast to stay bitwise), read per call and hashed. C++ banner per
mode; QWEN36_GDN_CONV_KDA2_MUSTFAIL stages rows one late. The model runs a warmup self-test (eager,
before trace capture) bitwise against the stock program and refuses the boot on any mismatch.

ttsim (bench/runs/kda-conv-once-sim-20261002T093936Z.jsonl, all_ok): cand bitwise == stock at the
served shape (T=2048, C=5120, ccs 512), with history, T=64/1056, ccs 256/1280, a chained second
chunk; must-fail differs (~99.6%); self-test exact / REFUSED. Correctness only, no speed number.
Overlay pk3r+0033+0034+0035 built on nixos (ttnn-incr, GC-rooted). tp_common.py carries only the
kda2 hunk here; lever 3's lm_head hunk follows in its own commit.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The lever-2 gate showed cand == off inside the patched .so, which does not by itself prove the off
path is unchanged from the image production runs today. Dumping the off path from the patched
_ttnncpp.so and from the unpatched vllm-tt:k2-mr-pk3r (served compute overlay in both) at
served_hist / t1056 / ccs1280 gives 0 differing elements in every cell (ttsim, correctness only).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
OP-DATASHEETS D1' had the lm_head as the only HiFi2 role left on the MR path, never swept, with time
~ compute + read in series. The flag swaps only the lm_head ComputeConfig (lofi|hifi3|hifi4; unset or
hifi2 returns today's config unchanged, anything else raises) and logs one banner per value; hifi4 is
the timing must-fail rung (it must come out slower, else the workbench cannot see fidelity at all).

ttsim fp64 gate (bench/runs/lmhead-fid-sim-20261002T095006Z.jsonl, all_ok): at the served per-chip shape (K5120 x N124160 bf4, 4 chunks, 3 readers)
over M=1/8/24 x randn/LLM-like activations, LoFi is bitwise equal to HiFi2 in 5/6 cases, with equal
rms error in all 6 and 0 argmax flips; the bf16 control shows ttsim does model fidelity. Reading:
bf4 weights fit SrcA's 5 bits in one phase, so HiFi2's second phase was buying nothing. Correctness
only, no speed number; served equiv + paired GSM8K are tier 2 on the cards.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The owner's combine-levers rule asks for the bundle next to the singles. Lever 1 (AGMM packer
L1 acc) is void at source scope, so the bundle is kda2 + lmlofi on the pk3r+0033+0034+0035 overlay.
Queue built with mkqueue: kda2 must-fail first (must REFUSE at the warmup self-test), then
ctl/kda2/lmlofi/bundle x2 with control at both ends, sweep32k B=8,4,1 at 4k/32k. Not launched.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The GDN-lift agent used 'cd $S/m; find . | xargs rm -f', which would wipe the cwd
(serving-throughput) if the cd failed; the owner caught the attempt.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the 1.6x gap to upstream was attributed (by estimate) to the Horner WY inverse.
The device profiler now measures it: prep_item is 99.8% of producer TRISC time at
31.6 us/item, receivers idle ~76% waiting, 14 cores unused. Ranks #57445 (0038) first,
then the #58891 pool. Also re-queue the skipped lift gate and c157 with a cold
dv32k cache build (warm-kb refused the new lm_head tensorbin).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: a step's done-ness was decided by recomputing (text, Nth-occurrence-in-
the-CURRENT-file) and matching the hash against a set of ids recorded from a
PAST read of the file. Inserting a new copy of a duplicate-text line
(`reboot_if_leak`, or any repeated guard) below the pointer changes which
occurrence number every later copy of that text gets; a step that already ran
can then alias onto the newly inserted line's id (silently skipped) while its
own slot reappears under a new number (silently re-run). This is what happened
in bench/runs/queue-c156.log: the inserted `c158-gdnlift-gate` block
(reboot_if_leak + hw_op_gate.sh) never ran, and the kda2-mf must-fail step ran
twice (steps 31 and 33).

After: `pending_steps()` tracks a running done_count per exact line text and
treats the first done_count[text] copies, by file position, as done -- a
prefix rule that is immune to what gets inserted further down for that same
text, so an insert below the pointer can never re-run or permanently skip a
step. `assign_step_ids`/`step_id` stay for display only.

Also fixes a `NameError: name 'n' is not defined` left over from renaming the
loop counter to `n_done` (two call sites still referenced the old name) --
caught by the existing tools/ttx/tests/test_fastfail.py suite.

Updates tt-box-coordination §2 and tt-test-ops §3 to describe the done_count
scheme and to say explicitly: insert only below the pointer, never above it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Measured vs a 2-rep interleaved cm-so1 band; the third control hit a transient
'image not on host' error (the image is present, tag unchanged since 09-29). Queue
c159: equiv + paired GSM8K on the exact combination, then LOO singles.

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>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every sweep booted once per B (3 boots for 8/4/1, ~5 min each) although a B=8 boot
serves the smaller cells. --b-cells landed today unvalidated; the c159 control r3 runs
it and is compared against today's per-B c158 control boots.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Boot is ~70% of card time, and every served A/B rep paid a full 27B load
even when the arms differ only in flags the code reads per call. The
switch reuses the plugin's own warmup and the workbench's trace-release
path: while idle it releases every trace (decode, prefill bucket, MTP
buckets), applies the env, resets banner/compile-once guards, clears the
program cache and re-warms, logging a TTX-SWITCH marker so banners after
it identify the new arm. It lives in its own overlay tree so the prod
plugin mount set (and nix-unit parity) is unchanged; model_runner only
installs it when the env asks. Unvalidated on hardware.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Which flags can switch in place was tribal knowledge; switchclass.py
records runtime/rebuild/reboot per flag with the file:line that proves
it (unknown and wsig flags default to reboot, C++ static env reads are
reboot). ttx ab plans one boot per switchable group (order C A C A,
B cells via concurrency), re-checks banners after each switch and
REFUSES on a miss or a must-fail self-test, and falls back to a fresh
boot when the mechanism itself fails. Records keep the sweep32k schema
plus boot_id/switched_from/switch_s. 25 fake-host tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A switched record is not a fresh-boot record until shown equal on the
cards: the queue gates TG 0.1%, makespan 0.5%, TTFT@32k 1% and greedy
identity against fresh-boot records, and requires the kda2-mf switch to
be REFUSED. Docs say how to use it and that it is unvalidated until then.

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>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
LEDGER R-2026-10-02-p1-kda2-lmlofi: B8/32k -2.41%, PP +3-4% at 32k, gates clean
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 7s
tt-stack-ci / Report upstream drift (pull_request) Successful in 6s
tt-stack-ci / Build simulators and check the host module (push) Failing after 5s
tt-stack-ci / Report upstream drift (push) Successful in 11s
262b0534cf
Before: the kda conv re-tilized each activation 4x per item and lm_head ran HiFi2 by
inheritance; both were unexamined until the op datasheets. The bundle measured -2.41%
B8/32k wall against an interleaved band; equiv NEAR_TIE pass, GSM8K 58/60 paired PASS.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit 262b0534cf into master 2026-10-02 16:43:44 +02:00
Author
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.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!145
No description provided.