c135: MTP-at-batch stack is the best arm (B8/32k -4.6%, B4/32k -8.2%; gates clean) #140
No reviewers
Labels
No labels
cards:go
hermes-approved
human-approved
human-approved
iter
0
iter
1
iter
2
iter
3
prio:high
prio:low
prio:med
priority/high
state
blocked
state
doing
state
done
state
review
state
todo
x280
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!140
Loading…
Reference in a new issue
No description provided.
Delete branch "serving-throughput"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This merges the c135 MTP-at-batch bundle (LEDGER
R-2026-10-01-mtp-stack) and makes it the best arm:prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack.Members: MTP batch K=3, the per-row GDN state slot, overlap/async/early reseed, the NKV=2 SDPA spec-verify fold (tt-metal 0034 via overlay
pk3r+0033+0034), and buckets 1,2,4,8.Results (TP=2, G2 bfp4, K8/V4 KV, 1024 tokens out). The same-session best-arm band is ≤ 0.14%:
Gates on the exact combination:
Attribution is pending. Deploying to production is the owner's call.
The record is
bench/runs/perf-loop-c135-mtp-stack-verdict-20261001T0045Z.jsonl. The PR also carries the c133 verdict (multi-token GDN inert) and the queue and skill fixes.🤖 Generated with Claude Code
Before this, c115's -mtp-tm phase split would only have landed in a server log: ttx had no parser for it, and the lines held 64-step window means with no per-step spread, no clock and no row counts. Windows could also span two bench cells. Stops inside a draft block were covered only for max_tokens. No on-card MTP run had ended on EOS, and the host tokens/row-step counter was suspected of counting trimmed post-EOS tokens. - PhaseTimer lines now carry t=, flush=periodic|idle, the window's rows/emitted/accepted/drafted and per-step samples_ms, every 16 steps and when the batch drains, so a window never spans two bursts. Stats lines carry t= and burst_end=. Existing banner and "stats: steps=" prefixes are unchanged. - ttxlib/mtplog.py assigns lines to cells by the container clock (ttx measures the host offset) and writes mtp_batch.per_ctx.<ctx>.{timing.<bw>: per-phase mean/p50/p90 ms per step + tokens/row-step, stats: host counter delta} into every sweep32k record of a QWEN36_MTP_BATCH=1 arm. Plain arms are untouched, and a parse error never fails a record. - SchedulerSim now models upstream check_stop and trim, min_tokens, ignore_eos, stop_token_ids and stop sequences with a delayed abort, plus slot reuse. TestStopInBlock covers EOS at the first, middle and bonus token of a block, max_tokens mid-block, and a random mix. The must-fail rungs are no-trim and an n (not n-1) advance. No bug was found in the scheduler or accept path. The counter bias is confirmed and exact: host emitted = delivered + trimmed, so it over-counts by <= K per finished request. It is recorded as a caveat. - equiv records equiv.eos (finish_reason counts), and --require-eos fails a run with no EOS stop. The to-EOS c115 rung is documented in MTP-BATCH.md §8a; the queue file is left for the owner to extend. Tests: tools/ttx/tests + tests/test_mtp_batch_host.py, 298 passed (pytest). ttx lint is OK on the -mtp, -mtp-tm and -mtp-plain arms. No hardware run and no speed number. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>dee7d32) into k8v4-mtp c102fc60d4Believed: the verify's T per-group SDPA calls were structural (one cur_pos per call). The verify q rows are already candidate-major (u = j*Bw + b), which is 0034's fold layout, so one call with a host-built candidate-major cur_pos (v_posf, a persistent v_* trace input) replaces the T calls when all groups share the page table. The flag maps to TT_SDPA_DEC_SPEC_FOLD at import (the op reads it once) and logs 'QWEN36_SDPA_SPEC_FOLD engaged mode=<m>'. Not measured on the cards: arms -dn-mtp-slot-fold{,-plain,-mf,-tm} (k2-mr-pk3q + pk3q+0033+0034 overlay) and bench/queues/c130-sdpa-fold.txt (PLAIN_ONLY capture, fold equiv, must-fail, timing, sweep32k 4k/32k) are queued work. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.