specsample: exact speculative sampling on the device, opt-in arm -s6-ss (T=1.0 at 39-57 tok/s/user) #292

Merged
Grok merged 63 commits from opus/specsample-s6 into master 2026-10-21 22:05:15 +02:00
Owner

Ships exact speculative sampling on the device as an opt-in serving arm, …-gpgob-dfr-s6-ss. CONTROL does not move: greedy S6 stays the screening arm.

What it is

  • Device sampler (QWEN36_DEVICE_SAMPLE=1): T/top_k/top_p/min_p sampling on the card. Without it, a T>0 row falls to vLLM's host sampler without MTP, at 6.4–17 tok/s/user.
  • Exact speculative sampling (QWEN36_MTP_SPEC_SAMPLE=1, _SERVE=1):
    • The drafter samples x ~ q with the request's own T/top_k/top_p.
    • A draft is accepted iff u·q(x) < p(x); on a reject the residual is drawn from norm((p−q)+).
    • The cut is a stable TILE softmax that keeps ties.
    • The rule can be chosen per request: vllm_xargs {"tt_spec_rule": "exact"|"compare"}. Any other value is a 400.
  • All new flags default to "0" (dev_sample.py _MODE, spec_sample.py). CONTROL does not set them.

Evidence

Arm …-s5-cap-ss, rounds 1/2, LEDGER R-2026-10-21-opus-specsample(-ab), record bench/runs/opus-specsample-ab-verdict-20261021.jsonl.

TG tok/s per user at T=1.0, top_p 0.95, top_k 20 (exact rule, 2 reps paired by seed). PP and acceptance are in the README table.

cell exact compare S5 host sampler T=1.0 S5 greedy
B1/4k 51.9 48.7 17.1 70.6
B1/32k 54.0 50.2 16.8 62.1
B4/4k 56.7 56.1 10.0 77.9
B4/32k 51.2 46.5 9.6 65.4
B8/4k 47.5 45.0 6.8 67.2
B8/32k 39.0 38.1 6.4 51.5
  • Distribution: the sampling-dist-check (24 prompts × 400 samples) passes under both rules with 0 tokens outside the support.
  • Accuracy at T=1.0: GSM8K 58/60 and retrieval 1.00 / 1.00.
  • Admission: a bogus tt_spec_rule gets a 400.
  • T=0 on the arm (flags on): equiv against S5 passes on near-ties (c8 6/8 exact, c4 1/4, max gap 0.125). It is not byte-identical.
  • Off-card: ttsim gates on the served path, through _verify_ops/_draft_steps. The gate goes red on the old v_-names mutant.

Flag-off identity for CONTROL

This PR changes served sources (mtp_batch.py, model.py, qwen36_vllm.py, the plugin). The CI card gate screens the changed arm (-s6-ss), not CONTROL with the flags off. So a separate card queue runs the identity check:

  • CONTROL S6 on master's tree (2c73a004): equiv references (c8, with and without logprobs), GSM8K and retrieval.
  • Then CONTROL S6 on this PR's tree: equiv --compare against those references, and GSM8K paired (McNemar) against master's run.

Verdict (coordinator, 2026-10-21): accepted as identical in distribution. It is not bit-exact at c8.

Check PR tree vs master refs master vs master refs (run-to-run baseline)
equiv c8, no logprobs 7/8 exact; p4_critique diverges at token 117 (no logprobs to classify it) 8/8 bit-exact
equiv c8, logprobs near-tie pass, 6/8 exact; p1_qa_reason @65 and p4_critique @72 flip, gap 0.0 near-tie pass, the same two flips at the same tokens, gap 0.0
GSM8K (paired) 59/60 59/60
retrieval pass —

Why it is accepted:

  1. An off-card audit of this diff against 2c73a004, with every flag unset, finds no op or host-path difference:
    • The verify and draft heads run the same _greedy_argmax_device / draft-vocab ops.
    • The new trace inputs are added only under dev_sample.enabled() / spec_sample.serve().
    • Host accept is unchanged: t0_next = emitted[-1] equals ids[m*bw+b] on the compare path, and _read_chain does the same device-0 read as _read_ids.
    • The plugin hooks return early, and the params type stays TTSamplingParams.
  2. Master itself flips p4_critique (and p1_qa_reason) on exact ties at c8 from run to run.
  3. GSM8K is 59/60 on both trees, and retrieval passes.

Records: bench/runs/ttx-…-s6-equiv-20261021T162428Z.jsonl, …T162443Z.jsonl, …-s6-gsm8k-20261021T162458Z.jsonl, …-s6-retrieval-20261021T162623Z.jsonl (PR tree); …-s6-equiv-20261021T163305Z.jsonl and …T163319Z.jsonl (master baseline).

The -s6-ss T=1.0 sweep (2 reps) is running, and will replace the S5+cap numbers in the README. Master 5bac97af (gdn/tp.py verify_double) is merged into this branch.

What the owner would change to serve it (deploying is the owner's call)

Production must run this tree's sources, i.e. mountProductionSources at this rev, with the S6 overlay. Then in nixos-llm:

services.tenstorrentServing = {
  # PR #286: rendered as --override-generation-config; asserts the device sampler for T > 0
  samplingDefaults = { temperature = 1.0; top_p = 0.95; top_k = 20; min_p = 0.0; };
  extraEnv = {
    QWEN36_DEVICE_SAMPLE = "1";            # the readiness probe then requires "QWEN36_DEVICE_SAMPLE self-test exact"
    QWEN36_DEVICE_SAMPLE_TEMP = "1.0";
    QWEN36_MTP_SPEC_SAMPLE = "1";
    QWEN36_MTP_SPEC_SAMPLE_SERVE = "1";
    QWEN36_MTP_SPEC_SAMPLE_RULE = "exact"; # per request: vllm_xargs {"tt_spec_rule": "compare"}
  };
};

Depends on

PR #286 (serve/sampling-defaults: the module options and the sampling tooling) is merged into this branch. Merge #286 first; this diff then shrinks to the sampler, the arm and the docs.

Not in this PR

  • Dead intermediate arms and queues (m-specsample, s5-ds3/ds4, s-specsample, s5-rec).
  • The -s5-cap-ss arm the numbers were measured on. It stays on launch/opus-specsample; the records carry its full effective env.

🤖 Generated with Claude Code

Ships exact speculative sampling on the device as an **opt-in** serving arm, `…-gpgob-dfr-s6-ss`. **CONTROL does not move**: greedy S6 stays the screening arm. ## What it is - **Device sampler** (`QWEN36_DEVICE_SAMPLE=1`): T/top_k/top_p/min_p sampling on the card. Without it, a T>0 row falls to vLLM's host sampler without MTP, at 6.4–17 tok/s/user. - **Exact speculative sampling** (`QWEN36_MTP_SPEC_SAMPLE=1`, `_SERVE=1`): - The drafter samples x ~ q with the request's own T/top_k/top_p. - A draft is accepted iff u·q(x) < p(x); on a reject the residual is drawn from norm((p−q)+). - The cut is a stable TILE softmax that keeps ties. - The rule can be chosen per request: `vllm_xargs {"tt_spec_rule": "exact"|"compare"}`. Any other value is a 400. - All new flags default to `"0"` (`dev_sample.py` `_MODE`, `spec_sample.py`). CONTROL does not set them. ## Evidence Arm `…-s5-cap-ss`, rounds 1/2, LEDGER `R-2026-10-21-opus-specsample(-ab)`, record `bench/runs/opus-specsample-ab-verdict-20261021.jsonl`. TG tok/s per user at T=1.0, top_p 0.95, top_k 20 (exact rule, 2 reps paired by seed). PP and acceptance are in the README table. | cell | exact | compare | S5 host sampler T=1.0 | S5 greedy | |---|---|---|---|---| | B1/4k | 51.9 | 48.7 | 17.1 | 70.6 | | B1/32k | 54.0 | 50.2 | 16.8 | 62.1 | | B4/4k | 56.7 | 56.1 | 10.0 | 77.9 | | B4/32k | 51.2 | 46.5 | 9.6 | 65.4 | | B8/4k | 47.5 | 45.0 | 6.8 | 67.2 | | B8/32k | 39.0 | 38.1 | 6.4 | 51.5 | - **Distribution:** the sampling-dist-check (24 prompts × 400 samples) passes under both rules with 0 tokens outside the support. - **Accuracy at T=1.0:** GSM8K 58/60 and retrieval 1.00 / 1.00. - **Admission:** a bogus `tt_spec_rule` gets a 400. - **T=0 on the arm (flags on):** equiv against S5 passes on near-ties (c8 6/8 exact, c4 1/4, max gap 0.125). It is not byte-identical. - **Off-card:** ttsim gates on the served path, through `_verify_ops`/`_draft_steps`. The gate goes red on the old v_-names mutant. ## Flag-off identity for CONTROL This PR changes served sources (`mtp_batch.py`, `model.py`, `qwen36_vllm.py`, the plugin). The CI card gate screens the changed arm (`-s6-ss`), not CONTROL with the flags off. So a separate card queue runs the identity check: - CONTROL S6 on master's tree (2c73a004): equiv references (c8, with and without logprobs), GSM8K and retrieval. - Then CONTROL S6 on this PR's tree: equiv `--compare` against those references, and GSM8K paired (McNemar) against master's run. **Verdict (coordinator, 2026-10-21): accepted as identical in distribution.** It is not bit-exact at c8. | Check | PR tree vs master refs | master vs master refs (run-to-run baseline) | |---|---|---| | equiv c8, no logprobs | 7/8 exact; p4_critique diverges at token 117 (no logprobs to classify it) | 8/8 bit-exact | | equiv c8, logprobs | near-tie pass, 6/8 exact; p1_qa_reason @65 and p4_critique @72 flip, gap 0.0 | near-tie pass, **the same two flips at the same tokens**, gap 0.0 | | GSM8K (paired) | 59/60 | 59/60 | | retrieval | pass | — | Why it is accepted: 1. An off-card audit of this diff against 2c73a004, with every flag unset, finds no op or host-path difference: - The verify and draft heads run the same `_greedy_argmax_device` / draft-vocab ops. - The new trace inputs are added only under `dev_sample.enabled()` / `spec_sample.serve()`. - Host accept is unchanged: `t0_next = emitted[-1]` equals `ids[m*bw+b]` on the compare path, and `_read_chain` does the same device-0 read as `_read_ids`. - The plugin hooks return early, and the params type stays `TTSamplingParams`. 2. Master itself flips p4_critique (and p1_qa_reason) on exact ties at c8 from run to run. 3. GSM8K is 59/60 on both trees, and retrieval passes. Records: `bench/runs/ttx-…-s6-equiv-20261021T162428Z.jsonl`, `…T162443Z.jsonl`, `…-s6-gsm8k-20261021T162458Z.jsonl`, `…-s6-retrieval-20261021T162623Z.jsonl` (PR tree); `…-s6-equiv-20261021T163305Z.jsonl` and `…T163319Z.jsonl` (master baseline). The `-s6-ss` T=1.0 sweep (2 reps) is running, and will replace the S5+cap numbers in the README. Master 5bac97af (`gdn/tp.py` verify_double) is merged into this branch. ## What the owner would change to serve it (deploying is the owner's call) Production must run this tree's sources, i.e. `mountProductionSources` at this rev, with the S6 overlay. Then in nixos-llm: ```nix services.tenstorrentServing = { # PR #286: rendered as --override-generation-config; asserts the device sampler for T > 0 samplingDefaults = { temperature = 1.0; top_p = 0.95; top_k = 20; min_p = 0.0; }; extraEnv = { QWEN36_DEVICE_SAMPLE = "1"; # the readiness probe then requires "QWEN36_DEVICE_SAMPLE self-test exact" QWEN36_DEVICE_SAMPLE_TEMP = "1.0"; QWEN36_MTP_SPEC_SAMPLE = "1"; QWEN36_MTP_SPEC_SAMPLE_SERVE = "1"; QWEN36_MTP_SPEC_SAMPLE_RULE = "exact"; # per request: vllm_xargs {"tt_spec_rule": "compare"} }; }; ``` ## Depends on PR #286 (`serve/sampling-defaults`: the module options and the sampling tooling) is merged into this branch. Merge #286 first; this diff then shrinks to the sampler, the arm and the docs. ## Not in this PR - Dead intermediate arms and queues (m-specsample, s5-ds3/ds4, s-specsample, s5-rec). - The `-s5-cap-ss` arm the numbers were measured on. It stays on `launch/opus-specsample`; the records carry its full effective env. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Grok added 66 commits 2026-10-21 13:40:24 +02:00
What we believed before: making a request sample at temperature>0 costs 10x because ANY
non-greedy row sends the whole step to the host sampler (model_runner.py:2110) AND the MTP
step refuses temperature>0 (mtp_batch.py:1887) -- so both the device sampler and the
speculation are lost. Measured anchors: greedy+MTP is ~63 tok/s/user at B=8, greedy without
MTP ~27, host sampling without MTP 6.4 -> the host sampler alone is ~115 ms/step at B=8.

What the evidence changed: the expensive part of a sampler is ONE already-supported op --
ttnn.topk over the vocab-sharded row measured 0.59 ms at B=8 on the card
(bench/runs/argmax-probe-20260913.jsonl) -- and the exact speculative-sampling scheme does
NOT need the residual sampler: if the TARGET samples at every verified position and the
DRAFTER stays greedy, the acceptance is a coincidence test and the emitted sequence is
distributed exactly as sequential sampling (proof in the report). That removes the need for
q and for the reduced draft vocab's reverse id map.

So: dev_sample.py (a new module) does per-shard topk -> one all-gather per tensor ->
argmax_i(logit_i/T + gumbel_i), the Gumbel-max pick, with the noise drawn by the HOST from
the request's own seed. No new device kernel (pure ttnn ops), so there is nothing for
scripts/jit-check-kernel.sh to compile.

The gate: bench/runs/dev-sample-sim-20261020T154916Z.jsonl -- the 1x2 ttsim gate is ALL_OK:
the sampled ids are BITWISE equal to the host reference on every row of every cell, the
wrong-input branch (QWEN36_DEVICE_SAMPLE_MUSTFAIL=1) differs and REFUSES the boot, and the
host unit tests pass (the Gumbel-max pick vs softmax, chi2 1.55 dof 3; the sample-then-
compare emission vs the target, chi2 3.98 dof 2). ttsim is correctness only, never a speed
number.

What is NOT wired (stated, not hidden): the serving path. The MTP and plain-decode traces
are captured once per bucket and replayed for every step, so a per-step sampler needs its
own captured trace (the trace region is budgeted) or a per-step select -- and the select
would charge the greedy steps the topk (-4% TG at B=8, an estimate). The boot self-test
(mtp_batch.py compile) therefore validates the lever's DEVICE CODE on the real card at the
served row counts and refuses the boot if it differs; the serving behaviour is unchanged,
so the flag is inert at runtime and the greedy throughput must be flat on the screen.

The arm s-specsample-ds (derived from CONTROL S4) and the queue
bench/queues/s-specsample-screen.txt are ready; the coordinator runs the card screen.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
What we believed before: the self-test's tie-free rows (every one of the 248320 logits distinct, so
the device's top-k order is the host's) could be built by walking the bf16 exponent.

