c139: MTP warm tail + K by bucket is the best arm (B8/32k -2.7%, B4/4k -6.5%; gates clean) #141

Merged
Grok merged 14 commits from serving-throughput into master 2026-10-01 06:09:07 +02:00
Owner

This merges the c139 bundle (LEDGER R-2026-10-01-mtp-warm-kb): the MTP warm tail (2048 prompt positions) plus K by bucket (8:2, 4:3, 2:3, 1:3), on top of the MTP stack. The new best arm is …-nhp-tail-k8v4-mtp-stack-warm-kb.

Results (TP=2; the stack control ran 3 times and the bundle twice, interleaved):

cell Δ vs stack
B8/32k −2.7% (75.65 s)
B8/4k −5.3%
B4/4k −6.5%
B4/32k −0.8% (in band)

The 2×2 attribution and its interaction terms are in the LEDGER entry.

Gates:

  • equiv NEAR_TIE;
  • the must-fail lowers acceptance (0.608 → 0.576);
  • GSM8K 293/300;
  • retrieval 1.0 in both the early and late halves at 16k and 32k.

Against the loop's production baseline, B8/32k goes from 144.21 to 75.65 s (−47.5%). Deploying to production is the owner's call.

The PR also includes the c134b, c137 and DFlash2-oracle records and the queue fixes.

🤖 Generated with Claude Code

This merges the c139 bundle (LEDGER `R-2026-10-01-mtp-warm-kb`): the MTP warm tail (2048 prompt positions) plus K by bucket (8:2, 4:3, 2:3, 1:3), on top of the MTP stack. The new best arm is `…-nhp-tail-k8v4-mtp-stack-warm-kb`. **Results** (TP=2; the stack control ran 3 times and the bundle twice, interleaved): | cell | Δ vs stack | |---|---| | B8/32k | −2.7% (75.65 s) | | B8/4k | −5.3% | | B4/4k | −6.5% | | B4/32k | −0.8% (in band) | The 2×2 attribution and its interaction terms are in the LEDGER entry. **Gates:** - equiv NEAR_TIE; - the must-fail lowers acceptance (0.608 → 0.576); - GSM8K 293/300; - retrieval 1.0 in both the early and late halves at 16k and 32k. Against the loop's production baseline, B8/32k goes from 144.21 to 75.65 s (−47.5%). Deploying to production is the owner's call. The PR also includes the c134b, c137 and DFlash2-oracle records and the queue fixes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Grok added 14 commits 2026-10-01 06:09:01 +02:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Before: the MTP KV of a new request started empty at its first decode position (MTP-BATCH R3),
so the first drafts of every request ran on a cold cache, and every bucket speculated at the
global K even though B=8 verifies 32 rows at K=3 for 2.64 tokens/row-step.

Warm tail: after prefill, one KV-only MTP pass over the last min(N, L) prompt positions writes
(h_s, tok_{s+1}) at RoPE s, relative index s - (L - n), and seeds the slot's origin so decode
continues at index n. The last row uses the host argmax of the prefill logits; a different first
token only re-origins the slot. Fixed Wn rows per boot, compiled in the phase-2 prefill warmup
before any trace is parked, persistent buffers, no new trace; pad rows land in one extra MTP
scratch block. The chunk-trace output is gathered before the tail replay can reuse it.

K by bucket: per-bucket K <= global K (plugin lookahead), Bw*(K+1) <= 32, refused otherwise.

Evidence (off-card only, no speed number): host tests (20 new; k8v4 budget test import fixed);
ttsim bench/runs/mtp-warm-tail-sim-20261001T012051Z.jsonl - window gather bitwise at D=2560,
warm fill vs per-position eager writes within bf8/bf4 quantisation, pairing/RoPE/index
must-fails >= 10x away. ttsim lacks rsqrt/rms_norm (sfpgt), so the probe's norm scale is host-side.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The c135 stack is the best arm, but its acceptance is cold at each request start and B=8 runs
K=3. These arms isolate the two flags against bracketing stack controls (stack, warm-kb, warm,
stack, kb), then gate warm-kb by equiv vs the c135 logprob capture and, only on a win, GSM8K
N=300 and retrieval. The must-fail (pair_minus1) cannot show in equiv because MTP is greedy
exact; it is read from the B8/32k acceptance stats. The stack control now absent-checks the
new banners, and a warm skip trips the warm arms (a skip means the arm is not what it claims).
Fragment only; not appended to the live queue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
c134b compared tail-free 2048 prompts against 2304 prompts that paid a tail; most of the +8-12% 'chunk 2304 penalty' is that tail (est).

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>
merge mtp-warm: MTP warm tail + K by bucket (LEDGER R-2026-10-01-mtp-warm-kb)
Some checks failed
tt-stack-ci / Report upstream drift (pull_request) Successful in 9s
tt-stack-ci / Build simulators and check the host module (pull_request) Failing after 1m34s
tt-stack-ci / Build simulators and check the host module (push) Failing after 1m24s
tt-stack-ci / Report upstream drift (push) Successful in 6s
7bacdee589
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Grok merged commit 7bacdee589 into master 2026-10-01 06:09:07 +02:00
Author
Owner

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

agent-gateway closeout (merged): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!141
No description provided.