perf loop c68-c70: 0030 merged core ranges (B=8 -2.5..-4.2%), RS cfg knob, records, ttx tooling #111

Merged
Grok merged 50 commits from serving-throughput into master 2026-09-27 19:57:00 +02:00
Owner

Perf-loop cycles 68–70 plus tooling, into master.

Levers that improve (both bit-exact by construction, and opt-in by image or flag):

  • patches/tt-metal/0030, image vllm-tt:k2-mr-pk3m. The GDN/attn descriptor factories now pass merged CoreRangeSets, which removes a ~24–28 µs dispatch gap in front of gdn_conv_gates and the recurrence on every GDN layer. Cause proven on 1 card (bench/runs/dispatch-gap-20260927T160058Z.jsonl).
  • QWEN36_PREFILL_RS_CFG (prefill reduce-scatter knobs). Unset, it is byte-identical tt_all_reduce.
  • c70 bundle (prod-g2-EFS-c70 = both), BIT_EXACT at B=8 (bench/runs/ttx-prod-g2-EFS-c70-equiv-20260927T165758Z.jsonl). Served A/B round 1 against prod-g2-EFS-pk3-control:
    • B=8 wall −3.8 / −4.2 / −2.7 / −2.5% at 4k / 8k / 16k / 32k. TG 43.1 → 40.7 ms/token at 4k.
    • B=1 wall −2.7…−3.3%. TG 37.9 → 36.7 ms/token.
    • Round 2 and the leave-one-out run are in the queue.

Measured negatives, recorded:

  • MTP at batch: bit-exact, +4…13% wall at B=4/8.
  • Bundle H: neutral.
  • Prefill RS config alone: −6% op-level, below the kill bar.