What the evidence changed: bf16 has 8 mantissa bits, so a bounded range holds a few hundred
distinct values, not 248320 -- the geometric spread overflows fp32 (2^1928) and the boot
self-test at the served per=124160 would have compared infs and REFUSED the boot. The tie only
matters for the CANDIDATES, so the fix plants K distinct values per shard (the per-shard top-K)
above random noise: the candidate order is then unique, everything else may tie freely, and a
cross-shard tie is broken the same way on both sides (shard 0 first). Checked at the served
shape: bench/probes/_planted_check.py -> finite, the per-shard top-64 distinct.

The gate re-run on the fixed construction: bench/runs/dev-sample-sim-20261020T155403Z.jsonl --
ALL_OK, the sampled ids bitwise equal to the host reference on every row of every cell, the
MUSTFAIL branch differs and refuses the boot, and the host statistical unit tests pass. ttsim is
correctness only, never a speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
What we believed before: the device sampler (s-specsample) was a ttsim-gated device-code
library that served nothing -- the two gates (model_runner.py:2110 the greedy-only device
sampler, mtp_batch.py:1887 the MTP's temperature>0 fallback) sent every temperature>0 step to
the HOST sampler, with no speculation: 6.4 tok/s/user at B=8 against ~63-67 greedy.

What the evidence changed: the verify's accept rule does NOT have to change to make the
sampled decode exact. mtp_batch_host.accept already compares the draft token with the verify
id and emits ids[b, 0..m_b]; if the verify id is the device SAMPLE instead of the argmax, the
emitted block is s_0..s_m and every emitted s_j is conditioned on the emitted prefix (the
sample-then-compare scheme, exact). So the lever is: the trace computes the greedy ids
(UNCHANGED) and the sampled ids, and a per-row select flag picks per row -- a temperature==0
row keeps today's greedy ids BYTE for byte, a temperature>0 row takes the sample.

The lever:
- dev_sample.py: the noise is now PRE-SCALED by T (argmax(v/T + g) == argmax(v + T*g)), so the
  device never divides and the temperature becomes a per-row device input for free; the host
  noise is a counter-based splitmix64 hash of (the request's seed, the position of the token the
  row predicts), so it is deterministic per request and per position.
- model.py: the plain decode carries the per-step noise + the select flag as the 5th/6th decode
  trace input (the Gemma4 bind_decode_trace_inputs pattern); the COMPILE pass (which runs
  before the capture binds them) gets a temporary of the served shape, or the sampler would be
  compiled inside the capture (a compile after a parked trace = a hang).
- mtp_batch.py: the verify carries them as the named inputs vgum/vguf; the temperature>0
  fallback is skipped when the flag is on.
- model_runner.py: the greedy-only gate becomes `not dev_sample.enabled()`, and a step that asks
  for top_k/top_p/a penalty FALLS BACK to the host sampler (the device sampler implements the
  temperature only -- the penalties as a device logit bias are not feasible here, so they are
  refused, not ignored).

Evidence (ttsim 2 chips, bench/runs/dev-sample-sim-20261020T163300Z.jsonl, ALL_OK): the sampled
ids are BITWISE equal to the host reference on every row of every cell (M=1/4/32 x per=512/1024),
the per-row select is exact, the MUSTFAIL branch differs in every cell and REFUSES the boot, and
the host statistical tests pass (the Gumbel-max pick chi2 1.25 dof 3; the sample-then-compare
chi2 3.98 dof 2; the noise's determinism). ttsim is correctness only, never a speed number.
The first run failed on a bug in the TEST (the determinism check compared the row whose position
had not changed); fixed, re-run, the trail kept in bench/runs/archive/.

Risk, stated: the served shard is 124160 wide and ttnn.topk's indices are UINT16, so the served
vocab needs ttnn.experimental.topk_large_indices. The boot self-test now REFUSES if that op is
missing (the old reduced-vocab fallback is no longer sound: the serving path needs the full
vocab). The sim never covered that path (it ran at per=512/1024).

Arm s-sample2-ds (derived from CONTROL S4), ttx lint OK; the queue is
bench/queues/s-sample2-screen.txt (NOT run here: no cards).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The branch was ttsim-gated at per 512/1024 and expected to need only a card screen.
The review against the serving image found that the served-vocab top-K cannot run.
topk_large_indices returns indices only and wants a ROW_MAJOR bf16 input, so every
boot would be refused. Three further wiring bugs (stale verify noise/flag, a plugin gate
that refuses greedy steps, shared noise for unseeded requests) would make any screen
meaningless. No boot was spent. The arm is re-derived on S5 (s5-ds) and the queue
points at S5.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The Opus review of free/s-sample2 (bench/runs/s-sample2-review-20261020.jsonl, LEDGER
R-2026-10-20-s-sample2-review) found 4 blockers and one wrong base. What was believed
before: s-sample2 was card-ready apart from a couple of small fixes. What the evidence
changed: all four blockers were real, and the wide top-K is not the op s-sample2 assumed.

- B1 the wide top-K: ttnn.experimental.topk_large_indices takes a ROW_MAJOR bf16 tensor
  and returns INDICES ONLY (a ROW_MAJOR UINT32 tensor, sorted descending; k a multiple of
  16; Blackhole-only), so the (vals, idxs) unpack cannot work at the served 124160/chip
  vocab. dev_sample.py now untilizes the logits, takes the indices and GATHERS THE VALUES
  back out of the same row-major logits. The merged candidates are then re-sorted on
  device with an fp32 topk (an fp32 input declines the auto-route to the LLK composite, so
  the wide op is the only usable path at 124160 and it is called explicitly).
- B2 the stale noise: the MTP pre-verify write filters input names on 'v_' and s-sample2
  named the noise vgum/vguf, so every verify read the PREVIOUS step's noise and select
  flag. The four device-sample inputs are now v_gum / v_guf / v_gkr / v_gp, all in the
  'v_' namespace, so the verify gets THIS step's block.
- B3 the plugin gate: it compared every live row's top_k/top_p against
  create_default_tensors() (top_k=1) while the live GREEDY rows store top_k=vocab and
  Qwen's default SAMPLED rows store top_k=20/top_p=0.95, so every live step fell back to
  the host sampler (the 10x agentic-bench slowdown). The gate is now PER ROW (a greedy row
  is served exactly by the device sampler) and the DEVICE implements top_k (a host-built
  rank mask) and top_p (a sorted cumulative cut inside the candidate set).
- B4 the unseeded noise: the plugin now draws a random 63-bit seed per unseeded request at
  admission and writes it into the persistent batch's seed tensor, so two identical
  unseeded prompts no longer share noise; the metal layer keeps a per-step fallback.

The gate also caught a real bug of my own: ttnn's binary ops take the TENSOR first, so
`mask - 1` (not `1 - mask`) gave the masked-out candidates +3e38 and they won the argmax;
the sign is fixed and the M>=4 cells went exact.

ttsim gate (2 chips) at the SERVED per-chip vocab: exact for M = 1, 4, 8 on every chip
(ids vs the host reference, the select, the top_k/top_p cut, the noise determinism), the
MUSTFAIL rung REFUSED with the expected reason, and the host unit tests (the Gumbel pick's
chi2 1.25, the sample-then-compare's chi2 3.98, the noise determinism, the rank mask, the
slot-turnover flag, the MTP pre-verify write structure) all pass. Record:
bench/runs/dev-sample-sim-20261020T191000Z.jsonl. ttsim is correctness only: NO number
here is a speed number. The wide top-K's LLK kernel cannot be EXECUTED under ttsim (the
simulator has no SFPCONFIG instr_mod1=8), so the gate injects that op's contract from the
host and gates everything else at 124160; the op itself is upstream tt-metal and is
covered by the in-boot self-test on the card.

Arm: prod-g2-c86-...-gpgob-dfr-s5-ds3, derived from CONTROL S5 (master is S5, not S4);
`ttx lint` OK. Queue: bench/queues/s-sample3-screen.txt (NOT run: the cards are the
coordinator's). No kernel was touched, so there is nothing for jit-check-kernel to check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The fix round closes the served top-K, the verify write order and the plugin gate.
That makes the T=0 path screenable, so its greedy cost A/B vs S5 is queued behind
acc-curve and screen-batch2. Two T>0 defects remain and are recorded. The per-request
seed overflows int32 and is swallowed, so MTP rows still share seed 0. The device
top_p cut also differs from vLLM's. The T=0.6 A/B therefore runs only as a
speed/acceptance read.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
acc-curve's gate treats any live ttx queue as busy. A queue that waits inside its
own gate step would therefore deadlock against acc-curve. The launcher waits outside
ttx until screen-batch2 has run and no queue is alive, and only then starts the queue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A request that omits sampling fields is not served greedy, as had been assumed. vLLM's
default --generation-config auto applies the checkpoint's {T 1.0, top_k 20, top_p 0.95},
and the server log warns about it. Such requests therefore already run host-sampled
with MTP off. That path costs 6.4 vs 66.6 tok/s/user at B=8 (agentic pi bench, r2 vs r3).

The recommended T=0.6/top_p 0.95/top_k 20 defaults are wired as an option. A non-greedy
default is asserted to pair with QWEN36_DEVICE_SAMPLE, or with an explicit
samplingDefaultsOnHost. With null (the default), the unit script renders byte-identical
to production's (checked by eval), and the VM test asserts that no override is rendered.
Deploying it is the owner's call.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
What was believed: s-sample3's device sampler was card-ready for T>0 except for two small
fixes. What the evidence changed: both fixes change the SERVED TOKEN DISTRIBUTION, and one of
them (the top_p order) was a wrong-order implementation, not a small bug.

B1 the seed: the plugin's persistent batch keeps the seed in an int32 tensor, so the 63-bit
seed s-sample3 drew overflowed it; the write error was SWALLOWED, the seed stayed the
sentinel (-1), the metal layer read None and mapped it to 0, and every unseeded MTP row shared
seed 0 (two identical prompts, the same noise, the same tokens). Now: the seed is folded to 31
bits (splitmix64's finalizer) before the write, the write is NOT swallowed (a failure is
fatal), a client seed >= 2^31 is folded too (it used to kill the request in
input_batch.add_request), the metal fallback draws a random 31-bit seed per row (it was 0),
and the per-request seed map is pruned with the request.

B2 the order: vLLM 0.26 samples as temperature -> top_k -> softmax -> top_p. The device did
softmax(UN-tempered values over ALL the candidates) and then cut with <=, and applied the top_k
mask AFTER the softmax. On the review's case (Qwen's defaults top_k=20 / top_p=0.95 / T=0.6 on
0.1-spaced logits) vLLM keeps 15 of the 20 candidates and the old device cut kept 18-20: the
served distribution was wrong. Now the device tempers the candidate values with the host's
per-row 1/T (a new v_gs block input), masks the non-top_k candidates to -3e38 BEFORE the
softmax, and cuts with the STRICT rule (the mass above < p, the top candidate always kept).
The host reference was a MIRROR of the device formula, so it could not see this; it is now a
port of vLLM's own apply_top_k_top_p_pytorch on the full vocabulary (a different formulation:
ascending sort, inclusive cumsum), and the self-test compares the device's eligibility MASK
against it, not only the picked id.

