mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2010] 0.1.43 on Linux CUDA: STRATA_ADAPT_OVERLAP costs 21% decode (single GPU, hybrid CPU, native expert pack) #801
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#801
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 @Krypto-Whitehat on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2010
Summary
v0.1.43 makes
STRATA_ADAPT_OVERLAPdefault on for Linux CUDA (commit7c035d72, where itwas made opt-in on Windows after measuring -2.6% / -2.1% on an RTX 5070 with the canonical Q2_0
pack). On my rig the overlap costs 21% decode: 106.6 tok/s with
STRATA_ADAPT_OVERLAP=0against 84.6 tok/s with the default, measured at the same context with the same config and an
engine built minutes apart from the same tree.
The control run on v0.1.42 at the same time and with the same config gave 98.1 tok/s, so the
v0.1.43 default is also 13.8% below the previous release on this machine.
Environment
7695859a(v0.1.43), nvcc 13.4.92,-DCUDAToolkit_ROOT=/usr/local/cuda, arch 12061b3fb5d(v0.1.42), same toolchainConfig, identical in all three runs:
Reproduction
Three engine swaps, identical config, identical prompt (~182,779 tokens), 5 generations of 256
tokens each. The numbers are the server's own log line
(
prompt N tokens = ... M generated in T ms (X tok/s)), medians:STRATA_ADAPT_OVERLAP61b3fb5d)7695859a)7695859a)0The separation is clean: the minimum of the fixed run (89.1) is above the maximum of the
default run (87.9), so this is not measurement noise.
The same ordering held earlier the same evening on a second 0.1.42 run (102.7 tok/s).
What was ruled out
nvidia-smi -q -d PERFORMANCEreportsSW Power Cap,HW Slowdown,HW Thermal SlowdownandSW Thermal SlowdownallNot Active; the session'sSW Thermal Slowdowncounter is 1.57 s in total. NoHW Slowdown, no clock capping.--pcie-fracis unchanged. Both builds logPCIe probe: 28.7 GB/s host->device -> pcie_frac 0.55 (default 0.55).checkpoint), and draft acceptance is 69-78 % in all three runs.
So the only variable between the fast and slow 0.1.43 runs is the overlap switch.
Suspected area
STRATA_ADAPT_OVERLAP, introduced for v0.1.43: "adaptive-tier copies overlap on CUDA"(release notes) /
7c035d72"STRATA_ADAPT_OVERLAP: opt-in on Windows (RTX 5070, Q2_0:story -2.6%, code -2.1% with it, 5 pairs; IQ3_XXS neutral); Linux CUDA keeps it on".
Two differences from the measurement the flag was tuned on, both of which plausibly make the
overlap much more expensive here:
IQ3_XXS pack with
--expert-cache-per-layer, so the adaptive tier swaps in and out of aper-layer slot arena (10,320 slots, 169 per layer) rather than a shared ring.
pool is barrier-synchronised per layer and 12 worker threads sit at 100% of a core each
(measured per-thread from
/proc/<pid>/task/*/stat: 13 threads saturated, all others ~1%).The tier's copy overlapping therefore contends directly with pool threads that are already
the critical path.
Workaround (tested, works)
Put this in the config's
envblock (strata-iq3_xxs.json), next toSTRATA_PF_FUSED:strata-iq3_xxs.jsonis git-ignored (/strata-*.json), so the override survives updates andengine rebuilds. With it the same build measures 106.6 tok/s, i.e. 8.7% above v0.1.42.
Suggested upstream fix
measured as a loss on one CUDA card and is currently only disabled on Windows.
is the configuration the default most affects, and it is not the one the flag was tuned on.
strata serve: adaptive overlap (STRATA_ADAPT_OVERLAP=0 turns it off): ...is printed onlywhile the overlap is actually active (the
if (adapt_overlap())block insrc/program/generate.cpp), and nothing at all is logged when it is off. So withSTRATA_ADAPT_OVERLAP=0in the config there is no way to see from the log that the overlapwas switched off. One line naming the state either way would do.
Impact
A 13.8% decode regression on the previous release's speed, silently introduced by a default
that is only reported as a feature in the release notes. On a hybrid-CPU laptop build it is
the single largest speed factor I measured - larger than
--pool-workers,--kv-grow,--vram-reserve-miband--pcie-fraccombined.Reporter
Krypto-Whitehat- RTX 5090 Laptop (24 GiB), Core Ultra 9 275HX, 64 GiB, WSL2 Ubuntu 24.04,engine built from source (nvcc 13.4.92, arch 120). Qwen3.8-Flash-Next IQ3_XXS, 262,144-token
context. Earlier report from this rig: #954 (fused/ring hang, resolved in v0.1.40.1), plus the
conversation-cache parking admission note.
@gravitomagnetic commented on GitHub (Oct 12, 2026):
RTX 5090 desktop (AM5, full AVX-512), IQ3_S, 1M-agent config: the overlap default pays here — +1.2% instruct / +2.4% greedy decode, 3 matched pairs.
@Niko1221 — adding a second Linux CUDA data point to #2010 since the default's regime is the open question. Same machine/config as our interleaved reports (PR #1592 lineage): RTX 5090 32 GB, Ryzen 9 7950X (16c/32t, AVX-512), 122 GB RAM, driver 595.99.02, CUDA 13.4 kit source builds, IQ3_S Flash-Next pack,
--expert-cache 6500(auto-fills to 8,338–8,339 slots, ~33% of experts resident)--prefill auto --spec 4 --spec-min-p 0.5 --mtp --max-context 1048576 --rope-scaling yarn --rope-scale 4 --kv int8 --kv-resident 32768 --vision --batch 2,STRATA_NO_LARGEPAGES=1.Protocol: A B A B A B (0.1.42 / 0.1.43), full swap per leg with the serve/ wrapper checked out at the matching tag, version gate on the live binary, 30 s settle. Decode rates below are the engine's own per-request
generated in N ms (tok/s)lines for the 256-token probes (wall clocks round to the same tick at 1.4–2.4 s, so we report the log rates). Gates: needle recall 6/6, greedy count-to-300 zero adjacent repeats 6/6 — answers clean on both sides, as the release notes promise for CUDA.Every 0.1.43 leg beat every 0.1.42 leg in both decode rows — the separation is clean, not a median artifact. So
STRATA_ADAPT_OVERLAPon by default is right for this box: desktop 5090 + desktop CPU with AVX-512 + native IQ3_S pack +--batch 2+ 47 GiB pinned arena.The regime contrast with the report above is worth naming for the docs: this box has no PCIe pressure in steady state (91–94% decode expert hit rate, ~4–5% of routed experts streamed), while the 5090-laptop case runs x8 at 28.7 GB/s probe with 10,320 slots and k8v4 — overlap of copies that dominate the window's critical path can starve the next window on that machine. If the discriminator is "streamed bytes per window vs the window's compute time," a residency/PCIe-fraction-aware default might cover both regimes.
#1712 note (the pinned step-record/token-id uploads): on this box it's a small consistent cost, not a win — all 9 gprobe pairs positive (+1.2 to +3.5 ms on ~800–930 ms reads, +0.1–0.4%). The short-prompt staged walk here is expert-bytes-bound, so the saved pageable-copy stall is smaller than the added memcpy+event-sync per chunk. No objection to keeping it default (the gfx1100 stale-read fix is worth more than 3 ms), but if there's a per-platform gate in mind, sm_120 + native IQ3_S + high hit rate is a measured "leave it pageable" candidate.
Raw data: six per-leg JSONs (classic probes) + six gprobe result JSONs, interleaved protocol, on request.
@Krypto-Whitehat commented on GitHub (Oct 12, 2026):
Note on the commit floating in this thread, from the reporter's side.
1f12da8is not onmain, and the reviewed path for this change is PR #2011. That commit carries exactly this PR's patch (docs/DETAILS.md+8/-4,src/program/generate.cpp+22/-17, the same two files and the same line counts as PR #2011), but no branch points at it andmainis still at7695859a. Nothing has shipped from it.Two properties of that commit are worth not carrying into
main:The co-author trailer is wrong. The message ends with
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>and aClaude-Session:URL. The commit in PR #2011 has neither line; both were added when that commit was created. A trailer cannot be taken back by a later commit, so a false attribution would sit in the history permanently.The signature does not verify.
1f12da8showsUnverified (reason=unknown_key): it does carry an SSH signature, but with a key that is not registered on the account, and its committer line is a plaingmail.comaddress rather than anoreply.github.comone. GitHub therefore cannot tie that change to an authenticated identity. The commit in PR #2011 is the same patch, signed with a registered key:verified=true,reason=valid.PR #2011 is in the form
AGENTS.mdasks for: one change, one commit, what it changes and what it leaves alone, the check it passed (the CUDAstratatarget compiles and links with 0 errors, nvcc 13.4.92 / MSVC 14.44, sm_89), and what it did not test (HIP, SYCL, and no decode run of the patch on the reporter's box).No rework is needed on the patch itself:
mainnever carried it.@jstrot commented on GitHub (Oct 12, 2026):
Just my +1 that the default
STRATA_ADAPT_OVERLAP=1in v0.1.43 brings my tg32 to ~52, down from ~64 in v0.1.42.Using
STRATA_ADAPT_OVERLAP=0brings the numbers back v0.1.42.This PC
GPU: NVIDIA GeForce RTX 5060 Ti, 16 GB
CPU: Intel(R) Core(TM) i7-14700K, 16 threads (limited to this LXC)
RAM: 64 GB (DDR5 @ 5066 MT/s)
@Interpause commented on GitHub (Oct 12, 2026):
Not sure if it is STRATA_ADAPT_OVERLAP in my case cause I tried with both it on/off, but my TG dropped from 110->90 and my PP from 2000->400 on v0.1.43 vs v0.1.42
Ryzen 5950X, 4x16GB DDR4-3200, RTX4090 (PCIe Gen4x16), PCIe Gen4 NVMe SSD for PLE
@Krypto-Whitehat commented on GitHub (Oct 12, 2026):
Two notes on method in this thread, from the reporter's side. Both in the same spirit as the protocol paragraph above.
What has to be true for a number to be about
STRATA_ADAPT_OVERLAP. Only one variable may differ between the two runs: the switch. That means the same 0.1.43 build twice, once at its default and once withSTRATA_ADAPT_OVERLAP=0. A 0.1.42 vs 0.1.43 comparison answers a different question, namely "is 0.1.43 slower on this box", because everything that shipped in 0.1.43 moves at once: the overlap default plus every other change in the release.@gravitomagnetic - your A B A B A B protocol against the 0.1.42 and 0.1.43 tags is the most careful measurement in this thread and I am not disputing the result: on your box 0.1.43 is 1.2% / 2.4% faster. But both 0.1.43 legs ran at their own defaults, so the delta carries the overlap change together with everything else 0.1.43 changed. One more leg closes it: the same 0.1.43 build with
STRATA_ADAPT_OVERLAP=0, same 256-token probes, same gates. If greedy stays near 219 tok/s, the overlap is a win on your box and the release costs you nothing for it. If it moves up, then the overlap was costing you what it costs the two machines below. Both answers are useful - that is the question #2010 is asking.@Interpause - you ran the other test, and it is the right shape: you switched
STRATA_ADAPT_OVERLAPboth ways and it made no difference on your box. So the overlap is not your 110 -> 90. What your numbers point at is the other half of your line: PP 2000 -> 400 is a 5x collapse in prefill, much larger than the decode drop and in a different path. That one deserves its own report with its own reproduction, because on NVMe-resident experts it is not something the adaptive tier's copies explain. If you open one, I will add my numbers to it rather than fold it into this thread: two faults with different causes do not share a fix.For reference, the two switch-level results so far. RTX 5090 Laptop, WSL2 Ubuntu 24.04, native IQ3_XXS pack,
--expert-cache-per-layer(10,320 slots, 16.78 GiB cache), PCIe Gen5 x8 at 28.7 GB/s probe, Core Ultra 9 275HX (8 P + 16 E, hybrid pool): 106.6 tok/s median withSTRATA_ADAPT_OVERLAP=0against 84.6 at the default, 5 generations of 256 tokens, slowest of the fast run above the fastest of the slow one, and 98.1 on 0.1.42 as the control. Andjstrotabove: 64 -> 52 with=1on an RTX 5060 Ti with the pool limited to 16 threads.The one thing those two share is not laptop-versus-desktop and not hybrid CPU: it is a small expert cache relative to the arena. On both, the bytes the overlap moves behind a decode window are a large share of what that window has to wait for; on the 5090 desktop about 33% of experts stay resident and there is no PCIe pressure in steady state. That is the hypothesis I would want measured on the maintainer boxes before it goes into a default, and it is why PR #2011 asks whether the overlap should be gated on the expert-cache shape rather than on the OS.
Both of the above are still one measurement away from settled, which is fine - a default that flips two boxes down and one up is not settled either.
@demon851113 commented on GitHub (Oct 12, 2026):
Adding a data point for #2010: RTX 5070 Ti 16 GB (desktop), Linux, IQ3_S,
"parallel": 2.Same 0.1.43 build (
7695859a) each run, only one variable changed per run.Control, same session: 0.1.40.1 with the same config = 81.1 / 82.0 (parallel 2), 90.2 (parallel 1);
0.1.43 default with parallel 1 = 79.1.
Box: Ryzen 7 7700 (8c/16t, AVX-512), 93 GB DDR5, RTX 5070 Ti (PCIe 5.0 x16), driver 595.99.02,
CUDA 13.2.86, kernel 7.0.0-38, model Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack,
--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --kv int8 --kv-resident 32768 --max-context 262144 --batch 2, plus an rt-cjk MTP head and a learned expert profile.Method: engine restarted per run, 2 warm-up requests, then 3 single-client generations of 300 tokens
(Chinese prose, temperature 0, thinking off); number = per-request decode tok/s, median.
So on this box the overlap default costs ~21% (68.4 vs 86.4), and with it off 0.1.43 is ~5% above 0.1.40.1.
@mmbeanz commented on GitHub (Oct 12, 2026):
Same flag, opposite topology: on an unequal two-card layer split (RTX 5060 Ti 16 GB on gen5 x8 + RTX 3060 12 GB on gen3 x4, measured H2D 28.2 / 3.15 GB/s; IQ3_S GSQ-RCO, 512K ctx, engine
7695859a= v0.1.43, Linux/nspawn, driver 615.71.09, CUDA 13.4),STRATA_ADAPT_OVERLAPis null:STRATA_ADAPT_OVERLAP=0pcie_shareBaseline
--layer-split 40,--pcie-frac 0.00, pinned expert profile, 3 runs per size, one continuous evening session, 0 failures. So the −21% (here) and −26% (#1975) single-GPU regressions do not reproduce on a split — the flag's cost/benefit is topology-dependent, which is a data point for #2011's opt-in-everywhere proposal: on this box the default neither helps nor hurts measurably.Two structural reasons this might be so (hypothesis, not measured): with
--pcie-frac 0there is little to hide (adaptive swaps are ~48 MB per window ≈ 1.7 ms of a ~43 ms window), and a two-stage split already overlaps stage work. A follow-up run with--pcie-frac 0.20on the same split is the test that would separate those explanations; not run yet.Caveat we should own: 0.1.43 does not log
STRATA_*state, and we did not captureenvper run, so the OFF arm's flag state is attested by our run record, not provable from the published artifacts. #2011's logging (in both directions) fixes exactly this; we'd also suggeststrata_bench.pysnapshotenv | grep STRATA_into the results folder.Full A/B artifacts (per-request
/metrics?requests=all, engine logs, configs): #2083.Drafted with AI assistance; I reviewed every line and ran the measurements myself.
@Krypto-Whitehat commented on GitHub (Oct 12, 2026):
@mmbeanz this is the most careful addition to the thread so far - the p-values, the CI, the 40 per-request artefacts in #2083 and above all the caveat you own about not being able to prove the flag state from the published run are exactly the standard the other data points here should be measured against.
One structural point about the conclusion, though, and it is checkable in the tree you built against.
On a layer split the engine turns this overlap off before the flag is ever consulted. In
src/program/generate.cpp:multi_gpuis!split_devs.empty() && !split_same(same file, line 2310), andstagesis filled per stage (line 3428). With--layer-split 40across a 5060 Ti and a 3060, either condition alone already fires - different cards makesplit_samefalse, and the split itself fillsstages. So the default column was running with the overlap off, andSTRATA_ADAPT_OVERLAP=0was the same configuration twice.That is consistent with exactly what you measured: p=0.39, CI spanning zero, hit rate flat,
pcie_share0 on all 40 requests. Two identical configurations, and your own uncertainty interval is what says so.I would therefore not read this as "the single-GPU regressions do not reproduce on a split". They are not being tested on a split - the feature does not run there. The same applies to the follow-up you planned: a
--pcie-frac 0.20run on that split will not separate your two explanations either, because both are layer-split configurations and the overlap is off in both arms. What separates them is a single-GPU RAM-arena run at two PCIe shares, which is the configuration the three rigs in #2010 are already measuring.Your mechanism argument is the part I want to keep, because it is the same one and you quantified it: adaptive swaps of ~48 MB per window are ~1.7 ms against a ~43 ms window, so there is almost nothing for the overlap to hide. That is the regime where it cannot cost anything, and it is the same quantity that decides the other direction - on the rigs that lose 19..26%, the copied bytes are a large share of what the window has to wait for. You have written the mechanism from the beneficial end, which is worth more than one more data point would have been.
Two things you asked for, both of which I would say yes to:
strata serve: adaptive overlap: off: not on a layer splitbefore the first request, and the OFF arm would have shown the same line. That would have turned "attested by our run record" into "provable from the log".strata_bench.py snapshot env | grep STRATA_into the results folder is a good idea, and it belongs in the bench tool rather than in each report. I would keep it a separate change from this PR, per the one-change-per-PR rule in AGENTS.md. Say the word and I will open it.For the record, where the thread stands: three rigs (RTX 5090 Laptop, RTX 5060 Ti, RTX 5070 Ti) measure the flag directly on one 0.1.43 build, only the flag changing between runs, and land at -19%, -21% and -26%. One rig compares 0.1.42 against 0.1.43 and gains 1.2% / 2.4%, which is a release delta rather than a switch measurement. Two rigs in this thread - yours and @blange48's - are layer splits, where the engine disables the feature before the switch is read.
@yannickloth commented on GitHub (Oct 12, 2026):
Switch-level A/B on one 0.1.43 build (
7695859a), onlySTRATA_ADAPT_OVERLAPchanging between runs, plus a 0.1.42 (61b3fb5d) control:STRATA_ADAPT_OVERLAP0Slowest off-run is above the fastest on-run — −65%, far above the −19…26% in this thread. Same regime as the other single-GPU reports (single GPU, hybrid CPU pool, native IQ3_XXS, 1956-slot / 3.21 GiB cache vs a 39.97 GiB arena), with one difference:
--adapt-every 1(default 4). With the overlap on, the every-step adaptive exchange is ~4× the copies to overlap with a 15-thread barrier-synced pool; off,--adapt-every 1lands at 40.3, above 0.1.42. So the flag's cost may scale with the adaptive-exchange rate, not only residency — worth a--adapt-every-matched measurement before the default ships.Rig: RTX A3000 12 GB Laptop (sm_86), i7-12850HX (no AVX-512), 128 GB, 2 MB hugepages, NixOS/CachyOS.
--pcie-frac 0.35 --spec 4 --spec-min-p 0.7 --kv int8 --kv-resident 20480 --max-context 524288. Ruled out: throttle (1815/1815 MHz, 67 °C), 4 KiB-page fallback (hugetlb in use), cache hit (70% on the slow run), RAM pressure (a 0.1.42 run at 20.7 GiB short still did 30–40 tok/s), and Unsloth Studio on/off.@yannickloth commented on GitHub (Oct 12, 2026):
Follow-up from the same RTX A3000 rig as my earlier comment, adding the part that first report left out: 0.1.43 is not only slower at the overlap default, it is more load-sensitive than 0.1.42. That is what shows up as "the older versions stayed consistent under any use".
Same box, same model (Swift-Qwen3.8-Flash-Next IQ3_XXS native pack), same config; numbers are the engine's own
generated in N ms (tok/s)line, 300-token greedy generations:0)0)Two things worth separating:
--pcie-frac,--spec-min-p,--pool-workers,--adapt-everydropped) is far worse — 6.4 vs 24.3 tok/s in that pair. So the regression lives in the 0.1.43 defaults, not in the config on top of them.typst/nix buildon ~4 cores plus an IDE): 0.1.43 tuned 10.1 vs 0.1.42 tuned 16.8. Against each engine's own quiet number, the same background load costs 0.1.42 ~15 tok/s but 0.1.43 ~25–30. The expert pool is 15 barrier-synchronised threads on all cores, so decode is CPU-bound; a 0.1.43 decode path that competes more with (or adds work to) those threads would explain this, and it is consistent with the overlap's copies landing on the pool's critical path.I have pinned back to 0.1.42 as the interim. Both losing rigs I can see share the same shape: a small expert cache against a large arena — here 1956–2123 slots (~3.2–3.5 GiB) against a 39.97 GiB arena, single GPU, hybrid CPU pool. If it helps the default decision, the quantity to measure is resident-cache bytes per decode window versus that window's compute time, with concurrent CPU load as a second axis.
@yannickloth commented on GitHub (Oct 12, 2026):
Closing the loop from the RTX A3000 rig on my earlier comments.
The override restores 0.1.42's speed — the default, not the override, is the whole regression here. Warm, same config, only
STRATA_ADAPT_OVERLAPdiffering, and only load-matched rounds (aggregate load average drifts a lot on this box):STRATA_ADAPT_OVERLAP=0Two corrections to my earlier posts, since they matter for anyone benchmarking this class of rig:
overlap offvs0.1.42numbers (10 vs 17 tok/s) were two single samples at drifting load and are not reliable. Repeated warm sampling shows the same 0.1.43+=0build swinging 9–44 tok/s as the box load moves; only load-matched windows are comparable.--adapt-every 4+ overlap on did not recover it (6.8 vs 14.7 for--adapt-every 1, different-load window — no signal that round cadence is the lever). It is the overlap itself, not the swap cadence.Code check (
61b3fb5→7695859).STRATA_ADAPT_OVERLAPis the only change in the range that is both on-by-default and reaches the CUDA decode path. The other new decode defaults are#if defined(STRATA_USE_HIP)(g_qfuse_hc,fuse_wait_on,fuse_convab_on,fuse_hits_oninverify.cpp;norm_fast_oninfused_gr.cu), gfx906-only (gr_up_q32), Q3_K/type-11 (IlQ3K), P100/sm_60 (exp mode 8), opt-in (route_resident_k,combine_k10_vec4_hits), or skipped when--pcie-fracis given (o.pcie_frac < 0). CMake changed only the version string and bench targets, so the sm_86 kernels build identically. Route-tail-skip was already default-on in 0.1.42.Rig: RTX A3000 12 GB Laptop (sm_86), i7-12850HX (AVX2, no AVX-512), Qwen3.8-Flash-Next IQ3_XXS native pack, 1956–2123-slot cache against a 39.97 GiB arena,
--pcie-frac 0.35 --spec 4 --spec-min-p 0.7 --kv int8 --kv-resident 20480 --adapt-every 1. We now pin 0.1.43 and disable the overlap by config ("env": {"STRATA_ADAPT_OVERLAP": "0"}), which matches 0.1.42 here.@Interpause commented on GitHub (Oct 12, 2026):
Further testing revealed for some weird reason, between v0.1.42 and v0.1.43, the
--ple-ioauto-detect for my system switched fromdirecttommap. Pinning--ple-io directand settingSTRATA_ADAPT_OVERLAP=0fixed my case.STRATA_ADAPT_OVERLAP=1still reduces TG significantly for me.@Niko1221 commented on GitHub (Oct 12, 2026):
Thank you all for the measurements, and especially Krypto-Whitehat (RTX 5090 Laptop, same build with and without the switch), demon851113 (RTX 5070 Ti, one variable per run, plus the control against 0.1.40.1), jstrot (RTX 5060 Ti) and gravitomagnetic (the RTX 5090 desktop, the one box where it paid).
The numbers are clear enough that we changed the default. In 0.1.43.1 (out now)
STRATA_ADAPT_OVERLAPis opt-in on every backend:=1turns it on, and the start-up log now says which state it is in (and why it cannot run, when that is the case). Answers are the same either way. We took Krypto-Whitehat's PR #2011 as it is (authorship kept).Why off rather than a smarter rule: we measured it gaining 5-10% on an RTX A4000 and about 4-6% on a Tesla P100, and it lost 19-26% on the three boxes above, and our own fix in 0.1.43.1 (the callback thread warm-up plus a pinned-memory landing signal, #1964/#1975) removes one known way for it to collapse but cannot tell us what the other boxes do. We cannot test those machines, so the safe default is the one that cannot cost you speed. The hypothesis in this thread (how many of the experts stay resident, how much the window waits for PCIe) is the right discriminator to measure; if someone has a box where an A/B of
=0and=1on the same 0.1.43.1 build differs, please post it and we will look at a rule based on that.If you want to try it:
STRATA_ADAPT_OVERLAP=1, and compare against the default on your own prompts. gravitomagnetic: on your 5090 desktop=1is the setting to test (the missing leg was 0.1.43 with=0).Interpause: the prefill drop (2000 to 400) is a different path; if you open a separate issue with your config and a log we will look at it there.
@taxah92 commented on GitHub (Oct 12, 2026):
A 16 GB Tesla V100 (sm_70) data point on the fixed build, both signal paths — the overlap pays here.
Rig (same as my community report #1879): one Tesla V100-SXM2-16GB in a Proxmox guest, EPYC 7532 (32 vCPU), 94 GiB RAM, Ubuntu 26.04, CUDA 12.4.131; source build of
v0.1.43.1(a0116b2) for sm_70 with-DSTRATA_EXPERIMENTAL_SM60=ON, no local patches. IQ3_S pack, 1M YaRN context, k8v4 KV,--spec 3; only 3,973 of 24,576 experts fit the VRAM cache, so decode streams most experts over PCIe Gen3 x16 (the start-up probe measures 13.1 GB/s host->device). Onlyenvdiffers between arms; every arm is a full engine restart followed by an identical warm-up request (20k-char prompt) before the measured runs; fixed prompts, temperature 0. Median decode tok/s, 3 rounds each with the order rotated:STRATA_ADAPT_OVERLAP=1=1+STRATA_ADAPT_SIGNAL=hostWithin-arm ranges do not overlap between the default and
=1on any of the five prompts (ru: 59.6-60.9 vs 64.9-66.3), so on this card the switch is worth +8.7...+11.9 % — the same regime you measured on the A4000 and P100, and keeping the new default would cost us about 11 %. TTFT with fresh prefixes is unchanged (855-874 ms short, 4300-4317 ms 4K;cache_n=0in every run), the 128K needle is 15/15 with +6.3 % on the cold depth-10 read, and prefill is flat (1252-1314 tok/s). The two signal paths are within noise of each other (medians 75.5 vs 75.0);=1alone is the better pick here (tool-json 84.8 vs 79.2).For the record: on 0.1.43 the same box measured parity between the default (on) and
=0, which is consistent with #1964 — the fix restored the gain, the default flip is what changed. Raw JSONs, the stand and the orchestrator are in the 0.1.43.1 report I am folding into #1879.@mmbeanz commented on GitHub (Oct 12, 2026):
Correction to my earlier comment: per @Krypto-Whitehat 's note, the overlap is off on layer splits, so that run does not test the flag. Updated in #2083/#2085. Thanks for the catch, and for the opt-in change in 0.1.43.1
@nashcap commented on GitHub (Oct 15, 2026):
A gain: +12.6% on a 5060 Ti — the same card that lost 19% in this thread
You asked at the end of the thread for an A/B of
STRATA_ADAPT_OVERLAP=0and=1on the same build. Hereis mine. It went the other way.
My card is the same as @jstrot's (RTX 5060 Ti 16 GB). The CPU is the opposite: a Xeon from 2013 with AVX
and nothing newer, on DDR3. Same card, opposite result — so I don't think the card is what decides this.
The box
cudaHostRegister PORTABLE ok), read through the file cachepcie_frac 0.19-DSTRATA_ISA_FLOOR=avx, sm_120. One binary, both arms--adapt-every 4,--adapt-swaps 96,--adapt-min-gain 1.5--prefill auto:32768 --spec 4 --spec-min-p 0.5 --kv q4_0 --kv-resident 32768 --max-context 262144 --aux-cpus auto. Nine pool workers plus the host thread. No--batch, no--peer-device, no--adapt-async, no layer splitThe measurement
512-token greedy answers. One warm-up request is discarded, then the reps. The numbers come from the
engine's own
generated inline, not from client-side timing.STRATA_ADAPT_OVERLAP=1+12.6%. The two ranges do not overlap: the slowest run with the overlap on is faster than the fastest
run with it off.
Proof of which arm ran
Off:
On:
Why I think it pays here
Your discriminator — how many experts stay resident, and how much the window waits for PCIe — fits this
machine. Only 18.4% of the experts fit in VRAM, the link is 6.9 GB/s, and the CPU pool is slow enough
(AVX1, DDR3) that without the overlap a window waits for the tier's copies instead of running while they
land.
That puts this box with your A4000 and P100 results and @taxah92's V100, and away from the 5090 Laptop,
5070 Ti and 5060 Ti + 14700K reports, which all had fast CPUs and DDR5. If it is useful for the rule: the
same GPU model gained 12.6% here and lost 19% there, so the GPU alone does not predict it.
One more thing I saw but cannot claim. With the overlap on, the start-up hit-rate line reads 85–88%,
against 74–79% on this box without it. That fits the mechanism — the copies land in time, so the swaps
are actually useful before the window needs them. But the traffic was not identical between the two arms,
so I am reporting it as something to look at, not as a result.
What this measurement does not cover
The arms were not interleaved: the off arm was measured about an hour before the on arm, same config, same
binary, nothing else changed in between. I ran the on arm twice because the first three reps looked far
from the baseline, which is why n is 3 and 6. And it is one prompt shape — 512-token greedy prose, no
sampling — on a box that is mostly idle. I have not looked at prompt processing, and I have not looked at
what happens under load.
If you tell me which arm you would actually use to set a default, I will measure that one properly. Two I
would volunteer: an interleaved A/B/A/B on this box, and the interaction @yannickloth found — the overlap
with
--adapt-every 1instead of 4, since four times as many copies are in flight per window there.@yannickloth commented on GitHub (Oct 16, 2026):
@nashcap Good A/B, and thanks for stating the non-interleaved caveat — that is the exact trap I fell into first.
Which of your two volunteers should set a default: the interleaved A/B/A/B. Same binary, default vs
=1, rounds rotated A/B/A/B, medians. That is also the same-build A/B the maintainer asked for, done so the result survives. My reason is not aesthetics: my first numbers on the A3000 read=0at 10 tok/s against 17 for 0.1.42 — two single samples at drifting load — and pointed the wrong way; the load-matched redo showed parity (43.3 vs 43.0 tok/s at matched load) and the answer became "the default is the whole regression". If your interleaved run still shows ~+12%, that is the strongest single-box data point in this thread for the rule.One correction to what you kindly attribute to me: I did not find an
--adapt-every× overlap interaction — I found a non-result. On the A3000,--adapt-every 4with the overlap on did not recover what--adapt-every 1with the overlap on lost (6.8 for every-4 vs 14.7 for every-1, but at different load windows — by my own correction above, not a comparable pair). The claim that survived is narrower: the overlap itself was the whole regression, and the swap cadence did not rescue it.If you want to measure that leg anyway,
=1at--adapt-every 1vs--adapt-every 4on your box is the right pair: four times as many copies in flight per window is exactly where "how much the window waits for PCIe" should show up, and your box (slow CPU, 6.9 GB/s link, 18.4% resident) is the regime where more in-flight copies should help most if the resident-expert/PCIe-wait mechanism is right. It is a one-flag change on your box: your defaults run--adapt-every 4, my config runs1.The hit-rate delta (85–88% vs 74–79%) is worth confirming on an instrumented build; if a rise that size holds at identical traffic, it is direct evidence that the copies land before the window needs them — the mechanism claim in one number.
And to close my own loop: I will re-run the A3000 rig on 0.1.44.1,
=0vs=1, interleaved and load-matched as before, and post it here. The binary choice is already settled on this box — 0.1.43.1 and 0.1.44.1 decode at parity across three prompt shapes (#2441) — so any difference the A/B shows is the flag. That adds one mid-CPU laptop (sm_86, AVX2, no AVX-512) to the fast-CPU/DDR5 vs slow-CPU/DDR3 split.@yannickloth commented on GitHub (Oct 16, 2026):
@nashcap The A/B I offered is done — A3000 rig, 0.1.44.1 (sha256
794ad08…, the build from #2441), production config, one engine per round, four rounds per arm, arm order alternating A/B, B/A, A/B, B/A, warm-up answer after every start, greedy fixed prompts, medians. The startup line named the arm every round (offvsstream-ordered copieshost signal), so no arm confusion is possible.=0(off)=1(on)Prefill is identical both arms (~875 tok/s on the long prompt). The one clean length-matched row — the 512-token decode, same tokens to the cap — is a wash (−1.5%). The shorter rows lean
=1by 3–9%, but I would not lean on them: the greedy token streams are not stable across engine restarts on either arm (A's own four rounds on chat1 produce answer lengths 247/247/247/241), so those medians carry restart noise on top of the flag.Two things for the discriminator discussion:
pcie_fraclink — and=1bought nothing a median can see. Same regime, opposite outcome, so residency-plus-link-width is still not the whole rule.Caveat on conditions: the 1-minute loadavg drifted 3 → 20 during the run (desktop work on the same box, the thing that burned my first attempt in this thread), which is exactly why the arms alternate; per-round A values on the clean row were tight (55.8/56.2/53.7/53.0) across that drift.
Bottom line for us: we stay on
=0— nothing here pays for the switch — but on 0.1.44.1 the default-off no longer costs this rig anything measurable. The 0.1.43 collapse is gone.Raw JSONL, per-round logs with the startup and hit-rate lines, the load trace, and the engine sha are in
bench/results/2026-10-16-a3000-overlap-ab/in our fork (yannickloth/forks-Strata).@nashcap commented on GitHub (Oct 17, 2026):
I re-ran my own +12.6% the way @yannickloth asked. The gain is real and bigger than I reported. Two of my claims were wrong, and they're first.
Corrections
--adapt-every 4->1), which I had also changed between the two arms. @yannickloth's A3000 numbers already showed no rise; mine now agree, and the reason mine looked large is the tier.--adapt-everyx overlap interaction they said they had not found. My error; their correction stands.--adapt-every 4). The clean number there is +9.4%; at--adapt-every 1it is +21%.What I ran
The repo's own
tools/ab_engine.py: four arms, four rounds, arm order reversed on odd rounds, one engine start per arm per round, a warm-up answer after every readiness, greedy fixed prompts, 512-token cap, the server's owntimings. 64 requests, 16 engine starts, one session - the same protocol shape as @yannickloth's A3000 run, so the two are directly comparable.pcie_frac 0.1969d8a654..., built-DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120 -DSTRATA_ISA_FLOOR=avx(no Linux binary is published for this tag, so this is a source build like everyone else's here)Arm state read back out of each round's engine log (
adaptive overlap: offvsstream-ordered copies, and the--adapt-everyin the recorded command line), so the arm is provable from the artifacts; the same 9 pool workers and 4515 resident experts appear in all 16 rounds. Load 4-9 throughout, 37-41 GB free once an engine was up, prefill identical in all four arms (786-791 tok/s). No--ple-io ramin this run - PLE read from NVMe, the same regime as the rest of the thread, and not the constraint: the engine's own probe measured 62-107K rows/s on that path against the 12,640 rows/s this run needed at its worst (790 tok/s prefill x 16 heads).The 2x2 - decode tok/s, median of 4
onvsoff)The two settings multiply, and it shows from both directions: 2.24x from the overlap side, 2.06x from the cadence side. @yannickloth predicted this pair is where the effect should show up if the mechanism is the window waiting on copies - on this box that prediction holds: the overlap's gain roughly doubles with the cadence. Best corner against worst: +24% to +43%. The first session reproduced A/B/C within 1-3% (41.2/41.0, 51.2/49.7, 41.5/41.1), and the overlap gain itself reproduced almost exactly: +20.9% there, +21.1% here.
Hit rate is not the mechanism
Cadence is worth 10.8 points with the overlap off and 8.9 with it on; the overlap is worth nothing - yet it still buys 9-21% at a flat hit rate. So the overlap isn't landing more experts; it stops the window waiting for copies that were landing anyway. Cadence is what changes what lands.
Production here stays at the good corner:
STRATA_ADAPT_OVERLAP=1with--adapt-every 1.