Also:

  • LEDGER directive D-2026-09-27-speed-over-bitexact (#110).
  • ttx fixes: boot-watch timeout; wb profile gap pairs and --seq.
  • Runbooks #103–#108 and the #109 probe.
  • kmd leak patch in modules/tenstorrent-host.nix (not deployed).

Production (tenstorrent-serving.service) is not changed. Deploying stays the owner's call.

🤖 Generated with Claude Code

Perf-loop cycles 68–70 plus tooling, into master. **Levers that improve** (both bit-exact by construction, and opt-in by image or flag): - **`patches/tt-metal/0030`**, image `vllm-tt:k2-mr-pk3m`. The GDN/attn descriptor factories now pass merged CoreRangeSets, which removes a ~24–28 µs dispatch gap in front of `gdn_conv_gates` and the recurrence on every GDN layer. Cause proven on 1 card (`bench/runs/dispatch-gap-20260927T160058Z.jsonl`). - **`QWEN36_PREFILL_RS_CFG`** (prefill reduce-scatter knobs). Unset, it is byte-identical `tt_all_reduce`. - **c70 bundle** (`prod-g2-EFS-c70` = both), BIT_EXACT at B=8 (`bench/runs/ttx-prod-g2-EFS-c70-equiv-20260927T165758Z.jsonl`). Served A/B round 1 against `prod-g2-EFS-pk3-control`: - B=8 wall −3.8 / −4.2 / −2.7 / −2.5% at 4k / 8k / 16k / 32k. TG 43.1 → 40.7 ms/token at 4k. - B=1 wall −2.7…−3.3%. TG 37.9 → 36.7 ms/token. - Round 2 and the leave-one-out run are in the queue. **Measured negatives, recorded:** - MTP at batch: bit-exact, +4…13% wall at B=4/8. - Bundle H: neutral. - Prefill RS config alone: −6% op-level, below the kill bar. **Also:** - LEDGER directive `D-2026-09-27-speed-over-bitexact` (#110). - ttx fixes: boot-watch timeout; wb profile gap pairs and `--seq`. - Runbooks #103–#108 and the #109 probe. - kmd leak patch in `modules/tenstorrent-host.nix` (not deployed). Production (`tenstorrent-serving.service`) is not changed. Deploying stays the owner's call. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Grok added 50 commits 2026-09-27 19:56:55 +02:00
Before: the only long-lived model process (warm_server.py) drove the text demo, which measures
50.8 ms/token at B=1 4k while the served stack does 32.6 ms (EFMG) - a correctness loop, not a
performance instrument (docs/RESEARCH-KERNEL-WORKBENCH.md §0.3). Every perf question still paid a
~280 s vLLM boot.

Now `warm_server.py --mode workbench` (wb_backend.py) builds the model through the same calls the
TT plugin makes - model_runner import (fabric payload wrapper), worker.open_mesh_device(tt_config),
Qwen36ForCausalLM.initialize_vllm_model, allocate_kv_cache with the plugin's pool size, the two-phase
warm-up, decode_forward + read_decode_output + process_decode_output_host, prefill_forward - under
the served arm's exact env, and serves decode_step (loop incl. host work, and traced replay),
prefill_chunk, reload, set (forward-only knob registry), kernels_reload and profile (realtime
profiler, or an explicit 'unsupported'). wb_core.py holds the request handling and the
release -> clear -> capture order, tested against a stub model.

`ttx wb` writes one schema-v1 record per request (kind WORKBENCH, never MEASURED; per_B empty).
Every record says "WORKBENCH - not a served number" until bench/workbench/validate.sh has passed
for the same arm, tree, image and host boot: decode_forward loop at B=1 and B=8, 4k context,
within ±3% of the newest MEASURED sweep32k TG of the served arm (EFMG 32.6/37.8 ms, bit-exact
37.9/43.1 ms). Nothing here ran on hardware; no new speed number.

`ttx down` now also shuts a workbench down gracefully (warm.stop tries both sockets), so the
container's SIGKILL never closes the mesh.

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 this there were only estimates: 20-120 s per incremental host-C++ TU in RESEARCH-KERNEL-WORKBENCH
§5.5. Measured on orchestra (20 cores) in the tt-metal derivation's own dev shell: configure 40 s,
full build 29.2 min, no-op 0.23 s, one-TU code edit in matmul 39.5 s, header code edit (11 TUs)
49.0 s, and comment-only edits (ccache hits) 24 s. About 20 s of every edit is relinking _ttnn.so
under -flto (LTO codegen), and each edit relinks ~100 MB of .so. cfx-llm2's ssh-ng store is
reachable and trusts daniel; nothing was copied.
Not the serving cp310 ABI (§5.4).

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>
Believed before (R-2026-09-25-hostleak): ~90-280 MB/model load of host memory
vanishes into no meminfo counter, not page pins, not the exit route; source open.

Evidence now: /proc/allocinfo on cfx-llm2 (idle, 12:01Z) attributes 2872 MiB -
98% of the unaccounted 3048 MiB above the 129 MiB post-reboot baseline - to
sg_helpers.c:30 alloc_chained_sgt_for_pages (735161 live single pages); 0 B
after the reboot. free_chained_sgt() walks by sgt->nents, which
dma_map_sgtable() overwrites with the IOMMU-coalesced segment count (1 with
max_seg_size UINT_MAX), so every unpin leaks all but the first scatterlist
page (~1/128 of each 4K-page pinning). Same code in 2.10.0, 2.11.0 and main.

Adds the 3-line kmd patch (orig_nents), applies it via a new
services.tenstorrentHost.kmdPatches option (spelling out what
hardware.tenstorrent did; VM check passes, 2.11.0 builds on 6.18), and a
ready-to-queue A/B (bench/probes/leak/leak-ab.sh: PIN/UNPIN micro-probe +
one full load, allocinfo-bracketed). Not deployed: needs module reload or
reboot, owner's call. No 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>
Before: a wait ended only at its fixed timeout. On 2026-09-27 that cost the decode-split probe a
full 35-min window (the profiler hook never fired) and a second window that hung after its
container had already exited; its dead driver then held the mesh until the 1800 s idle reclaim;
a queued script's `pgrep -f` self-match idled the mesh 25 min; watchdog-stopped boots (c54) and
late identity refusals were only noticed after a full boot. The owner asked for tighter
timeouts and an early escape hatch.

- Boot (runner.wait_ready + watch.BootWatch, 5 s poll): abort at once on a stopped container
  (exit code, OOMKilled, log tail), a fatal log line (engine init failed, Failed core proc,
  TT_FATAL @, TT_THROW @, RuntimeError:, OOM; the EFMG banner's "TT_FATALs if" does not match),
  an [expect].absent banner, or an [expect].phase_banners banner missing after its marker.
  Deadline by cache state: warm 600 s, cold kernel 1500 s, cold tensor 2400 s ([timeouts].boot_s).
- Cells (watch.run_cell): every box client (sweep cells, warm cell, equiv, gsm8k, retrieval,
  smoke, infbench, demo exec, wb requests) gets a deadline of 2 x (B*ctx/2000 + tokens*0.1 s),
  floor 120 s, a 180 s no-progress rule on the vLLM token counters, and a 15 s container
  liveness poll. A trip is a FAILED record with watchdog + failure_reason, kills the client's
  remote session, stops the server gracefully and releases the slot. Old timeouts are caps.
- Slots: claims record their driver (pid@host@boot_id@start); a claim with a provably dead
  driver and no container is reclaimed at once (box-side check, or the acquiring client's
  --dead-line). Unknown drivers keep the 1800 s rule. ttx turns TERM/HUP into its graceful
  cleanup; the three bench scripts trap EXIT/INT/TERM/HUP and keep long calls interruptible.
- `ttx queue <file>`: steps run one by one with per-type hard caps (timeout= prefix), continue
  on failure, STEP START/END markers, doctor between steps, opt-in reboot_if_leak (>= 2.8 GB,
  idle, no slots; waits <= 10 min for /dev/tenstorrent/1), status/skip/stop. Tracks pids, never
  pgrep -f.
- decode-host-device-split.sh and mtp-batch-equiv.sh use the same rules via bench/lib/fastfail.sh.

No hardware was touched; 45 new stub-host tests, 198 total pass. 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>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c66's workbench was stopped 28 s into its first decode_step as 'model process gone' with no
evidence left to tell a real crash from a probe false positive.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c66b's profile summary reported every program 1000x too long: tt-metal's realtime profiler
gives frequency ~1.35 (GHz) and the summariser took it as MHz. Ratios were right, absolute
'us' were ns. The top-25 list also hid where a class's time goes: prefill's 36% 'ccl' is
mostly the fused all_gather_minimal_matmul (column-parallel matmul), which the path
classifier files under ccl. by_kernel_chip0 now splits it. c66b records + queue committed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the first hardware gate (mtp-batch-equiv-20260927T122949Z) read as a WRONG_TOKEN on
p3_rewrite at "token 4". We suspected a commit or acceptance bug. There was also no stats line
at the end of the run.

What the evidence says:
- batch-equiv-bench compared per-token reference entries with the run's per-SSE-chunk entries.
  MTP streams 1..K+1 tokens per chunk (78 chunks for 128 tokens), so the position was wrong.
- By token position the divergence is a NEAR_TIE at token 117: " primitives" -0.476 vs
  " primitive" -0.976, gap 0.50. The text rejoins the reference after it. Under
  D-2026-09-25-identity-rule the rung is 7 exact + 1 near-tie. This is an offline re-grade;
  the record is committed.
- p3's speculation ended near token 102, when 6 of 8 streams had finished. The flip came in the
  plain-decode tail at bucket <= 2, while the control ran that row at width 8. That matches the
  known width trap. It is an inference from chunk counts: no trace was captured.
- Re-reading the host paths and new host tests found no commit or acceptance bug. The tests cover
  the prefix rule after a miss, m == K, all-wrong drafts, force-reject, and a scheduler
  simulation (whole-block append, n-1 advance, max_tokens trimmed mid-block) with
  runner position == scheduler == host next_p and 0 stale slots.
- One real gap: the commit-select self-test used bf16 candidates only, but the GDN recurrent
  state is fp32. A where that returned bf16 would round the state every step and still pass.
  The self-test now runs at the real dtypes and tries a candidate-dtype mask first. The commit
  logs its dtypes and refuses a select that changes the dtype.
- The stats line was in fact captured (steps=48, 2.414 tokens/row-step, accept 0.481). The
  final counters are now also logged when the batch drains.

Added:
- QWEN36_MTP_BATCH_FORCE_REJECT=1: verify at full M, accept none. The output must be bit-exact
  to plain decode.
- QWEN36_MTP_BATCH_PLAIN_ONLY=1: same boot, never speculates.
- QWEN36_MTP_BATCH_TRACE=<request-id substring>|*|slot:N: per-step spec and plain lines. The
  runner passes row request ids, and the bench tags each request with equiv-<prompt_id>.
- A fixed-width banner.
- Gate: VARIANTS / COMMON_ENV, graded by ttxlib.gates.near_tie_verdict (exact- variants need
  BIT_EXACT), banner witnesses per lever, and the trace kept next to the record.
- serving-bench now counts tokens per chunk (continuous_usage_stats). Otherwise a sweep of the
  MTP arm would report ms per step as ms per token.
- bench/queues/mtp-batch-regate.txt holds the decisive runs.

No hardware was run for this commit and there is 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>
Before: the next bundle was to be picked from class totals that mislabelled the fused
all-gather matmul as CCL and misread units. Per-kernel device time now says decode's
bit-exact headroom is GDN decode + small programs + idle (~10 ms of 43 at B=8), and prefill's
is row-parallel matmul+all-reduce fusion, layout round-trips and a per-request idle.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Believed: the chunked-prefill SDPA reader (one NoC read barrier per 4 tiles,
2 K/V CB slots) and the phased GDN scan (each head's NV v-blocks re-reading
the shared per-chunk tiles) were where the remaining prefill data-movement
headroom was (PREFILL-KERNEL-DEEPDIVE T3/T4). Built both as bit-exact levers
in a new image vllm-tt:k2-mr-pk2+0027+0028 (k2-mr-pk3), each failing closed
without the image's op surface and logging one '<FLAG> engaged' banner,
composing with the Q128 GQA-mcast and fused-GDN levers. What the evidence
changed: per bench/runs/pk3-gdn-ttsim-20260927T1045Z.jsonl the lever outputs
are ttsim-equivalent (bitwise equal, o and state) to the default programs at
BH=24/48, and use_mcast refuses (TT_FATAL) at an unplaceable BH=26; the
SDPA depth lever has the same comparison record. ttsim has no timing model,
so nothing here is a hardware number yet: the one-card op probe
(bench/probes/pk3/op-probe.sh, 10% kill line) and the arms
prod-g2-EFS-H / prod-g2-EFS-pk3-{control,depth,scanmcast} /
prod-g2-E-pk3-{control,scanmcast} are the next step.

Co-Authored-By: pi (agent-dense) <noreply@local>
Why: bundle H's levers are bit-exact by construction (ttsim records), but the
cards are where a diff would still bite -- so each candidate arm passes a
greedy equiv gate against the k2-mr-pk3 control before it costs a 70-min
sweep, and the one-card op probe (10% kill line) runs first so a dead lever
never costs a serving run. All steps have explicit timeouts for the ttx
queue runner. Not run yet.

Co-Authored-By: pi (agent-dense) <noreply@local>
Before: a 1-chunk prefill profile showed 37% of the 645 us device span idle,
but summarize_programs only reported the span-minus-durations total, so we
could not tell WHERE the idle time was (which kernel boundaries, how many
gaps, how long).

Now: the summary gains a per-chip 'gaps' section. Programs are sorted by
start; each gap is next.start - prev.end in us (same cycles/mhz conversion
as the durations); negative gaps are program overlaps (counted separately,
clamped to 0 for the histogram). It reports total_gap_us, a histogram
(<2/2-10/10-100us/100us-1ms/>=1ms, count+us per bucket), the top 15 gaps
(gap_us, index, prev/next kernel basename by the by_kernel_chip0 rule,
prev/next runtime_id) and runs: consecutive programs separated by >=100 us
gaps, as a count plus the 5 biggest by program count (the long runs expose
host dispatch boundaries). Gaps between records are lower bounds on real
idle time: the realtime profiler drops records when its queue overflows,
which the docstring says. Existing keys are unchanged; the kernel-basename
rule is factored into _kernel_name so both sites stay in sync.

Tests: tools/ttx/tests/test_workbench.py gains buckets/top/overlaps, runs,
and empty/single-chip cases. 'python3 -m unittest
discover -s tools/ttx/tests -q': 201 tests, OK.

Co-Authored-By: pi (agent-dense) <noreply@local>
EFMG's MR drift is hypothesised to be K-blocking only (in0=40 -> 4-tile blocks vs 1D's 8, with
packer_l1_acc fp32 partials); MR splits N across readers, so in0=K_tiles/8 should reproduce the
1D accumulation schedule exactly. Gate first (8/8 vs ref-pk), then the sweep.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: each GDN decode head ran 46 single-tile copies (q,k,v,g,beta,state io->fp32 mirrors and the
new-state copy) out of ~169 tile ops. With fp32 io (production's high_precision path) every one is an
identity on the values later unpacked through srcA/srcB, so skipping them is bit-exact by construction.
Opt-in TT_GDN_DECODE_LEAN=1; the factory prints the engaged banner. Not built or measured yet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A 1-chunk prefill profile (TP=2, 16k/2048) showed 37% of the 645 us device span
idle and a per-kernel breakdown (AGMM 27%, matmul 11%, CCL 10%, GDN scan 8%,
SDPA 6.6%, tilize/untilize ~7%, writers ~6%, eltwise ~6%). We could not say
WHERE the idle sat because summarize_programs only reported the span-minus-
durations total, so this is a read-only desk audit of what actually converts
layout and what fuses what on the prefill path, ahead of running the Part 1
gap section against a real profile.

Traces one GDN layer and one attention layer of the production tree
(patches/prod-local-metal + the fork base under /home/orchestra/ttm-build/src
for layer.py/mlp.py/ccl.py), with file:line:
 (a) every layout-converting op (to_layout/tilize/untilize/row-major/slice/
     reshape) with tensor shape and the reason it's there — the GDN conv1d
     relayout chain (G4-G11) and the fused-projection slices are the source of
     the 2305 tilize_wh / 2497 untilize_wh / ~6% writer programs;
 (b) the three row-parallel out-projs and their tt_all_reduce->one
     reduce_scatter_minimal_async (Linear, 2 links, 2 buffers) each, and the
     mmrs/colpar alternatives with the tt-metal validate() constraints and the
     1x2 MMRS deadlock;
 (c) eltwise ops that could fuse into a matmul epilogue or norm, and which are
     already blocked (conv-SiLU PCC 0.84, out-gate NaN, Ring-only RS-add).
Candidates ranked by (programs removed x estimated share). Every number
labelled ESTIMATE; no hardware, no new speed number.

Co-Authored-By: pi (agent-dense) <noreply@local>
The K-blocking hypothesis for EFMG's drift is falsified on hardware; an op-level ttsim bisection
per role/knob is delegated before any further MR variant is booted.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c68 step 11 (bundle H control sweep) was downed 88 s into a healthy warm boot: BootWatch.poll's
60 s ssh timeout raised subprocess.TimeoutExpired, which up() treated as a failed boot. Five
consecutive misses now trip 'unreachable'; the cell-watch live probe skips a slow probe the same way.
Queue: rerun the control sweep after H, then H again as its second run.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c67: 128 line_reduction programs per 2048-chunk at ~355 us each (~9% of a chunk), i.e. ~28 GB/s per
direction on 2 x 400G links, with the tt_all_reduce defaults workers=2/buffers=2/chunks=10 (AGMM runs 8
buffers). Never measured (PREFILL-KERNEL-DEEPDIVE T7). RS is local+remote, so bit-exact by
construction; the probe still asserts torch.equal against the production config.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The three row-parallel prefill all-reduces go through tpc.prefill_all_reduce: unset = exactly
tt_all_reduce(cluster_axis=0, dim=3) as before; set on 1xN = the same single
reduce_scatter_minimal_async with num_buffers_per_channel exposed (tt_all_reduce pins it at 2).
Banner 'QWEN36_PREFILL_RS_CFG engaged'. Values come from the c69 probe
(bench/probes/prefill_rs); held off serving-throughput so the in-flight bundle H control band
stages unchanged sources.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The notes (desk research, estimates only) were untracked; the issues point at them. Drill results
that change the issues' plans:
- #105: 0029 LEAN is a no-op on the production arm (QWEN35_GDN_*_BF16=1 -> io=bf16 lean=0); a
  bf16 LEAN that skips only the input mirrors is bit-exact by construction (bf16 in tf32 srcA);
  the q/k-norm hoist and conv+gates fold do not pay at B=8 (2 instances/core, rf=3; FIR on the
  critical path).
- #108: RS already uses 2 links (P300 link_dict); buffers/workers/chunks are the untuned knobs;
  probe queued, lever coded on branch prefill-rs-cfg.
- #103: the DRISC tensor prefetcher + matmul_1d global CB are in the pin; upstream BH test is the
  stage-0a probe; ordered after n8 (MR inexact cause) and n9 (2D DRAM-sharded).
- #106: gain hinges on the per-matmul ramp; size it before building; attn_qkv grid is placement only.

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>
The pinned tt_all_reduce knobs (workers=2, buffers=2, chunks=10) looked like the cause of
the RS running at ~28 GB/s. The 144-config mesh sweep shows the best config (workers=4)
at 285 us against 303 us, only -6%, so the fabric pipeline knobs are not the limit.
All configs are bit-exact. Lever 2 (overlap) stays open.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The ~230 ms prefill idle looked like a per-chunk dispatch cost. The 2k vs 16k profiles
show it is ~222 ms once per request plus ~2 ms per chunk, so chunks are device-bound.
Decode loses 1.3-2.5 ms/step to ~26 us gaps adjacent to gdn_conv_gates. wb profile now
aggregates gaps by kernel pair; c69b re-profiles decode ahead of the MTP remainder.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Earlier the decode idle was believed to be diffuse. The per-pair aggregation shows it is two
deterministic gaps per GDN layer (24 and 27.6 us) in front of the two custom GDN ops, and only when
the op spans ~80-96 cores. The probe tests whether per-core unique runtime args
or single-core CoreRanges are the cause before any factory is changed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c69b guessed per-core unique runtime args. The 1-card generic_op probe shows the gap scales with
single-core CoreRanges x CBs: 37-40 us at 96 cores x 30 CBs, 1.6-4.7 us with the same cores merged.
Runtime args cost 2-3 us. 0030 passes merged ranges from the seven GDN/attn descriptor factories,
which leaves the cores, kernels and args unchanged. c70 gates and A/Bs it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
MTP at batch was expected to be the largest decode win. With per-row commit it is exact, but
2.42 tokens/row-step do not pay for the batched verify step: B=8 wall +8.7..+12.6%, B=4 +3.8..+7.5%.

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>
Before: 'prefill is compute-bound' was read as 'nothing left'. The roofline audit puts the
projection matmuls at ~300-326 TF/card in-model, about half of 11x10 LoFi peak, while upstream's
tuned 2D mcast recipe reports 483-541 TF (third-party). On ttsim the upstream 2D kernel with fp32
dest + dst_full_sync_en (8-tile subblocks) is bitwise equal to the prod output on 5 of 6 shapes, so
there is a bit-exact adoption path; bf16 dest is not bitwise and bfp4 activations drop PCC to 0.987.
No hardware number yet: the one-card probe is queued. Also lands the 2026-09-27 desk notes (prefill
roofline, decode non-DRAM audit, prefill/decode paper scans).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: bit-exact was the de facto bar, and EFMG sat escalated on a numerics ruling. The owner now
accepts minor deviation for a much better speed; the entry records default tiers (bit-exact or
near-tie: any measured win; REAL divergence: >=5% win plus gsm8k/retrieval within noise). Work list
dispatched as #110. Also make the 09-27 notes pass check-cited-records (note names were parsed as
record stems).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
queue: #109 prefill GEMM recipe probe after the c71 sequence profiles; queue log
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 8s
tt-stack-ci / Build simulators and check the host module (push) Failing after 55s
tt-stack-ci / Report upstream drift (push) Successful in 5s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 4m56s
bb41415a34
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit bb41415a34 into master 2026-09-27 19:57:00 +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!111
No description provided.