The gate also gains the review's discriminating scenario (the flat 0.1-spaced rows, where the
nucleus must be exactly 15) and the seed unit tests (the fold is deterministic and fits an
int32; two unseeded requests get different noise; a seeded one is reproducible).

Also: the plugin gate now refuses a sampled row whose top_k exceeds the PER-SHARD K (the
candidate set contains the global top-k only then) or whose temperature is outside (0, 100].

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The gate caught a real difference in the far tail: vLLM's ASCENDING cumsum and the device's
DESCENDING cumsum saturate at different points once the probability underflows to 0, so the two
disagree about tokens that carry no mass (and cannot be sampled: picking one needs a Gumbel gap
of ~87, i.e. e^-87 ~ 0). The planted self-test rows have an absurd logit spread (98..356), so
that tail is wide there. The comparison is now over the candidates whose reference probability is
> 0, and the tail disagreements are counted as a diagnostic instead.

Also fixes the probe's own structural check (a substring that did not match the source).

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 correctness gate here hard-coded temperature 0, so a device-side sampler
(QWEN36_DEVICE_SAMPLE) could only be gated on rows it never serves at the model's
recommended T=0.6 / top_p 0.95 / top_k 20, and nothing compared its distribution
with vLLM's host sampler.

- gsm8k.py, kv-accuracy.py: --temperature/--top-p/--top-k, --server-defaults (no
  sampling fields, the server's generation config decides) and --seed-base; not
  greedy, each request carries seed = hash(seed base, item) so a rerun repeats it.
  Records carry temperature/top_p/top_k/server_defaults/seed_base and greedy
  (true / false / null under server defaults). Shared helper bench/sampling_params.py.
- ttx gates: the same as gate options through `ttx run` and `ttx ab`. A sampled
  gsm8k/retrieval verdict is labelled as one stochastic draw to be read paired
  (McNemar against a control at the same settings); a paired control that sampled
  differently is warned about.
- ttx ab: positional A/B passed NO gate options to gate suites, refused gate lists
  (`--suite gsm8k,retrieval` reached suites.run as an unknown suite) and dropped
  --bench-extra for sweep32k. It now passes all three (gate lists through
  gates_shared, which takes card/attach/stagger for ab). ab's --tokens default moves
  from 1024 to None (1024 is applied in the switch mode) so it does not leak into
  equiv's token count.
- serving-bench.py: --server-defaults, --top-p, --top-k; checks.greedy is true only
  for an explicit T=0 and null under server defaults; a `sampling` block.
- sampling-dist-check.py: ref (exact vLLM q from raw top-20 logprobs: temperature,
  top-k with ties kept, softmax, top-p on the ascending cumsum), sample (seeded plus
  an unseeded subset, no logprobs), compare (TV, pooled chi-square, out-of-support
  hard fail, MC null for the median TV, Fisher), and a self-test. A `dec` cell per
  prompt samples the second token from a decode step, because with
  sample_on_device_mode=decode_only the first token is always host-sampled.
  Raw logprobs verified in the vLLM 0.26.0 source.
- batch-equiv-bench.py: --sampled-companions N runs seeded T>0 streams beside the
  T=0 ones, with slot turnover, never captured or compared; threaded as an equiv
  gate option. No card time was spent; no new speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The 2026-10-20 agentic bench ran from ad-hoc scratchpad scripts with hard-coded paths, so
it could not be rerun from a queue. The s-sample validation needs a rerun at the
recommended sampling settings, sent as server defaults. This packages the same prompts,
collector and /metrics diff, opening an ssh tunnel when needed. pi_provider.py sets
what the agents send; omitting --sampling means the server's defaults apply.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Once the next fix round passes review, the device sampler needs one ordered run. It
covers:
- the on-card top-K self-test at boot;
- T=0 byte identity vs S5, pure and with sampled companions;
- an exact-distribution check against vLLM's host sampler;
- paired gsm8k/retrieval at T=0.6;
- greedy cost and T=0.6 speed;
- an agentic rerun with the recommended settings sent as server defaults.

Drafting it now means it can start the moment the review passes. It depends on the
sampling tooling in serve/sampling-defaults.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The gate (ttsim, 2 chips, the SERVED per-chip vocab 124160, M = 1/4/8/32) is ALL_OK: every
cell exact on both chips (the ids, the per-row select and the eligibility MASK against the
independent vLLM reference), the flat 0.1-spaced scenario's nucleus is 15 = the reference's at
every M (the review's discriminating case: the old formula kept 18), the MUSTFAIL rung is
REFUSED, and the host unit tests pass (the Gumbel pick's chi2 1.25, the sample-then-compare's
chi2 3.98, the noise determinism, the 31-bit seed fold, the vLLM order).

The first run (dev-sample-sim-20261020T202805Z.jsonl) FAILED, and it was the PROBE's own
comparison that was wrong, not the device: vLLM's ASCENDING cumsum and the device's DESCENDING
cumsum saturate at different points in the fp32 tail (the probability underflows to 0), so they
disagree about tokens that carry no mass. The comparison is now over the candidates whose
reference probability is > 0, and the tail disagreements are a diagnostic.

Arm: prod-g2-...-gpgob-dfr-s5-ds4, derived from CONTROL S5 with arm-derive.py (the short
suffix -ds4), both device-sampler banners expected; `ttx lint` OK. The queue
(bench/queues/s-sample4-screen.txt) is written and NOT run: the cards are the coordinator's.

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 coordinator pushed the step 2-5 validation queue (bench/queues/s-sample4-validate.txt) and
the two 'recommended defaults' arms to origin/free/s-sample3 while this fix round was running.
Merged (not rebased: the gate record cites the commit 77697b78, and a rebase would orphan it).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The coordinator's validation queue (bench/queues/s-sample4-validate.txt) names the pre-fix arm
(...-dfr-s5-ds3); this is the same arm on the fixed code, so step 5 needs no re-derivation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
serving: recommended defaults are T=1.0/top_p 0.95/top_k 20/min_p 0; probe fails closed on the device sampler
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 2m11s
tt-stack-ci / Report upstream drift (pull_request) Successful in 1m34s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 9m40s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
cards-fresh cards: no verdict yet fp=a48a0540b567a60c
d751206a08
The defaults example said T=0.6. The checkpoint's own generation_config and the model
card's eval setup give T=1.0, top_p 0.95, top_k 20 (min_p 0), and the owner's goal
D-2026-10-20-serve-recommended is set at those values.

Review found that QWEN36_DEVICE_SAMPLE=1 passed evaluation even on a tree without the
sampler. Those requests would then be host-sampled with nothing saying so. The
readiness probe now requires the sampler's "self-test exact" banner whenever the env is
set. The check sits on an existing line, so the default unit (ExecStart and probe)
still evaluates to the same drv as master's.

Also from review: run.sh now always cleans up its tunnel, poller and 8 snapshot copies
via a trap, the collectors survive an empty or missing log, and the stale prompt
template is removed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The plain-decode path folded the seed unconditionally and the MTP path did not, so the two
would give different noise for the same (seed, position). Now both fold only a seed that does
not fit 31 bits (the plugin writes an already-folded one, so it is a no-op there).

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>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Why: the device sampler (QWEN36_DEVICE_SAMPLE) serves T>0 by SAMPLING THE TARGET at every verify
row and accepting a greedy draft only when it coincides with that sample.  That is exact, but the
acceptance is the coincidence rate P(argmax q == s ~ p), which at T=1.0 is small; the exact rule
accepts a draft x ~ q with min(1, p(x)/q(x)), i.e. with probability 1 - TV(p,q) in expectation.
The host-side reference measured on a realistic pair: the exact rule 0.980 vs the coincidence 0.283
(same p, q) - the acceptance lever, at the same exactness.

The structural precondition HOLDS in this MTP: the verify does not feed the target's own tokens back
into itself (mtp_batch_host.plan writes drafts[b][j-1] into row j), so the target's p_j and the
drafter's q_j are conditioned on the same prefix - exactly what the rule needs.

What: patches/prod-local-metal/.../spec_sample.py (new, QWEN36_MTP_SPEC_SAMPLE=1, default off,
flag-off byte-identical): the cuts (temperature -> top_k -> softmax -> top_p, vLLM's order), the id
join between the target's and the drafter's candidate sets (one equality matrix gives p at the
drafter's ids and q at the target's ids), the accept test u*q(x) < p(x) (no division), the residual
draw norm((p-q)^+) and the bonus draw from p.  The exactness at the owner's settings (top_k=20,
top_p=0.95) is because the target's support is then EXACTLY the target's top-20, which C>=20 per
shard contains, so p(x)=0 exactly outside it; with no user truncation the candidate set truncates
the target's support and the emitted distribution differs from p by the tail mass (documented).

The boot self-test (mtp_batch.compile) runs the lever's device code on BOTH chips at the served
verify row counts, bitwise vs the host reference, with the wrong-input branch refusing.

The serving path is NOT wired yet (the draft chain must carry the drafter's candidate set to the
next verify and the host's accept() must take the device's accept decisions): the report has the
exact plumbing plan and the estimates.

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 second fix round closes s-sample3's two T>0 blockers. The seed is folded to 31 bits
and errors are no longer swallowed. The top_k/top_p order now matches vLLM (checked
against vLLM's own function). The self-test reference is independent, and the ttsim gate
passes at M=32. The remaining warnings don't block a card run. The self-test mask check
cannot see a sampler that keeps too many tokens, so the card distribution check is the
guard there.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The gate (bench/runs/m-specsample-sim-20261020T223500Z.jsonl, all_ok true) covers the device rule
against the host reference at the served row counts (M = 1, 4, 8, 32): the ids BITWISE, the
probabilities within the SFPU softmax's tolerance; the MUSTFAIL differing in every cell; the
2-chip candidate path (the wide top-K's contract from the host, the values gather, the all-gather
over the two chips, the global sort, the global ids); and the distribution-exactness test on the
DEVICE's own emitted tokens (1024 seeds, chi2 = 12.32, dof = 12, p = 0.42, the accept path
exercised at 62 %).

Three real bugs the gate found, all off-card:
 - the HOST reference normalised the candidate block with a SCALAR sum, so every row was divided
   by M (the device was right; the host's probabilities were 1/M of the truth).  The per-row sum
   fixes it.  This is why the ids still matched: the picks and the accept test are scale
   invariant, so only the reported probabilities were wrong.
 - the masked logit inside the softmax was -3e38: the SFPU's fast exp does not underflow it (in
   the simulator it returns a small positive value, and the 108 masked candidates then carry
   ~3 % of the mass).  -1e4 is far below any logit and exp(-1e4) = 0.
 - ttnn.reshape of an op output (a TILE tensor) is not a view in the logical order, and
   ttnn.deallocate on a reshape of an ARGUMENT frees that argument.

The residual draw also moved off the SFPU log (the simulator has none:
"UnsupportedFunctionality: tensix_sfple: lreg_dest=9") onto the exponential race
(argmin_i E_i / r_i, E_i ~ Exp(1) from the host): the same categorical draw, no log.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The card screen runs the BOOT self-test (mtp_batch.compile -> spec_sample.ensure_selftest), not
the rule directly, so the probe now runs that path as well: the lever's device code against the
host reference on BOTH chips at the served verify row counts (M = 1, 4, 8, 32), bitwise, with the
wrong-input branch differing in every cell; and the MUSTFAIL environment must make the self-test
REFUSE (it does: "QWEN36_MTP_SPEC_SAMPLE self-test REFUSED").

Record: bench/runs/m-specsample-sim-20261020T224500Z.jsonl (all_ok true): the rule cells exact, the
MUSTFAIL differing in every cell, the 2-chip candidate path (the wide top-K's contract from the
host, the values gather, the all-gather, the global sort, the global ids) exact, and the
distribution-exactness test on the DEVICE's own emitted tokens (1024 seeds, chi2 = 12.32, dof = 12,
p = 0.42, the accept path exercised at 62 %).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The 223500Z record is the same gate without the boot self-test path; the final record is
bench/runs/m-specsample-sim-20261020T224500Z.jsonl.  The superseded one moves to bench/runs/archive/
(uncited records live there) instead of being deleted.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The build contract wants the flag-off regression IN the record: with QWEN36_MTP_SPEC_SAMPLE=0 the
module is inert (enabled() is False) and the boot self-test is a no-op, so the served path is
byte-identical (the only diff in mtp_batch.py is the import, which has no side effects, and the
self-test call, which is behind enabled()).

Final record: bench/runs/m-specsample-sim-20261020T231000Z.jsonl (all_ok true): flag_off ok, the
rule cells exact at M = 1/4/8/32, the MUSTFAIL differing in every cell, the boot self-test exact on
2 chips with the wrong-input branch refusing, the 2-chip candidate path exact, and the
distribution-exactness test on the DEVICE's own emitted tokens (chi2 = 12.32, dof = 12, p = 0.42,
the accept path at 61.8 %).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The emission bookkeeping (host_emit) indexed the drafter's sampled ids and the residual samples
with the FLAT row index (j*bw + b) while the blocks it is given are DEPTH-major ([1,1,K,bw], the
depth in dim 2 and the row in dim 3).  The ttsim gate does not cover this function (it is pure
host code, the emission bookkeeping is where the host's accept() lives), so a hand-computed host
unit test caught it: the accepted draft at depth j was read from the wrong depth.

The host unit test (the three cases: a partial acceptance, all accepted, none accepted) now
matches the hand-computed emission (the accepted drafts, the residual at the first rejection, the
bonus at the depth K only when every draft was accepted).

The record also carries the sha256 of the sources it gated, so a reviewer can tell which source
the gate ran against.

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

The build contract wants the host unit tests in the gate's record, so they are now part of the
module (spec_sample.host_unit_tests) and the probe runs them:
 - the emission bookkeeping against three hand-computed cases (a partial acceptance, every draft
   accepted, none accepted): the accepted drafts, the residual at the first rejection, and the
   bonus at the depth K only when every draft was accepted;
 - the accept test's two algebra forms (u*q < p and u < min(1, p/q)) against each other;
 - the distribution-exactness test (Lemma 1) on the host reference with the INDEPENDENT
   formulation (the division and the inverse CDF): chi2 = 8.84, dof = 12, p = 0.72, the accept
   rate 0.613 at 4000 seeds.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
bench/runs/m-specsample-sim-20261020T232500Z.jsonl (all_ok true, the sources' sha256 in the
record so a reviewer can tell what was gated):
 - the flag-off regression: the module is inert and the boot self-test is a no-op;
 - the device rule vs the host reference at the served row counts (M = 1, 4, 8, 32): the ids
   BITWISE, the probabilities within the SFPU softmax's tolerance;
 - the MUSTFAIL differing in every cell;
 - the BOOT self-test path (what the card runs) exact on 2 chips, and the MUSTFAIL environment
   making it REFUSE;
 - the host unit tests: the emission bookkeeping against three hand-computed cases, the accept
   test's two algebra forms against each other, and the distribution-exactness test (chi2 = 9.08,
   dof = 12, p = 0.70);
 - the 2-chip candidate path (the wide top-K's contract from the host, the values gather, the
   all-gather, the global sort, the global ids) exact;
 - the distribution-exactness test on the DEVICE's own emitted tokens: chi2 = 12.32, dof = 12,
   p = 0.42, the accept path exercised at 61.8 %.

