mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3794] [Engine] Feature request: MTP drafts in the pipelined batch-slot path (layer split, experts 100% resident, 3-GPU sm_70) #1599
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1599
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @llollaalloll on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3794
Area
[Engine] (speed, kernels, models, the server and API)
What do you want to do?
Feature request: MTP drafts in the pipelined batch-slot path (
--batch-groups), on layer split, for a rig where every expert is already resident in VRAM.The idea (continuing #2235 and #2973, both closed in the 0.2.0-beta tracker reset — closed, not rejected) is to give the pipelined groups per-slot MTP drafts, so a multi-GPU layer split can pipeline and draft at the same time. PR #2985 (
STRATA_PIPED_MTP, opt-in) was the same idea but was closed unmerged — is this still on your roadmap, and is that branch's approach still the shape you'd want?Why this matters on our rig — every expert is resident (100%), so the current batch-MTP calculus does not apply:
Upstream's own measurement (commit
3ff62ec1) is that batch MTP pays only when the experts do not fit (it measured -21.9% with all experts in VRAM on 2x R9700). We measure the same wall on our box, and our box cannot buy the upside: the experts always fit (we keep the quant small enough), so serial--batch-mtp --batch-groups 1is a pure loss, and the pipelined default has no drafts. Result: on batch slots we permanently give up MTP, and single requests slow down when the slots are shared (measured: solo 5.9 s -> 9.5 s with 2 concurrent).Rig (3 cards, mixed Volta/Turing, sm_70 layer split, experts 100% resident):
"gpu": [2,0,1],"layer_split": "20,28""parallel": 6(--batch 6, 3 pipelined groups of 2 slots)--spec 4 --spec-min-p 0.5--kv int8 --kv-resident 32768, ctx 262,144--pool-workers 18Measured on this box (A-B-A, same binary, only flags/env changed per arm):
STRATA_BATCH_MTP=1,--batch-groups 1): -26% vs pipelined default -> rolled back; runs pipelined-only since.STRATA_BATCH_MTP=0/STRATA_BATCH_MTP_SERIAL=0verified in the live process env (running config above).What do you do today instead?
We stay on the pipelined default and give up drafts on batch slots (owner policy: no serial batch MTP, no patching upstream source ourselves), and we watch upstream releases for pipelined MTP. We would test any opt-in build on this rig (it is not idle hardware — 24/7 production) and report numbers back.
Not tested: no same-day comparison against 0.2.x on this box (prod stays on 0.1.41 per our upgrade gate); AMD/HIP;
--pipeline-windows;STRATA_SPEC_LANES(havok2-htwo's fork numbers in #2235 are on 0.1.44.1 + their own patches, not upstream code).@llollaalloll commented on GitHub (Oct 25, 2026):
We tested PR #2985 (STRATA_PIPED_MTP) on the rig behind this request and can confirm the pipelined groups do draft, and it is a real win for the cases that matter to us — first measured numbers on Volta, offered as a data point for whatever you decide on #3794.
Rig: 2× Tesla V100-PCIE-32GB (sm_70) + 1× RTX 2080Ti (sm_75), layer split
20,28, experts 24,576/24,576 (100% resident),--kv int8 --kv-resident 32768, ctx 262,144, engine v0.1.41 + the PR's branch cherry-picked clean (no conflicts on 0.1.41).Setup:
--batch 3 --batch-groups 3(one slot per group, 3 stages) +STRATA_PIPED_MTP=1 STRATA_BATCH_MTP=1, vs prod baseline--batch 6 --batch-groups 3(no drafts in pipelined slots). Same harness as our earlier #2985 comment: 10 single-stream cases (temp 0), dual-stream and 4-stream aggregate, engine-sidedrafts_accepted/offeredread from/metricsafter each case.Evidence drafts really run in the pipelined groups (baseline in this shape is always 0/0):
drafts_accepted/offered 596/777(76.7%),286/415,10/12across bench cases.Results (tok/s, decode):
Output identity: identical sha for the deterministic cases; the longer reasoning cases diverge (different decode path with drafts) but answer correctly — tool-call JSON arguments come out exact, Thai prose intact.
The honest cost: with the PR's one-slot-per-group constraint we had to drop 6 slots to 3, so a 4-request burst loses ~7% aggregate. On our own traffic profile (1-2 concurrent agent sessions, tool-call heavy) the trade is clearly worth it — tool-call +34% and dual-stream +24% are exactly our workload, and we have switched our production box to this build today.
Two notes for whoever picks this up:
generate.cppmoved thepumplambda and thePrefillAPI, so a real port is needed. We stayed on 0.1.41 to isolate the feature.Happy to run any variant you want to try on sm_70 and send back per-case JSON, same as we did in #73 and #2985.
@wannagoxuf commented on GitHub (Oct 25, 2026):
We ported PR #2985 to a 0.1.49.2 base and it works: +30% aggregate on 4 concurrent streams — and two gotchas make the feature silently do nothing
We are the 4×RTX 4090 / 4-GPU-split / experts-100%-resident rig this request describes (engine 0.1.49.2,
--layer-split 13,27,38,--batch 4,--spec 4 --spec-min-p 0.25, experts 100% resident,--kv k8v4 --kv-resident 524288). We ported PR #2985 (STRATA_PIPED_MTP) onto our base and measured it.Result: 365.9 -> 477.8 tok/s aggregate on 4 concurrent streams (+30.5%), and every slot still decodes exactly the tokens it decodes alone. Upstream PR #4121 carries the port (against current
main; the port was small — 2 conflict hunks inbatch_groups.hppand 6 ingenerate.cpp, all "keep both features", andsrc/core/verify.cppmerged clean).Metric, because it matters: we measured a fixed 30 s window (four streams, the tokens that arrived in it) rather than "generate N tokens". With the latter, the requests stop at different times, so the batch window's shape changes and the same configuration measures 270 or 343 rows/s — a 27% swing that has nothing to do with the feature. With the fixed window the spread is ±0.4%.
STRATA_PIPED_MTP=1The engine's own batch line agrees: 381 rows/s at 1.00 rows/step without drafts, 496 rows/s at 1.72 rows/step with them (6016 of 8320 proposals kept, 72%).
N=2(2.29 rows/step, 66% kept) andN=3(2.70 rows/step, 58% kept) measured slightly belowN=1, soN=1is the sweet spot on our split.This is the opposite of the
-21.9%that3ff62ec1measured for batch MTP with all experts in VRAM. The reason we think the pipelined groups win where the serial windows lose: with the groups, all four cards stay busy; the serial-window batch leaves three of four waiting for the hand-off, which is what the "30-40% of the four streams' total" in #2985's summary measured.VRAM is much cheaper than the warning text says. On our split the four slot drafters cost 50 MiB of private K/V state and buffers each (the solo drafter's weights are shared), not "about 0.9 GB per slot" — 200 MiB on the last stage's card, and the expert cache stayed 100% resident.
Two gotchas that make the feature silently do nothing (worth fixing in the PR)
1.
--batch-groupsgiven explicitly disables the feature. Inbatch_groups::resolvethe two new lines sit insideif (!in.set && r.would_be > 1), andin.setis true whenever--batch-groupswas given — a number orauto:The drafts are off and the message does not say why.
--batch-groups autois the documented way to configure a layer split, and the PR's own unit test never setsin.set, so it did not catch this. Moving the two assignments out of that block fixes it (PR #4121 does, with three unit tests). Not passing--batch-groupsat all works too: the 0.1.41 default for a layer split with--batch >= 2is alreadyauto= one group per stage.2.
--remote-expert-optblocks the feature even where it does nothing. The gate checks the flag:but the object it guards only exists with a helper expert cache:
Without
--expert-cache-device1..3the flag is inert (everyremote_opt-guarded branch takes theelsepath) and the gate still refuses--batch-mtp. Checking the object instead of the flag would unblock the feature for anyone who has the flag on for no reason. We left this one to the maintainer in #4121.Exactness
tools/batch_test.py, 4 slots on a 4-GPU split, 300 tokens,STRATA_IQ_MT_MIN=1 --adapt-swaps 0 --pcie-frac 0: every slot decodes exactly the tokens it decodes alone, with the feature on and with it off.Not done
We did not relax the one-slot-per-group rule. The operator's suggestion in this thread — two slots per group with paired draft rows, or drafts only on the first slot of each group — is the natural next step, since it lifts the "4 slots need 4 groups" ceiling and would remove the burst regression at higher concurrency. If anyone has a rig to try that on, we would very much like to see the numbers.
Happy to rebase #4121 onto
mainwhenever it moves, and to report more cases (tool-call heavy traffic, 2 streams, long contexts) the way we did in #73 and #2985.@wannagoxuf commented on GitHub (Oct 25, 2026):
Update from our rig (4x RTX 4090, layer split 13,27,38,
--batch 4): the draft PR is now extended to more than one slot per group — a group's window carries each of its slots' rows, and every slot's proposals are judged, committed and drafted on their own (the last stage's final residuals are copied per slot's block; the chain catches up on its own rows only, with its own picks and positions).Measured over four concurrent streams, fixed 30 s windows, three interleaved rounds (the arms' order rotated per round — the arm-to-arm noise is ~3%, so single rounds are not enough to compare):
The two-slots-per-group shape does amortise as intended (1.72 -> 3.42 rows per window), but it is slower here: two groups occupy two of the four stages, so half the cards idle. With as many groups as stages and two slots each (eight slots) it would have both, but that costs the slot sessions' VRAM — on our rig eight slots would leave the expert cache without room. So on four cards, the number of pipeline streams is worth more than the extra rows per window.
Two proposals per slot per window is the best of the three: more rows amortise the weights better, but the proposals' acceptance falls as the window grows (72% at N=1, 64% at N=2, 58% at N=3), so the extra rows start to cost more than they save.
Correctness: with
tools/batch_test.pyin its strict protocol (STRATA_IQ_MT_MIN=1 --adapt-swaps 0 --pcie-frac 0), every slot's tokens are identical to the same request run alone — for one slot per group and for two, and for N=1, 2 and 3.@wannagoxuf commented on GitHub (Oct 26, 2026):
Further measurements on the same rig (4x RTX 4090, layer split 13,27,38, fixed 30 s windows, two interleaved rounds), now that the multi-slot shape is in the PR:
--kv-resident 262144)--kv-resident 131072)With eight slots the requests do spread over the four groups (the busy slots are 0, 2, 4, 6 and the engine reports 2.16 rows per step, i.e. one live slot per group). The gap at four concurrent is not the spreading but the VRAM: eight slot sessions take 10.18 GiB on CUDA0, so the expert cache shrinks from 9.41 GiB to 8.01 GiB (-15%) and the decode fetches more experts over PCIe — batch 4 with
--kv-resident 262144(the cache unchanged) measures 496 tok/s, and batch 8 with--kv-resident 131072(the cache back to 9.41 GiB) measures 514.One fix in the server came out of it: for groups of several slots,
pick_slotused to sort only by "fill a hole below a busy slot of the same group", so a hole pulled a new request back into a group that already had one (another stage idle). It now takes the group with the fewest busy slots first, then the hole, then the usual order.@noahark commented on GitHub (Oct 26, 2026):
Same shape of rig as yours (three sm_70 cards, every expert resident), so here is a measurement of the workaround your issue points at: the documented "keep the drafts" path for batch slots,
--batch-groups 1+--batch-mtp.Setup
2x Tesla PG500-216 32 GB + 1x Tesla V100-PCIE-32GB, PCIe 3.0 x16 each, no NVLink, 2x Xeon E5-2696 v3, 128 GB DDR3L-1600, Windows. Qwen3.8-Flash-Next UD-IQ4_XS, 262144 context,
--kv int8 --kv-resident 32768,--spec 4+ MTP,--layer-split 16,32(16/16/16),STRATA_STAGE_TRIM=1. 100% expert residency on all three cards (8192/8192 each, 24576 total) — same premise as yours: the experts always fit, so upstream's "batch MTP pays only when they do not fit" calculus does not apply. Engine 0.1.48.Method
Two clients posting at the same instant from threads, different nonces (no prefix reuse), ~4.6K-token prompt + 256 tokens each,
temperature 0, 3 rounds per arm, one full restart per arm. Reported: the engine's own per-requestpredicted_per_second, aggregate generated tokens / wall time of the pair, and the wall time at which the first and the last request finished.Results
--pipeline-windows 2--batch-groups 1+--batch-mtpThree things fell out of it:
--batch-mtppath is 3.6% worse in aggregate than the pipelined default here (37.1 against 38.5), and 5.8% worse per request. So on a 3-stage rig where the experts are resident, serial windows plus per-slot drafts do not claw back what dropping the pipeline costs. That is consistent with upstream's -21.9% datapoint (2x R9700, all experts in VRAM) in sign, just smaller in size.What this implies for the feature request
The thing worth having on this rig is not per-slot drafts in the pipelined path — it is the pipeline itself, and it already works on three stages today (see the three-stage comment in #859). Even if #2985's
STRATA_PIPED_MTPwere merged, a 3-stage V100 would be comparing it against a single slot that is already at 112 tok/s per request; two slots would have to more than double their per-request rate to break even, which the 2-group default demonstrably does not do.What would actually help, if you are taking requests: making the prompt half of the window cheaper, since that is where the 4K prefill cost of enabling the windows shows up (-10% in my numbers).
Limits
--batch-mtpstarted without error and the engine reported the slot drafters, but I did not verify from the log that all 2 slots actually drafted every window — the throughput numbers are the only evidence I have that it ran as configured.@wannagoxuf commented on GitHub (Oct 26, 2026):
Thanks to both of you — and credit to @JacobSussan for #2985, which #4121 ports (you two tested it on sm_70 before any of us did).
Two measurements from this week answer the questions in this thread directly.
@llollaalloll: your note 2 is implemented — the one-slot-per-group rule is gone
#4121 now lets a group's window carry several slots: the group's rows are split per slot, and each slot's proposals are judged, committed and drafted on their own (its own accepted prefix, its own picks and positions; the last stage's final residuals are copied per slot's block, and the chain catches up on that slot's rows only). With one slot per group it is exactly the original behaviour.
Measured on 4x RTX 4090 (layer split
13,27,38, experts 100% resident,--batch 4/--batch 8, fixed 30 s windows, two interleaved rounds):--batch 4), no drafts--batch 4),STRATA_PIPED_MTP=2--batch 8,--kv-resident 131072)The burst regression you measured disappears by construction: the ceiling is no longer one slot per stage, so a three-stage rig can keep six slots and serve a four-request burst instead of dropping to three.
What the extra slots do not do is make a request faster — the aggregate is machine-bound, so two slots per group split it: 501 tok/s over eight requests is 63 tok/s each, against 489 tok/s over four requests at 122 tok/s each. The two-slot shape is worth having when there are more concurrent requests than stages; on a three-stage rig that trade is decided by whether you need more requests than stages, and we have not measured that shape on three stages — we would rather have your sm_70 numbers than guess.
One trap if you try the multi-slot shape on the original #2985: the verifier's window was sized from
--specalone, so a group of several slots overflows it and the whole pipeline dies withverify: batch rows out of range. #4121 sizes it for a group's rows.@noahark: we ran your two layouts on a four-stage rig, and the gap grows with the stage count
Your comparison (
--batch-groups 1+--batch-mtpagainst the pipelined default) on 2x V100 + 1x V100-PCIE: 37.1 against 38.5 tok/s aggregate, per request 48.6 against 51.6. Same two layouts on 4x RTX 4090 (layer split13,27,38, experts 100% resident, clients posting at the same instant, fixed 30 s windows), plus the pipelined path with the drafts this PR adds:--batch-mtp(your layout)STRATA_PIPED_MTP=2(this PR)Two things fall out of it.
1. The serial path's disadvantage grows with the stage count. At four concurrent it is 212 tok/s against the pipelined default's 364 — a 42% loss, which reproduces the 30-40% that #2985's summary reports for four stages (we had not measured that layout ourselves before this week). At three stages you measured 3.6%; at four it is 42%.
2. At two concurrent the serial path does not merely lose, it starves. The first client got 10 tokens in 30 s (first token at 24 s) and the second never got one. The engine's own log says why — the prompt read is walked serially between the stages, and with a slot to spare the decode has nothing to hide it behind:
Eight windows in the whole 30 s, where the pipelined path on the same rig ran thousands. The pipeline is what makes a long read hideable, and that is the same property the drafts then exploit (+45% over the pipelined default at two clients, +32% at four).
So your conclusion — on a three-stage rig the pipeline itself is what is worth having, and the serial path with per-slot drafts does not claw back what dropping the pipeline costs — is what we see too; the drafts simply belong on the pipelined path, which is the arm you were missing and what #4121 adds.
A measurement caveat, since both of you measure with fixed windows
A fixed 30 s window counts the first-token ramp: with four streams admitted together the first token arrives at 1.3-5.2 s each, because the prompt reads are serial — a read costs 1.2 s on an idle engine but 4.5 s when the expert cache is occupied (28-63 GB of expert reads instead of 8-11 GB). The window number therefore reads 9-27% below the steady rate; one of our runs reads 512 tok/s in the window and 634 tok/s steady. The arm-to-arm comparisons hold (every arm has the same shape), but the absolute numbers in our earlier comments here are low, and a fixed-window "per request" rate is a steady rate that excludes the ramp.
If you compare against our numbers, compare window to window, and check your own first-token latency.
@noahark commented on GitHub (Oct 26, 2026):
Thanks for the invitation — here are the three-stage sm_70 numbers for the multi-slot shape, plus the one-slot-per-group comparison on the same engine.
Build: #4121 at
9241a24compiled clean on Windows / CUDA 12.4 / sm_70 (no source changes; the engine reports 0.1.51 + the port). Same rig as my earlier comment: 2x PG500-216 32 GB + 1x V100-PCIE-32GB, PCIe 3.0 x16, 2x E5-2696 v3, 128 GB DDR3L-1600, Windows. Layer split 16/16/16, experts 100% resident on all three cards in every arm (the 6-slot arms included — the numbers below are not cache eviction), ctx 262144,--kv int8 --kv-resident 32768,--spec 4,--spec-min-p 0.5,STRATA_STAGE_TRIM=1.Method: your fixed 30 s window, window-to-window as you suggested. N streams posted at the same instant, distinct nonces (no prefix reuse), 4,411-4,445-token prompts, temperature 0; the model thinks first, and thinking tokens are decode tokens, so they count. One discarded warm round per point, a fresh server per arm, 3 rounds per point (2 for the 4-concurrent burst points). Rates are the engine's own batch summary over the window (its rows are committed tokens — we cross-checked 1:1 against the per-slot generated counters on a run where both were readable).
--batch 3), no draftsSTRATA_PIPED_MTP=2--batch 6), no draftsSTRATA_PIPED_MTP=2MTP acceptance 60-67 % across the draft arms; round-to-round spread ±2 %. Per stream, the one-slot shape goes 33.7 -> 40.8 tok/s with the drafts on.
The multi-slot shape itself is what loses here, and it is the prompt reads. TTFT is a perfect ladder — one stream's first token every +3.9 s: 3.7 / 7.7 / 11.7 / 15.7 / 19.7 / 23.8 s for streams 1-6. Each 4.4k-token read costs ~3.7 s (~1,150-1,200 t/s) and the reads stay serial between the stages, so at six streams admission eats ~24 s of the 30 s window. That is the gap between 59 and what the same six streams decode at once; on this DDR3L rig the read tax is the shape's cost, not VRAM and not the experts.
The burst case answers your question the other way round on three stages: a four-request burst through six slots (98.1, all four admitted) is still ~20 % below the three-slot shape serving three with one queued (122.3) — the opposite of the by-construction expectation, again because the serial admission dominates. So on this rig: one slot per group +
STRATA_PIPED_MTP=2is the shape to run, and we found no concurrency where the two-slot shape pays — the extra slots only make sense on hardware where the prompt read hides (your four 4090s amortize a read in 1.2-4.5 s; a 4.4k read costs us 3.7 s and there are three stages, not four, to hide it behind).The feature itself is a clean win on sm_70 regardless of shape debates: +21 % aggregate at N=2 with ~63 % acceptance, and correctness is intact — a temperature-0 probe (count 1..40) is byte-identical across the no-drafts baseline and both draft shapes.
@Niko1221 commented on GitHub (Oct 27, 2026):
Thank you. #4121 is in 0.2.7 as an opt-in: STRATA_PIPED_MTP=1 with --batch-mtp, with changes found in review (the group count was printed as the slot count; with the variable unset the engine is exactly as before). On two RTX A6000 cards with a batch of slots, two streams gained 15.4% (five of five pairs), four streams 4.7%, one stream nothing; the merged build gave +12.2% and +0.2% in three pairs. Every slot decodes exactly the tokens it decodes alone. We could not repeat your four-card result (+39% on four RTX 4090). On two NVIDIA cards the plain batch drafting is 15 to 18% slower than the pipelined way even without your switch; the owner is deciding whether that becomes the default. Could you try 0.2.7 on your four cards and tell us your numbers?
Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7
@Adamyno commented on GitHub (Oct 27, 2026):
STRATA_PIPED_MTP=1on an sm_75 3-card split: +15% aggregate with two clients, TTFT unchangedTested the shipped opt-in (0.2.7, engine 0.1.52) on the rig this thread is about: a 3× RTX 2080 Ti layer split serving two concurrent clients.
Hardware: 3× RTX 2080 Ti 22 GB (210/167/200 W), i9-7980XE, 125.5 GiB DDR4-3600, kernel 7.0.0-38, driver 580.178.04, CUDA 13.0.
layer_split 16,32, Qwen3.8-Flash-Next UD-Q4_K_XL, 262,144 ctx,--kv int8 --spec 3 --spec-min-p 0.54 --mtp mtp/rt --batch 2,STRATA_NO_LARGEPAGES=1 STRATA_BF16_TC=1.Arms (same binary, environment + one flag):
--batch-groups auto→ 2 groups of 1 slot)STRATA_PIPED_MTP=1+--batch-mtpEngine start confirms B takes the path:
STRATA_PIPED_MTP: 2 pipelined groups of 1 slot draft up to 1 MTP proposal per slot each windowand--batch-mtp: 2 slot drafters on CUDA2 (312 MiB of private K/V state and buffers each, sharing the solo drafter's weights).Measured with
tools/strata_bench.py --clients 2(three bursts of two simultaneous requests):STRATA_PIPED_MTP=1)No errors in either arm, and slot count stayed 2.
Reading it: on this rig the pipelined groups were already keeping both cards busy but emitting one token per slot per window; adding the per-slot drafts turns that into ~1.15 tokens per slot per window without breaking the pipeline — so the aggregate rises and the per-request latency drops, while the single-stream and prompt paths stay where they were (the small prefill drop is at the edge of this box's noise).
This also explains why the earlier
--batch-mtpresult on sm_75 was negative (my note in #2235 / #2738: −22% with--batch-groups 1): that arm serialised the slots and lost the pipeline. The pipelined version keeps both.Caveats: three bursts per arm (n=3), one model/pack/context; the chat-decode ranges are wide enough that I would not claim the −4% as real. Happy to repeat with more bursts or a 32K prompt if you want a tighter number.
@orochifj commented on GitHub (Nov 1, 2026):
0.2.9: the automatic parallel settings switch
STRATA_PIPED_MTPoffAdding this here because this thread is where people find the switch.
Environment: Strata v0.2.9 (
c62d5e3a, engine 0.1.55) built from source for sm_86 with the repo Dockerfile, no changes. Linux 6.8, NVIDIA 610.57.04. 2x RTX 3090 24 GB at 250 W, layer split auto (24 / 24). Swift-1.5 Qwen3.8-Flash-Next IQ4_XS,--max-context 524288 --rope-scaling yarn --rope-scale 2 --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5,"parallel": 4(2 pipelined groups of 2 slots). Expert cache 5,224 + 4,896 slots, so not every expert is resident.Reproduce: config
"parallel": 4, args--batch-mtp, envSTRATA_PIPED_MTP=1, started throughserve/server.py.Expected: the pipelined groups draft (the
STRATA_PIPED_MTP: 2 pipelined groups of 2 slots draft up to 1 MTP proposal per slot each windowline).Actual: the server sets the nine settings that are new in 0.2.9 (
PARALLEL_STACK_ENV),STRATA_BATCH_SELF_COMMIT=1among them, and the engine printsthen runs the groups without drafts. With
"STRATA_BATCH_SELF_COMMIT": "0"in the config'senvthe drafts run.Reproduction status: reproduced locally.
Measurements (same unmodified build, 250 W; N requests at once, each a different ~1.5K-token prompt, 512 output tokens, greedy, thinking off; aggregate = completion tokens / wall time; one run per cell; a 5-question answer check passed 5/5 in every arm):
--batch-mtp,STRATA_PIPED_MTP=1(SELF_COMMIT still 1: drafts off)STRATA_BATCH_SELF_COMMIT=0,STRATA_PIPED_MTP=1STRATA_PIPED_MTP=3STRATA_PIPED_MTP=3+STRATA_PIPED_CONCURRENT=1Limit of this harness: the warm-up request used request 0's prompt, so in some runs one request started from a cached prompt. With a per-run salt at the start of every prompt (every prompt read cold), the last arm measured 96 / 126 / 146 and 93 / 126 / 146 tok/s in two runs; the other arms were not repeated that way.
So on a split whose experts do not all fit, the piped drafts still pay at 4 streams (+14 %, +24 %, +39 % over the shipped stack in the rows above). A suggestion: leave
STRATA_BATCH_SELF_COMMITout of the automatic settings whenSTRATA_PIPED_MTPis set, or say in the parallel-stack note that it has to be 0 for the piped drafts.@cjmckenna commented on GitHub (Nov 1, 2026):
Second box, same finding. Here is what each of 0.2.9's new automatic settings does on our split, measured one arm at a time.
Setup: 2x RTX 3090, layer split 28, Qwen3.8-Flash-Next IQ3_S. Strata v0.2.9 (
c62d5e3a, engine 0.1.55) plus two small local patches (a CPU-share gate and a client tag on/metrics; neither touches the batch window).--batch 2 --batch-mtp --batch-groups auto(2 pipelined groups of 1 slot),STRATA_PIPED_MTP=2,--short-read 64,STRATA_CKPT_POOL=1. Expert cache 10,006 + 8,756 slots, so not every expert is resident. Started throughserve/server.py.Method: idle box, one restart per arm, seeded requests. "Two conversations" means two ~90K-token conversations decoding at the same time, aggregate tok/s over the wall clock, one run per arm. A repeat arm in an earlier sweep on this box moved ±3%. Solo decode is a least-squares fit over 6 runs per arm at 16K, 97K and 160K, with draft acceptance as a covariate. Cold reads are single prompts of 30K, 97K and 170K.
STRATA_BATCH_SELF_COMMIT=0CKPT_POOLkept)What it shows on this box:
STRATA_BATCH_SELF_COMMIT=1explains the whole loss. Turning that one switch off brings two conversations back to the 0.2.7 level. The other seven new settings neither help nor hurt at--batch 2, within one run's noise.We run the "all eight =0" arm in production now. +1 to orochifj's suggestion: leave
STRATA_BATCH_SELF_COMMITout of the automatic settings whenSTRATA_PIPED_MTPis set. The engine already knows the two don't combine; today the user's explicit choice loses to a default with only a warning in the log.Not measured: more than one two-conversation run per arm; 0.2.9 without
STRATA_PIPED_MTPagainst 0.2.9 with SELF_COMMIT; more than two slots; answer quality beyond a tool-call smoke test.Developed with an AI coding assistant; every number above was measured on the machine described.
--adapt-async 1beside slots) #3576