The superseded 231000Z record moves to bench/runs/archive/.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The previous round built and gated the rule but left it unwired, so it changed no served
token.  This round wires it: the MTP head's chain now samples x ~ q from the drafter's
candidate block (the per-shard wide top-K + the global order + the cuts), the block is
carried to the next verify through the host (the C trace's outputs, read back with the
draft ids and written into the v_ inputs before the verify), the verify computes the rule
on device (the accept flags, the residual, the bonus) and the host's accept does the
emission bookkeeping over them.  The per-request rule switch is the seed's reserved bit 30
(1 = the exact rule, 0 = sample-then-compare), so one boot can A/B both rules; the bit is
stripped from the noise key so both rules see the same noise.

The served path is a SECOND flag (QWEN36_MTP_SPEC_SAMPLE_SERVE): the device self-test and
the serving path are separate, so a boot can prove the device code without changing a
served token.  The rule's join is narrowed to the support's width (M x W x W, not
M x C2 x C2) so the trace region's cost stays small.

NOT gated: the served path is untested off-card (no ttsim run for it, no card time).  The
first card run is a correctness/boot test, not a speed test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
# Conflicts:
#	docs/LEDGER.md
#	patches/prod-local-metal/models/demos/blackhole/qwen36/tt/mtp_batch_host.py
The rule switch was a coin flip: the seed's reserved bit 30 was read AFTER s-sample4's seed fold,
which hashes the seed, so the bit was pseudo-random per request and a client could not choose the
rule.  Now:

  * the rule is an EXPLICIT per-request field (the sampling params' extra_args 'tt_spec_rule'),
    else the seed's reserved bit 30, else the arm's default (QWEN36_MTP_SPEC_SAMPLE_RULE);
  * the plugin resolves it BEFORE the fold and writes it back into the reserved bit (the fold now
    keeps bit 30), so the rule the client chose survives;
  * the bit is stripped from the noise key (dev_sample.SEED_MASK30), so the same client seed gives
    the same noise under both rules and a one-boot A/B is paired;
  * bench/serving-bench.py --spec-rule sets it per request.

Also, two defects found on the way:

  * the served path CRASHED: the target's candidate block was built without the noise the block
    builder reads (blk['noise']), so candidates() raised KeyError('noise') on the first step.  The
    block now reuses the verify's noise (the device sampler's v_gum) and the boot refuses a
    mismatched candidate width;
  * the drafter's greedy pick came from the wide top-K's first column, whose tie order is
    unspecified, so it was NOT the argmax the rest of the stack uses (the lowest global id among the
    tied maxima).  The logits are bf16, so the tie is common enough to change the draft and, at
    T=0, the served token: the block now computes the tie-broken argmax, and a greedy row (T == 0)
    takes it under both rules.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A third defect in the m-specsample2 wiring, found by the gate: the rule's NARROW join is REFUSED by
ttnn for a DRAM INTERLEAVED tensor (narrow.cpp:94 'all_preceding_dims_trivial', TT_FATAL), and the
served blocks are DRAM tensors: the narrow raised in the simulator and would raise the same way on
the card.  The narrow was only a size optimisation (the cuts are PREFIX cuts, so the support and the
rule's result are the same at the full width), so the served path now uses the full candidate width
and the join's block is M x C2 x C2 (2 MB at M=32).

Also: the acceptance PER RULE in the MTP stats line (one boot can A/B the two rules), the bench's
--spec-rule mixed, the served-path ttsim gate probe, the arm on CONTROL S5 and the screen queue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The s-sample4 record hashes mtp_batch.py and mtp_batch_host.py, which this round changes, so the
device sampler is re-gated on this branch: bench/runs/dev-sample-sim-20261021T023604Z.jsonl (all_ok,
the served per-chip vocab 124160, M = 1/4/8/32, the MUSTFAIL rung refused).

The gate's served-block cell now compares the ids as a SET per row (the logits are bf16, so the
candidates are tied and the tie order of the sorts is unspecified: the order inside the block is not
a contract, the SET is) and the tie-broken argmax against the host's own reference over the block.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
At T=0 the exact rule is NOT greedy: the rule's support is the target's top-k, so the residual
draws a RANDOM member of it (and the accept test can accept a non-argmax draft), so the served
output at T=0 would not be the greedy token.  A greedy row (T == 0) now keeps the COMPARE rule's
bookkeeping (the target's own ids), which is byte-identical to the plain greedy path: the metal
carries the per-row greedy flags with the rule flags, and the host's accept uses them.

Also: the gate's synthetic logits no longer use a ramp (a ramp makes the top candidates all TIED in
bf16, so the wide top-K's selection among them is arbitrary and the two supports do not overlap),
and the probe now leaves a record even when a cell raises.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The tie-broken argmax took the block's maximum with a slice whose END is INCLUSIVE (the image's own
usage: ttnn.slice(gi, [0,0,0,0], [1,0,0,1]) on a [1,1,B,2] tensor keeps ONE column), so the slice
kept TWO columns and the tie mask was wrong on a real block.

The gate's drafter block is now a PERMUTATION of the target's candidates (the same ids, a different
order): the two supports overlap partially, so the accept/reject mix is exercised, and every emitted
token stays inside the target's block (a block with a different id set made the emitted tokens fall
outside the target's support and left the chi-square with no mass to compare).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Every ds4 boot in s-sample4-validate refused at decode warmup with "QWEN36_DEVICE_SAMPLE:
the host block has no 'noise' tensor" (5 of 5 boots, 2026-10-21). _verify_ops keyed the
block by the v_ trace-input names, but dev_sample.sample reads noise/flag/rank/topp/scale.
The plain-decode twin in model.py maps them correctly. The ttsim gate exercised dev_sample
alone, so nothing off-card covered the MTP call site.

VERIFY_DS_BLOCK now holds the role -> v_ input mapping. tests/test_dev_sample_verify_wiring.py
reads both sources (no ttnn needed) and checks the contract. It fails on the old code (3
failures) and passes on the fix.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sampling-dist-check: a token tied with the lowest kept one is not a support violation
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 2m31s
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m33s
cards-fresh cards: queued (fingerprint has no successful verdict on this PR) fp=a48a0540b567a60c
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 4m3s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
bb782620bd
The first card run failed S5's own host sampler. At p08.pos1, three tokens were tied at
the top-p cut and token 70316 was drawn 6/400 times. vLLM's torch.sort is not stable, so
which tied token survives depends on sort order, not on the sampler. Those samples are
now reported as out_of_support_tied. An untied out-of-support token still fails. Re-read
of S5 at T=1.0: PASS, median TV 0.016 (null p99 0.020), Fisher p 0.999.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Two defects the gate's own cells exposed:

  * the tie-broken argmax gave the INELIGIBLE columns the LARGEST score (1e9), so the argmax picked a
    non-tied column; the ineligible score must be the smallest (-1e9), so a tied column always wins
    and the lowest id among the tied maxima wins the tie;
  * chi_square's p-value came out as 1.0 for a huge chi2 (the series underflowed), which turned the
    MUSTFAIL into a PASS.  The upper tail now uses the standard series + continued fraction
    (chi2 = 3.84 at dof = 1 gives p = 0.05, the textbook value).

The gate's chi-square now uses ONE shared candidate block for all the rows (the rows differ only in
their noise), so the histogram over the block's ids collects every row's emission.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The exactness test is about the RULE's mixture, not about the device's softmax: the SFPU's exp is
approximate, so the device's p differs from the host's fp64 p by ~1e-2 (the previous round's own
measurement), and with 256 draws that bias alone puts the chi-square at p ~ 1e-4.  The cell now
compares the emitted tokens against the DEVICE's p (read from the rule's debug output) and reports
the device-vs-host gap separately as sfpu_gap_vs_the_host_p.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
bench/runs/m-specsample3-served-sim-20261021T034426Z.jsonl: the SERVED path at the served shapes
(2 chips, the per-chip vocab 124160, M = 32, T = 1.0 / top_k = 20 / top_p = 0.95):

  * the served candidate block: the ids as a set per row (the bf16 candidates are tied, so the
    order inside the block is not a contract), the values exactly, the tie-broken argmax against
    the host's reference;
  * the tie rule: a PLANTED tie picks the LOWEST global id (the argmax rule), not the sort's pick;
  * the distribution exactness on the DEVICE's own emitted tokens: chi2 = 52.3, dof = 29,
    p = 0.0051 against the device's own p (the SFPU's exp is an approximation: the device-vs-host
    gap is reported as 0.035);
  * the MUSTFAIL: a deliberately wrong residual is REJECTED (chi2 = 4442, p = 0);
  * the T=0 identity: the host's greedy emission is the target's argmax on every row (and the
    device's residual is NOT the argmax on 30 of 32 rows, which is why the greedy row keeps the
    compare rule's bookkeeping);
  * the rule switch (the explicit field, the seed's reserved bit, the arm's default; the plugin's
    copy agrees with the metal's; the noise key excludes the rule bit; an unknown value is refused);
  * the host's emission bookkeeping under both rules, and the flag-off regression.

ttsim is correctness only: no number in the record is a 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: m-specsample3 carried the rule switch in seed bit 30. Its chi-square never accepted a
draft (q was built from a different block than p), and its served gate never went through
_verify_ops. Its 0.035 device-vs-host p gap was blamed on the rule.

The gap was in the cut. ttnn.softmax at its default config is off by 0.0037 to 0.024, and
ROW_MAJOR sums are off by about 4e-4 relative. A stable TILE softmax matches the host's fp64
p to 1e-8 at the served shape.

The step harness found a second, real difference: bf16 logits tie at the k-th value. vLLM
keeps every tie, and the old cut kept exactly k. cut() now keeps ties at the k-th value, as
vLLM's apply_top_k_top_p does.

The ttsim segfault was a use-after-free in candidates(), and it is fixed. The real
topk_large_indices runs in ttsim at per=124160.

The rule is now an explicit request field, vllm_xargs {"tt_spec_rule": "exact"|"compare"}.
platform.validate_request checks it at admission, so any other value is a 400. It travels
per row on a TTSpecSamplingParams subclass, which survives async_decode's rebuild. With the
flag off nothing is captured or attached. s-sample4's 31-bit seed fold and vLLM's cut order
are kept.

Gates: bench/probes/sim_spec_sample_exact.py (distribution, served shape, must-fail) and
bench/probes/sim_spec_sample_step.py (_verify_ops wiring, v_-name and drafter-param mutants,
plain vs overlap paths, T=0 identity). Arm …-s5-cap-ss; one-boot A/B queue
bench/queues/opus-specsample-ab.txt (not launched).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The first full run of the step gate passed wiring, both mutants and the path check, but
t0_identity crashed: its flag-off arms call dv.draft_ids, which the stub lacked.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Both ttsim gates pass on a clean tree. Exact gate: chi-square p=0.61 at n=8192, must-fail
p=5.6e-282. Step gate: wiring, two mutants red, paths identical, T=0 identity. The one-boot
A/B queue is written and not launched; this commit carries no card time and no speed number.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The A/B measured only speed and acceptance for the exact rule. Running gsm8k/retrieval
on the same boot gives the accuracy gate at the recommended settings without a second
boot. Greedy runs took about 18 min and 8 min, so this fits the cap.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sampling-dist-check: --extra-body for per-request server params
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
4d5df90106
The exact speculative-sampling rule is selected per request via vllm_xargs
{"tt_spec_rule": ...}. To run the distribution check under each rule on one boot, every
sample request must carry that field. The value is recorded in the samples config.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
sampling-dist-check: --xarg KEY=VALUE, a quote-free vllm_xargs entry
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 1m18s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 1m26s
cards-fresh cards: queued (fingerprint has no successful verdict on this PR) fp=a48a0540b567a60c
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 5m13s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
7ae861c4ab
When the sampler runs over ssh inside a queue line, the JSON of --extra-body passes
through two shells and loses its quotes. --xarg tt_spec_rule=exact needs no quoting.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ds4's check failed one cell, p21.dec: 4/291 samples fell outside a one-token top-p
support, against 0/298 for the S5 host sampler. The opus arm replaces ds4's cut with a
stable TILE softmax and keeps ties. Running the same 400-sample check under exact and
compare on this boot tells whether ds4's cut was the cause, without a separate boot.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The first opus A/B refused its gsm8k/retrieval steps: ttx run on this branch had no
--temperature/--top-p/--top-k. serving-bench.py keeps both --spec-rule (vllm_xargs) and
the sampling fields.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
In round 1, T=0 identity passed against S5 on the near-tie rule (c8: 6/8 exact; c4: 1/4
exact; max gap 0.125) and a bogus rule returned 400. Then the server was lost:
sweep32k --b-cells ignores --attach, boots its own server and stopped the attached one,
so B8 never ran. The gsm8k/retrieval steps were also refused because this branch lacked
the ttx sampling flags (now merged). Round 2 runs the gates on one boot. Each sweep then
boots itself, with exact and compare interleaved.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Moves the sampling line onto S6 for the next screens. The LEDGER conflict is two sets of
new rows at the top; both are kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
CONTROL moved to S6 (2c73a004), so the next sampling screens run on S6. This arm is
S6 + the device sampler + the exact rule served, with the recommended sampling as server
defaults (now including min_p 0). Against the -s5-cap-ss arm, the only env difference
is S6's own QWEN36_MTP_GDN_SO_IOSRC=1. The round-2 A/B in flight stays on -s5-cap-ss.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ttx lint failed the arm at B=1: the -s5-cap-ss parent declares both banners batched_only,
so at max_num_seqs=1 they never print.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before this run, T=1.0 meant S5's host sampler at 6.4-17 tok/s/user. Round 2 measured the
exact rule at 39-57 tok/s/user (70-87% of greedy). Acceptance beats compare in every
cell, and TG is +1 to +10% (+10% at B4/32k). Both rules pass the sdc-ds4 check with 0
out of support, including p21.dec, so ds4's failure came from its old cut. gsm8k is
58/60 and retrieval 1.00 under exact. One compare rep lost ssh and has been re-queued.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The LEDGER conflict is two sets of new rows at the top; both are kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before this commit, CI would have screened 8 of the PR's 11 arms at T=0. Most were dead
intermediate rounds: m-specsample, s5-ds3/ds4, s-specsample, s5-rec. Their records keep
the full effective config. The screening queues are spent. The -s5-cap-ss arm the round
1/2 numbers ran on stays on launch/opus-specsample. This PR ships -s6-ss.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
README: serve at the recommended settings (-s6-ss), and the measured T=1.0 table
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 4m34s
tt-stack-ci / Report upstream drift (pull_request) Successful in 4m55s
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
84d643f234
Before this commit, the README said a T=1.0 row falls to the host sampler at 6.4-17
tok/s/user, and that the device path was an unmerged branch. This PR ships that path as
an opt-in arm, so the README gives its command and the round-2 numbers. They are labelled
as measured on S5+cap, next to S6 greedy. Greedy stays the screening table, and CONTROL
does not move.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merge serve/sampling-defaults (PR #286 at eee9a816) into opus/specsample-s6
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 1m32s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 10m11s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 7m31s
cards-fresh cards: stale, verdict run 945 fp=89d13c8f06a1d059 != merged fp=b7c1ad15956db59e; push or add cards:go
tt-stack-ci / Serialized card gate (pull_request) Successful in 2h20m22s
b6f7a695ad
Brings in #286's nixfmt fix. CI run #9763 failed the build job's nixfmt --check on
modules/tenstorrent-serving.nix.

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

verdict: approve
tier: T2

rationale: Device-side exact speculative sampling (QWEN36_DEVICE_SAMPLE + QWEN36_MTP_SPEC_SAMPLE[_SERVE]) as a fully opt-in serving arm -s6-ss; CONTROL does not move. Every new flag defaults to "0"/off and the off path is byte-identical (greedy rows take _greedy_argmax_device unchanged; the plugin's device-sampling gate and the nix samplingDefaults/--override-generation-config are null/default-off, leaving the unit script byte-identical). The correctness gates are present and cited: boot self-tests (bitwise vs host fp32, with a flipped-accept/MUSTFAIL branch), the served-path ttsim gates (red on the v_-name mutant), the 24x400 sampling-dist check (0 tokens outside support, both rules), a bogus tt_spec_rule -> 400 at admission, GSM8K 58/60 + retrieval 1.00 at T=1.0, and the A/B table in the body.

concerns:

  • [warn] bench/arms/...-s6-ss.toml is a derived arm (inherits the S6 control) whose only semantic delta is the new [env] levers — the union intent (S6 flags ON + the two new levers ON) is deliberate, not a leak. The device proof is the card A/B, which is NOT in this head's CI: run 9763 (head 84d643f2) failed only on the nixfmt --check step (formatting, since fixed at b6f7a695), so the "Serialized card gate" was blocked and no A/B number exists yet. The human-approved label is held until the card gate fires and the arm produces a winner vs CONTROL.
  • [warn] patches/prod-local-metal/.../mtp_batch.py accept() now computes t0_next from emitted[b][-1] instead of ids[m_list[b]*bw+b]. On the off/compare path emitted[b][-1] == ids[m*bw+b], so it's byte-identical; under the exact rule the last emitted token is the residual/target sample, which is what the chain must continue from. Correct, but it is a shared code path touched by this PR — the card A/B at T=1.0 is the confirmation.
  • [warn] The nix samplingDefaults/samplingDefaultsOnHost options come from the merged PR #286 which this branch supersedes-then-carries: merging #292 lands those options too. #286 is already merged, so there is no double-land risk — but keep #292's diff review scoped to the sampler + arm + docs, not the options (those are #286's).
  • [warn] QWEN36_DEVICE_SAMPLE mounted via nix mountProductionSources becomes standing behavior of every tenstorrentServing unit that sets the env; the readiness probe correctly REFUSES a boot with the flag on but no self-test exact banner, so a mis-armed server can't serve on the host silently. Intended — say so at deploy time.
  • [nit] The -s5-cap-ss arm the numbers were measured on is explicitly not in this PR (stays on launch/opus-specsample); the cited records carry its full effective env, so the T=1.0 table is verifiable against bench/runs/opus-specsample-ab-verdict-20261021.jsonl.

Model note: session running agent-dense (the requested LiteLLM alias) — the dispatch pre-applied it; no mid-session swap was needed.

**verdict:** approve **tier:** T2 **rationale:** Device-side exact speculative sampling (`QWEN36_DEVICE_SAMPLE` + `QWEN36_MTP_SPEC_SAMPLE[_SERVE]`) as a fully opt-in serving arm `-s6-ss`; CONTROL does not move. Every new flag defaults to "0"/off and the off path is byte-identical (greedy rows take `_greedy_argmax_device` unchanged; the plugin's device-sampling gate and the nix `samplingDefaults`/`--override-generation-config` are null/default-off, leaving the unit script byte-identical). The correctness gates are present and cited: boot self-tests (bitwise vs host fp32, with a flipped-accept/MUSTFAIL branch), the served-path ttsim gates (red on the v_-name mutant), the 24x400 sampling-dist check (0 tokens outside support, both rules), a bogus `tt_spec_rule` -> 400 at admission, GSM8K 58/60 + retrieval 1.00 at T=1.0, and the A/B table in the body. **concerns:** - [warn] `bench/arms/...-s6-ss.toml` is a derived arm (`inherits` the S6 control) whose only semantic delta is the new `[env]` levers — the union intent (S6 flags ON + the two new levers ON) is deliberate, not a leak. The device proof is the card A/B, which is NOT in this head's CI: run 9763 (head 84d643f2) failed only on the nixfmt `--check` step (formatting, since fixed at b6f7a695), so the "Serialized card gate" was blocked and no A/B number exists yet. The `human-approved` label is held until the card gate fires and the arm produces a winner vs CONTROL. - [warn] `patches/prod-local-metal/.../mtp_batch.py` `accept()` now computes `t0_next` from `emitted[b][-1]` instead of `ids[m_list[b]*bw+b]`. On the off/compare path `emitted[b][-1] == ids[m*bw+b]`, so it's byte-identical; under the exact rule the last emitted token is the residual/target sample, which is what the chain must continue from. Correct, but it is a shared code path touched by this PR — the card A/B at T=1.0 is the confirmation. - [warn] The nix `samplingDefaults`/`samplingDefaultsOnHost` options come from the merged PR #286 which this branch supersedes-then-carries: merging #292 lands those options too. #286 is already merged, so there is no double-land risk — but keep #292's diff review scoped to the sampler + arm + docs, not the options (those are #286's). - [warn] `QWEN36_DEVICE_SAMPLE` mounted via nix `mountProductionSources` becomes standing behavior of every `tenstorrentServing` unit that sets the env; the readiness probe correctly REFUSES a boot with the flag on but no `self-test exact` banner, so a mis-armed server can't serve on the host silently. Intended — say so at deploy time. - [nit] The `-s5-cap-ss` arm the numbers were measured on is explicitly not in this PR (stays on `launch/opus-specsample`); the cited records carry its full effective env, so the T=1.0 table is verifiable against `bench/runs/opus-specsample-ab-verdict-20261021.jsonl`. **Model note:** session running `agent-dense` (the requested LiteLLM alias) — the dispatch pre-applied it; no mid-session swap was needed.
Member

Card gate — prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss vs prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6

  • PR #292 ref refs/pull/292/head
  • head b6f7a695ad27b47d7d175d0779b13f36d6bb361c merged onto master (measured tree, fingerprint in the verdict comment)
  • host cfx-llm2, slot mesh (card0+card1)
  • serving check out /nix/store/x7hp6nmaqwn9pjqvwpijhbdjf0w9fx14-vm-test-run-tenstorrent-serving
  • ttx ab exit 0 (3 = aborted: the job fails even if a control record exists); gates exit 1
  • sweep reps: 1. Cells kept: B=8, B=4 and B=1 at ctx 4096 and 32768, one visit per arm.

gsm8k / retrieval / equiv do not gate merge. A FAIL below is a report.

Gates

  • prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss equiv: kind REFUSED verdict None (bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-equiv-20261021T143804Z.jsonl)
  • prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss gsm8k: kind REFUSED verdict None (bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-gsm8k-20261021T143804Z.jsonl)
  • prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss retrieval: kind REFUSED verdict None (bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-retrieval-20261021T143804Z.jsonl)

PP tok/s and TG tok/s per user (TG ms/token secondary)

arm B ctx PP tok/s TG tok/s/user TG ms/token vs control PP vs control TG tok/s
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 1 4096 8078.9 71.4 13.999
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 1 32768 7249.6 62.5 16.003
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 4 4096 7259.2 78.5 12.742
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 4 32768 7077.3 65.9 15.164
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 8 4096 6881.1 68.0 14.711
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 8 32768 7062.6 52.3 19.107
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 1 4096 7968.9 58.3 17.154 -1.36% -18.39%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 1 32768 7225.6 51.4 19.456 -0.33% -17.75%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 4 4096 7314.3 63.1 15.856 +0.76% -19.64%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 4 32768 7133.6 54.5 18.356 +0.80% -17.39%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 8 4096 6849.5 53.5 18.681 -0.46% -21.25%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 8 32768 7097.8 42.0 23.817 +0.50% -19.78%

Records

  • bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-switch-20261021T131942Z.jsonl
  • bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-equiv-20261021T143804Z.jsonl
  • bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-gsm8k-20261021T143804Z.jsonl
  • bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-retrieval-20261021T143804Z.jsonl
  • bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ab20261021T131942Z-r0.jsonl
  • bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-ab20261021T131942Z-r0.jsonl

Full jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9766 (artifact bench-runs when the upload step ran).

## Card gate — `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` vs `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` - PR `#292` ref `refs/pull/292/head` - head `b6f7a695ad27b47d7d175d0779b13f36d6bb361c` merged onto `master` (measured tree, fingerprint in the verdict comment) - host `cfx-llm2`, slot mesh (card0+card1) - serving check out `/nix/store/x7hp6nmaqwn9pjqvwpijhbdjf0w9fx14-vm-test-run-tenstorrent-serving` - `ttx ab` exit 0 (3 = aborted: the job fails even if a control record exists); gates exit 1 - sweep reps: 1. Cells kept: B=8, B=4 and B=1 at ctx 4096 and 32768, one visit per arm. gsm8k / retrieval / equiv do **not** gate merge. A FAIL below is a report. ### Gates - `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` `equiv`: kind `REFUSED` verdict `None` (`bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-equiv-20261021T143804Z.jsonl`) - `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` `gsm8k`: kind `REFUSED` verdict `None` (`bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-gsm8k-20261021T143804Z.jsonl`) - `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` `retrieval`: kind `REFUSED` verdict `None` (`bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-retrieval-20261021T143804Z.jsonl`) ### PP tok/s and TG tok/s per user (TG ms/token secondary) | arm | B | ctx | PP tok/s | TG tok/s/user | TG ms/token | vs control PP | vs control TG tok/s | | --- | --- | --- | --- | --- | --- | --- | --- | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 1 | 4096 | 8078.9 | 71.4 | 13.999 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 1 | 32768 | 7249.6 | 62.5 | 16.003 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 4 | 4096 | 7259.2 | 78.5 | 12.742 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 4 | 32768 | 7077.3 | 65.9 | 15.164 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 8 | 4096 | 6881.1 | 68.0 | 14.711 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 8 | 32768 | 7062.6 | 52.3 | 19.107 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 1 | 4096 | 7968.9 | 58.3 | 17.154 | -1.36% | -18.39% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 1 | 32768 | 7225.6 | 51.4 | 19.456 | -0.33% | -17.75% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 4 | 4096 | 7314.3 | 63.1 | 15.856 | +0.76% | -19.64% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 4 | 32768 | 7133.6 | 54.5 | 18.356 | +0.80% | -17.39% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 8 | 4096 | 6849.5 | 53.5 | 18.681 | -0.46% | -21.25% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 8 | 32768 | 7097.8 | 42.0 | 23.817 | +0.50% | -19.78% | ### Records - `bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-switch-20261021T131942Z.jsonl` - `bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-equiv-20261021T143804Z.jsonl` - `bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-gsm8k-20261021T143804Z.jsonl` - `bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-retrieval-20261021T143804Z.jsonl` - `bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ab20261021T131942Z-r0.jsonl` - `bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-ab20261021T131942Z-r0.jsonl` Full jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9766 (artifact `bench-runs` when the upload step ran).
Member

Cards verdict: success

  • fingerprint 89d13c8f06a1d0594642d58a769012b58b3667b063403308df8f8fad4f495a59 (CONTROL prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6, arms prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss, 553 card files 82d3d9af6633fda9)
  • measured tree: head b6f7a695ad27b47d7d175d0779b13f36d6bb361c merged onto base eee9a816be0ed56a8fe4783d6031d1e14a8919d7
  • run https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9766

A later event with the same fingerprint reuses this verdict instead of booting the cards.

## Cards verdict: success - fingerprint `89d13c8f06a1d0594642d58a769012b58b3667b063403308df8f8fad4f495a59` (CONTROL `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6`, arms `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss`, 553 card files `82d3d9af6633fda9`) - measured tree: head `b6f7a695ad27b47d7d175d0779b13f36d6bb361c` merged onto base `eee9a816be0ed56a8fe4783d6031d1e14a8919d7` - run https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9766 A later event with the same fingerprint reuses this verdict instead of booting the cards. <!-- tt-cards-verdict {"arms": ["prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss"], "base_sha": "eee9a816be0ed56a8fe4783d6031d1e14a8919d7", "control": "prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6", "files_sha": "82d3d9af6633fda9ad65278bc8d01e1d70922fba2ba36e47bf5c88b56d997733", "fp": "89d13c8f06a1d0594642d58a769012b58b3667b063403308df8f8fad4f495a59", "head": "b6f7a695ad27b47d7d175d0779b13f36d6bb361c", "run_id": "9766", "run_number": "945", "run_url": "https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9766", "tree": "6f901af935aa19920f487530bf92e6c021cf9579", "v": 1, "verdict": "success"} -->
README: the -s6-ss arm costs greedy traffic 17-21% TG/user (CI card run #9766)
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 4m29s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 10m18s
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 8m28s
cards-fresh cards: fresh (run 948) fp=b7c1ad15956db59e
tt-stack-ci / Serialized card gate (pull_request) Successful in 42m25s
9b100f5892
#292's card gate screened -s6-ss against S6 at T=0. Before this commit, the README said
greedy rows on the arm "take the device-argmax + MTP path" and named no cost. The run
measured TG/user -17.4% to -21.3% in 6/6 cells, PP flat. The arm suits sampled traffic;
S6 stays the greedy arm.

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

CI card run #9766 is green. Two notes before merge:

  • Greedy cost of the arm: at T=0, -s6-ss runs TG/user −17.4% to −21.3% against S6 in all 6 cells, with PP within ±1.4%. The arm always carries the candidate machinery, so it is for sampled traffic, and S6 stays the greedy arm. The README now says this (9b100f58). The owner should weigh it before pointing all production traffic at -s6-ss.
  • The gate suites did not run: gsm8k, retrieval and equiv on -s6-ss were REFUSED. Another queue's …-s5-cap boot held the mesh slot when the gates tried to boot. That is slot contention, not a code failure, and these gates do not gate merge. At T=1.0 the arm's quality evidence is the round-2 run on S5+cap: GSM8K 58/60, retrieval 1.00, and the distribution check passing.

The flag-off identity check of CONTROL is still queued on the cards: S6 equiv references on master's tree, then CONTROL on this tree compared against them, plus GSM8K paired against master's run. I'll post it here when it runs.

🤖 Generated with Claude Code

CI card run #9766 is green. Two notes before merge: - **Greedy cost of the arm:** at T=0, `-s6-ss` runs TG/user −17.4% to −21.3% against S6 in all 6 cells, with PP within ±1.4%. The arm always carries the candidate machinery, so it is for sampled traffic, and S6 stays the greedy arm. The README now says this (9b100f58). The owner should weigh it before pointing all production traffic at `-s6-ss`. - **The gate suites did not run:** gsm8k, retrieval and equiv on `-s6-ss` were REFUSED. Another queue's `…-s5-cap` boot held the mesh slot when the gates tried to boot. That is slot contention, not a code failure, and these gates do not gate merge. At T=1.0 the arm's quality evidence is the round-2 run on S5+cap: GSM8K 58/60, retrieval 1.00, and the distribution check passing. The flag-off identity check of CONTROL is still queued on the cards: S6 equiv references on master's tree, then CONTROL on this tree compared against them, plus GSM8K paired against master's run. I'll post it here when it runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Member

Card gate — prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss vs prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6

  • PR #292 ref refs/pull/292/head
  • head 9b100f589276106326df501d139d823f66de0558 merged onto master (measured tree, fingerprint in the verdict comment)
  • host cfx-llm2, slot mesh (card0+card1)
  • serving check out /nix/store/x7hp6nmaqwn9pjqvwpijhbdjf0w9fx14-vm-test-run-tenstorrent-serving
  • ttx ab exit 0 (3 = aborted: the job fails even if a control record exists); gates exit 0
  • sweep reps: 1. Cells kept: B=8, B=4 and B=1 at ctx 4096 and 32768, one visit per arm.

gsm8k / retrieval / equiv do not gate merge. A FAIL below is a report.

Gates

  • prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss equiv: kind MEASURED verdict pass (bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-equiv-20261021T155407Z.jsonl)
  • prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss gsm8k: kind MEASURED verdict pass (bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-gsm8k-20261021T155407Z.jsonl)
  • prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss retrieval: kind MEASURED verdict pass (bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-retrieval-20261021T155407Z.jsonl)

PP tok/s and TG tok/s per user (TG ms/token secondary)

arm B ctx PP tok/s TG tok/s/user TG ms/token vs control PP vs control TG tok/s
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 1 4096 7968.9 71.0 14.082
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 1 32768 7225.6 62.8 15.93
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 4 4096 7230.4 78.3 12.768
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 4 32768 7111.1 65.9 15.171
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 8 4096 6868.2 67.7 14.774
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6 8 32768 7076.0 52.2 19.152
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 1 4096 7953.4 58.4 17.136 -0.19% -17.82%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 1 32768 7260.8 51.1 19.558 +0.49% -18.55%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 4 4096 7262.4 63.4 15.767 +0.44% -19.02%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 4 32768 7118.8 54.4 18.367 +0.11% -17.40%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 8 4096 6918.9 53.4 18.722 +0.74% -21.09%
prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss 8 32768 7078.9 42.2 23.696 +0.04% -19.18%

Records

  • bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-switch-20261021T153744Z.jsonl
  • bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-equiv-20261021T155407Z.jsonl
  • bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-gsm8k-20261021T155407Z.jsonl
  • bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-retrieval-20261021T155407Z.jsonl
  • bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ab20261021T153744Z-r0.jsonl
  • bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-ab20261021T153744Z-r0.jsonl

Full jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9774 (artifact bench-runs when the upload step ran).

## Card gate — `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` vs `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` - PR `#292` ref `refs/pull/292/head` - head `9b100f589276106326df501d139d823f66de0558` merged onto `master` (measured tree, fingerprint in the verdict comment) - host `cfx-llm2`, slot mesh (card0+card1) - serving check out `/nix/store/x7hp6nmaqwn9pjqvwpijhbdjf0w9fx14-vm-test-run-tenstorrent-serving` - `ttx ab` exit 0 (3 = aborted: the job fails even if a control record exists); gates exit 0 - sweep reps: 1. Cells kept: B=8, B=4 and B=1 at ctx 4096 and 32768, one visit per arm. gsm8k / retrieval / equiv do **not** gate merge. A FAIL below is a report. ### Gates - `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` `equiv`: kind `MEASURED` verdict `pass` (`bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-equiv-20261021T155407Z.jsonl`) - `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` `gsm8k`: kind `MEASURED` verdict `pass` (`bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-gsm8k-20261021T155407Z.jsonl`) - `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` `retrieval`: kind `MEASURED` verdict `pass` (`bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-retrieval-20261021T155407Z.jsonl`) ### PP tok/s and TG tok/s per user (TG ms/token secondary) | arm | B | ctx | PP tok/s | TG tok/s/user | TG ms/token | vs control PP | vs control TG tok/s | | --- | --- | --- | --- | --- | --- | --- | --- | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 1 | 4096 | 7968.9 | 71.0 | 14.082 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 1 | 32768 | 7225.6 | 62.8 | 15.93 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 4 | 4096 | 7230.4 | 78.3 | 12.768 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 4 | 32768 | 7111.1 | 65.9 | 15.171 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 8 | 4096 | 6868.2 | 67.7 | 14.774 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6` | 8 | 32768 | 7076.0 | 52.2 | 19.152 | | | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 1 | 4096 | 7953.4 | 58.4 | 17.136 | -0.19% | -17.82% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 1 | 32768 | 7260.8 | 51.1 | 19.558 | +0.49% | -18.55% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 4 | 4096 | 7262.4 | 63.4 | 15.767 | +0.44% | -19.02% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 4 | 32768 | 7118.8 | 54.4 | 18.367 | +0.11% | -17.40% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 8 | 4096 | 6918.9 | 53.4 | 18.722 | +0.74% | -21.09% | | `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss` | 8 | 32768 | 7078.9 | 42.2 | 23.696 | +0.04% | -19.18% | ### Records - `bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-switch-20261021T153744Z.jsonl` - `bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-equiv-20261021T155407Z.jsonl` - `bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-gsm8k-20261021T155407Z.jsonl` - `bench/runs/ttx-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-retrieval-20261021T155407Z.jsonl` - `bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ab20261021T153744Z-r0.jsonl` - `bench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss-ab20261021T153744Z-r0.jsonl` Full jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9774 (artifact `bench-runs` when the upload step ran).
Member

Cards verdict: success

  • fingerprint b7c1ad15956db59e40519cc5152d80385aa19b849020aff88aa8d78fe09c58f3 (CONTROL prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6, arms prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss, 553 card files 194d1ab44557452a)
  • measured tree: head 9b100f589276106326df501d139d823f66de0558 merged onto base 5bac97af09c8888f2abcf5d63efe5a0852c93875
  • run https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9774

A later event with the same fingerprint reuses this verdict instead of booting the cards.

## Cards verdict: success - fingerprint `b7c1ad15956db59e40519cc5152d80385aa19b849020aff88aa8d78fe09c58f3` (CONTROL `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6`, arms `prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss`, 553 card files `194d1ab44557452a`) - measured tree: head `9b100f589276106326df501d139d823f66de0558` merged onto base `5bac97af09c8888f2abcf5d63efe5a0852c93875` - run https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9774 A later event with the same fingerprint reuses this verdict instead of booting the cards. <!-- tt-cards-verdict {"arms": ["prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6-ss"], "base_sha": "5bac97af09c8888f2abcf5d63efe5a0852c93875", "control": "prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-mx-b8k3c48-gpgob-dfr-s6", "files_sha": "194d1ab44557452a12e07055a1f88037184bec76707c2f8e0baeeae3fdcbde2c", "fp": "b7c1ad15956db59e40519cc5152d80385aa19b849020aff88aa8d78fe09c58f3", "head": "9b100f589276106326df501d139d823f66de0558", "run_id": "9774", "run_number": "948", "run_url": "https://git.bitp.cz/bitpartner/tt-stack/actions/runs/9774", "tree": "16e24ed2f23a4077d6f251049388c8e3d372a0a3", "v": 1, "verdict": "success"} -->
Author
Owner

Flag-off identity for CONTROL S6 ($A-s6, flags unset): PR tree vs master 2c73a004, c8 greedy, same cards, 2026-10-21

Check PR tree vs master ref master vs master ref (run-to-run baseline)
equiv c8 --logprobs 0 FAIL: 7/8 exact; p4_critique diverges at token 117 (no logprobs, so the gate cannot classify it) BIT_EXACT 8/8
equiv c8 with logprobs NEAR_TIE pass: 6/8 exact; p1_qa_reason @65 (band→memory) and p4_critique @72 (specific→critical), both gap 0.0 NEAR_TIE pass: the same two flips at the same tokens, gap 0.0
gsm8k (paired vs master) 59/60 (master 59/60) —
retrieval pass —

Records: opus-specsample-s6/bench/runs/ttx-…-s6-equiv-20261021T162428Z.jsonl, …T162443Z.jsonl, …-s6-gsm8k-20261021T162458Z.jsonl, …-s6-retrieval-20261021T162623Z.jsonl; baseline master-s6-ref/bench/runs/ttx-…-s6-equiv-20261021T163305Z.jsonl, …T163319Z.jsonl.

What this shows:

  • Master itself flips the same exact ties (gap 0.0) on p1/p4 from run to run at c8. p4_critique is a known tie-prone stream on master.
  • The no-logprobs master rerun happened to be exact; the PR run diverged once, on that same stream.

Off-card audit of the diff against 2c73a004, every changed file with all flags unset:

  • Device ops: unchanged. _verify_sample returns _greedy_argmax_device(logits) when dev_sample.enabled() is off. _MTPHead.draft_ids runs the same draft-vocab/argmax ops as before. The extra trace inputs are only added under dev_sample.enabled() / spec_sample.serve().
  • Host accept: unchanged. t0_next = emitted[b][-1], and on the compare path that equals ids[m*bw+b]. The draft reads go through _read_chain, which does the same to_torch(device 0)[:bw] read as _read_ids.
  • Plugin: unchanged. _ss_with_rules, _ds_assign_seeds and _ds_fold_user_seed return early when the model attrs are False. type(sampling_params) is still TTSamplingParams. _tt_device_sampling_greedy_only is still True.
  • Other files: gdn/tp.py and the rest are unchanged vs the ref tree.
  • Result: no flag-off code path differs. The one no-logprobs divergence is consistent with c8 tie-breaking, not with the PR.

Note: master has since moved to 5bac97af (gdn/tp.py verify_double), so this branch needs a master merge before landing.

**Flag-off identity for CONTROL S6 (`$A-s6`, flags unset): PR tree vs master 2c73a004, c8 greedy, same cards, 2026-10-21** | Check | PR tree vs master ref | master vs master ref (run-to-run baseline) | |---|---|---| | equiv c8 `--logprobs 0` | **FAIL**: 7/8 exact; p4_critique diverges at token 117 (no logprobs, so the gate cannot classify it) | BIT_EXACT 8/8 | | equiv c8 with logprobs | NEAR_TIE pass: 6/8 exact; p1_qa_reason @65 (`band`→`memory`) and p4_critique @72 (`specific`→`critical`), both gap 0.0 | NEAR_TIE pass: **the same two flips at the same tokens**, gap 0.0 | | gsm8k (paired vs master) | 59/60 (master 59/60) | — | | retrieval | pass | — | Records: `opus-specsample-s6/bench/runs/ttx-…-s6-equiv-20261021T162428Z.jsonl`, `…T162443Z.jsonl`, `…-s6-gsm8k-20261021T162458Z.jsonl`, `…-s6-retrieval-20261021T162623Z.jsonl`; baseline `master-s6-ref/bench/runs/ttx-…-s6-equiv-20261021T163305Z.jsonl`, `…T163319Z.jsonl`. What this shows: - Master itself flips the same exact ties (gap 0.0) on p1/p4 from run to run at c8. p4_critique is a known tie-prone stream on master. - The no-logprobs master rerun happened to be exact; the PR run diverged once, on that same stream. Off-card audit of the diff against 2c73a004, every changed file with all flags unset: - **Device ops:** unchanged. `_verify_sample` returns `_greedy_argmax_device(logits)` when `dev_sample.enabled()` is off. `_MTPHead.draft_ids` runs the same draft-vocab/argmax ops as before. The extra trace inputs are only added under `dev_sample.enabled()` / `spec_sample.serve()`. - **Host accept:** unchanged. `t0_next = emitted[b][-1]`, and on the compare path that equals `ids[m*bw+b]`. The draft reads go through `_read_chain`, which does the same `to_torch(device 0)[:bw]` read as `_read_ids`. - **Plugin:** unchanged. `_ss_with_rules`, `_ds_assign_seeds` and `_ds_fold_user_seed` return early when the model attrs are False. `type(sampling_params)` is still `TTSamplingParams`. `_tt_device_sampling_greedy_only` is still True. - **Other files:** `gdn/tp.py` and the rest are unchanged vs the ref tree. - **Result:** no flag-off code path differs. The one no-logprobs divergence is consistent with c8 tie-breaking, not with the PR. Note: master has since moved to 5bac97af (`gdn/tp.py` verify_double), so this branch needs a master merge before landing.
Merge master 5bac97af into opus/specsample-s6 (#292)
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 3m11s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 12m10s
cards-fresh cards: reused run 948 fp=b7c1ad15956db59e
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 21m53s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
bd0cf30b89
Master gained the gdn/tp.py verify_double change after this branch was cut; the PR tree must carry it so the CI card gate screens what would land. Clean merge, no conflicts.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merge master e0d54216 (#294 sim-run overlay fix) into opus/specsample-s6 (#292)
Some checks failed
cards-fresh cards: fresh (run 948) fp=b7c1ad15956db59e
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Failing after 11m34s
tt-stack-ci / Report upstream drift (pull_request) Failing after 12m9s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 17m36s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
cards-fresh / Re-check cards-fresh on open PRs (push) Has been cancelled
20f6c07496
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit 20f6c07496 into master 2026-10-21 22:05:15 +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
3 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!292
No description provided.