[GH-ISSUE #2010] 0.1.43 on Linux CUDA: STRATA_ADAPT_OVERLAP costs 21% decode (single GPU, hybrid CPU, native expert pack) #801

Closed
opened 2026-11-04 01:45:59 +07:00 by bsakaguchi · 19 comments
Owner

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_OVERLAP default on for Linux CUDA (commit 7c035d72, where it
was 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=0
against 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

GPU NVIDIA GeForce RTX 5090 Laptop GPU, 24 GiB, PCIe Gen5 x8, probe 28.7 GB/s host->device
CPU Intel Core Ultra 9 275HX, 8 P + 16 E cores, 24 logical, AVX2 + avx_vnni, no AVX-512
RAM 64 GiB physical, WSL limit 52 GiB, expert arena 39.97 GiB in 42 GiB hugepages
OS Ubuntu 24.04 under WSL2, driver KMD 617.42
Model Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS, native pack, 10,320 expert slots / 16.78 GiB cache
Engine (bad) 7695859a (v0.1.43), nvcc 13.4.92, -DCUDAToolkit_ROOT=/usr/local/cuda, arch 120
Engine (control) 61b3fb5d (v0.1.42), same toolchain

Config, identical in all three runs:

--pool-workers 12 --kv-grow --kv k8v4 --vram-reserve-mib 300 --max-context 262144
--spec 4 --spec-min-p 0.5 --prefill auto:16384 --expert-cache auto --expert-cache-per-layer
env: STRATA_PF_FUSED=1

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:

Engine STRATA_ADAPT_OVERLAP decode median min max hit rate
v0.1.42 (61b3fb5d) not applicable 98.1 tok/s 79.7 112.9 92.6 %
v0.1.43 (7695859a) default (on) 84.6 tok/s 69.8 87.9 92.5 %
v0.1.43 (7695859a) 0 106.6 tok/s 89.1 108.6 91.1 %

The 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

  • Thermals / power. GPU at 65 C idle, nvidia-smi -q -d PERFORMANCE reports
    SW Power Cap, HW Slowdown, HW Thermal Slowdown and SW Thermal Slowdown all
    Not Active; the session's SW Thermal Slowdown counter is 1.57 s in total. No
    HW Slowdown, no clock capping.
  • --pcie-frac is unchanged. Both builds log
    PCIe probe: 28.7 GB/s host->device -> pcie_frac 0.55 (default 0.55).
  • Prompt reuse is the same across runs (the second generation of each set reuses the
    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:

  1. Pack type. The upstream number is on the canonical Q2_0 pack. I run a native
    IQ3_XXS
    pack with --expert-cache-per-layer, so the adaptive tier swaps in and out of a
    per-layer slot arena (10,320 slots, 169 per layer) rather than a shared ring.
  2. CPU class. The adaptive tier competes with a hybrid CPU pool. On this machine the
    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 env block (strata-iq3_xxs.json), next to STRATA_PF_FUSED:

"env": { "STRATA_PF_FUSED": "1", "STRATA_ADAPT_OVERLAP": "0" }

strata-iq3_xxs.json is git-ignored (/strata-*.json), so the override survives updates and
engine rebuilds. With it the same build measures 106.6 tok/s, i.e. 8.7% above v0.1.42.

Suggested upstream fix

  1. Make the overlap opt-in on Linux CUDA as well, not just on Windows. The feature was
    measured as a loss on one CUDA card and is currently only disabled on Windows.
  2. Or measure it for native packs with per-layer expert slots before turning it on - that
    is the configuration the default most affects, and it is not the one the flag was tuned on.
  3. Log the state in both directions in the startup banner. The line
    strata serve: adaptive overlap (STRATA_ADAPT_OVERLAP=0 turns it off): ... is printed only
    while the overlap is actually active (the if (adapt_overlap()) block in
    src/program/generate.cpp), and nothing at all is logged when it is off. So with
    STRATA_ADAPT_OVERLAP=0 in the config there is no way to see from the log that the overlap
    was 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-mib and --pcie-frac combined.

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.

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_OVERLAP` default **on** for Linux CUDA (commit `7c035d72`, where it was 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=0` against 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 | | | |---|---| | GPU | NVIDIA GeForce RTX 5090 Laptop GPU, 24 GiB, PCIe Gen5 **x8**, probe 28.7 GB/s host->device | | CPU | Intel Core Ultra 9 275HX, **8 P + 16 E cores**, 24 logical, AVX2 + avx_vnni, **no AVX-512** | | RAM | 64 GiB physical, WSL limit 52 GiB, expert arena 39.97 GiB in 42 GiB hugepages | | OS | Ubuntu 24.04 under WSL2, driver KMD 617.42 | | Model | Qwen3.8-Flash-Next GSQ-RCO **IQ3_XXS**, native pack, 10,320 expert slots / 16.78 GiB cache | | Engine (bad) | `7695859a` (v0.1.43), nvcc 13.4.92, `-DCUDAToolkit_ROOT=/usr/local/cuda`, arch 120 | | Engine (control) | `61b3fb5d` (v0.1.42), same toolchain | Config, identical in all three runs: ``` --pool-workers 12 --kv-grow --kv k8v4 --vram-reserve-mib 300 --max-context 262144 --spec 4 --spec-min-p 0.5 --prefill auto:16384 --expert-cache auto --expert-cache-per-layer env: STRATA_PF_FUSED=1 ``` ### 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: | Engine | `STRATA_ADAPT_OVERLAP` | decode median | min | max | hit rate | |---|---|---|---|---|---| | v0.1.42 (`61b3fb5d`) | not applicable | **98.1** tok/s | 79.7 | 112.9 | 92.6 % | | v0.1.43 (`7695859a`) | default (on) | **84.6** tok/s | 69.8 | 87.9 | 92.5 % | | v0.1.43 (`7695859a`) | `0` | **106.6** tok/s | 89.1 | 108.6 | 91.1 % | The 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 - **Thermals / power.** GPU at 65 C idle, `nvidia-smi -q -d PERFORMANCE` reports `SW Power Cap`, `HW Slowdown`, `HW Thermal Slowdown` and `SW Thermal Slowdown` all `Not Active`; the session's `SW Thermal Slowdown` counter is 1.57 s in total. No `HW Slowdown`, no clock capping. - **`--pcie-frac` is unchanged.** Both builds log `PCIe probe: 28.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)`. - **Prompt reuse** is the same across runs (the second generation of each set reuses the 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: 1. **Pack type.** The upstream number is on the canonical **Q2_0** pack. I run a **native IQ3_XXS** pack with `--expert-cache-per-layer`, so the adaptive tier swaps in and out of a per-layer slot arena (10,320 slots, 169 per layer) rather than a shared ring. 2. **CPU class.** The adaptive tier competes with a **hybrid** CPU pool. On this machine the 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 `env` block (`strata-iq3_xxs.json`), next to `STRATA_PF_FUSED`: ```json "env": { "STRATA_PF_FUSED": "1", "STRATA_ADAPT_OVERLAP": "0" } ``` `strata-iq3_xxs.json` is git-ignored (`/strata-*.json`), so the override survives updates and engine rebuilds. With it the same build measures 106.6 tok/s, i.e. 8.7% **above** v0.1.42. ### Suggested upstream fix 1. **Make the overlap opt-in on Linux CUDA as well**, not just on Windows. The feature was measured as a loss on one CUDA card and is currently only disabled on Windows. 2. Or **measure it for native packs with per-layer expert slots** before turning it on - that is the configuration the default most affects, and it is not the one the flag was tuned on. 3. **Log the state in both directions in the startup banner.** The line `strata serve: adaptive overlap (STRATA_ADAPT_OVERLAP=0 turns it off): ...` is printed only while the overlap is actually active (the `if (adapt_overlap())` block in `src/program/generate.cpp`), and nothing at all is logged when it is off. So with `STRATA_ADAPT_OVERLAP=0` in the config there is no way to see from the log that the overlap was 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-mib` and `--pcie-frac` combined. ### 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.
Author
Owner

@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.

probe 0.1.42 0.1.43 Δ
instruct decode 256 (temp 0.7/pres 1.5) 120.3–122.6, med 121.3 tok/s 122.5–123.6, med 122.8 +1.2%
greedy decode 256 (temp 0) 209.6–216.3, med 213.9 tok/s 218.8–222.8, med 219.0 +2.4%
cold prefill 200K (xhigh) 58.0 s 58.1 s +0.2% (flat)
needle recall 200K 57.5 s 57.6 s +0.2% (flat)
gprobe 150/300/450-tok prompt read 772.9 / 854.8 / 930.4 ms 775.6 / 855.8 / 933.0 ms +0.1..+0.4%

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_OVERLAP on 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.

<!-- gh-comment-id:6116529037 --> @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. | probe | 0.1.42 | 0.1.43 | Δ | |---|---|---|---| | instruct decode 256 (temp 0.7/pres 1.5) | 120.3–122.6, med 121.3 tok/s | 122.5–123.6, med 122.8 | +1.2% | | greedy decode 256 (temp 0) | 209.6–216.3, med 213.9 tok/s | 218.8–222.8, med 219.0 | +2.4% | | cold prefill 200K (xhigh) | 58.0 s | 58.1 s | +0.2% (flat) | | needle recall 200K | 57.5 s | 57.6 s | +0.2% (flat) | | gprobe 150/300/450-tok prompt read | 772.9 / 854.8 / 930.4 ms | 775.6 / 855.8 / 933.0 ms | +0.1..+0.4% | 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_OVERLAP` on 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.
Author
Owner

@Krypto-Whitehat commented on GitHub (Oct 12, 2026):

Note on the commit floating in this thread, from the reporter's side.

1f12da8 is not on main, 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 and main is still at 7695859a. Nothing has shipped from it.

Two properties of that commit are worth not carrying into main:

  1. The co-author trailer is wrong. The message ends with Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> and a Claude-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.

  2. The signature does not verify. 1f12da8 shows Unverified (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 plain gmail.com address rather than a noreply.github.com one. 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.md asks for: one change, one commit, what it changes and what it leaves alone, the check it passed (the CUDA strata target 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: main never carried it.

<!-- gh-comment-id:6116795867 --> @Krypto-Whitehat commented on GitHub (Oct 12, 2026): Note on the commit floating in this thread, from the reporter's side. **`1f12da8` is not on `main`, 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 and `main` is still at `7695859a`. Nothing has shipped from it. Two properties of that commit are worth not carrying into `main`: 1. **The co-author trailer is wrong.** The message ends with `Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>` and a `Claude-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. 2. **The signature does not verify.** `1f12da8` shows `Unverified (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 plain `gmail.com` address rather than a `noreply.github.com` one. 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.md` asks for: one change, one commit, what it changes and what it leaves alone, the check it passed (the CUDA `strata` target 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: `main` never carried it.
Author
Owner

@jstrot commented on GitHub (Oct 12, 2026):

Just my +1 that the default STRATA_ADAPT_OVERLAP=1 in v0.1.43 brings my tg32 to ~52, down from ~64 in v0.1.42.
Using STRATA_ADAPT_OVERLAP=0 brings 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)

<!-- gh-comment-id:6117872567 --> @jstrot commented on GitHub (Oct 12, 2026): Just my +1 that the default `STRATA_ADAPT_OVERLAP=1` in v0.1.43 brings my tg32 to ~52, down from ~64 in v0.1.42. Using `STRATA_ADAPT_OVERLAP=0` brings 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)
Author
Owner

@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

<!-- gh-comment-id:6117924996 --> @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
Author
Owner

@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 with STRATA_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_OVERLAP both 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 with STRATA_ADAPT_OVERLAP=0 against 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. And jstrot above: 64 -> 52 with =1 on 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.

<!-- gh-comment-id:6118050434 --> @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 with `STRATA_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_OVERLAP` both 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 with `STRATA_ADAPT_OVERLAP=0` against 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. And `jstrot` above: 64 -> 52 with `=1` on 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.
Author
Owner

@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.

Run (one switch each) decode tok/s (median of 3)
default 68.4
STRATA_ADAPT_OVERLAP=0 86.4 (+26%)
STRATA_ROUTE_TAIL_SKIP=0 69.4
STRATA_MMVQ_IL=0 66.3
STRATA_PCIE_FRAC_DEFAULT=old 66.9
STRATA_PREFILL_CPU_SHARE=0 66.7
STRATA_NAN_GUARD=0 65.7

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.

<!-- gh-comment-id:6118459680 --> @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. | Run (one switch each) | decode tok/s (median of 3) | |------------------------------------|---------------------------| | default | 68.4 | | STRATA_ADAPT_OVERLAP=0 | 86.4 (+26%) | | STRATA_ROUTE_TAIL_SKIP=0 | 69.4 | | STRATA_MMVQ_IL=0 | 66.3 | | STRATA_PCIE_FRAC_DEFAULT=old | 66.9 | | STRATA_PREFILL_CPU_SHARE=0 | 66.7 | | STRATA_NAN_GUARD=0 | 65.7 | 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.
Author
Owner

@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_OVERLAP is null:

quantity default (ON) STRATA_ADAPT_OVERLAP=0 diff p / CI
prompt 32K tok/s 1,720.8 1,723.2 +0.14% inside run-to-run spread
decode tok/s (mean of 40 requests) 71.10 73.61 −3.4% (OFF marginally faster) p=0.39; 95% CI −11.2%..+4.4%
hit_rate (mean) 0.8417 0.8394 +0.0023 p=0.92
pcie_share 0 on all 40 requests 0 on all 40 identical policy —

Baseline --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 0 there 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.20 on 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 capture env per 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 suggest strata_bench.py snapshot env | 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.

<!-- gh-comment-id:6121500990 --> @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_OVERLAP` is **null**: | quantity | default (ON) | `STRATA_ADAPT_OVERLAP=0` | diff | p / CI | | --- | ---: | ---: | ---: | --- | | prompt 32K tok/s | 1,720.8 | 1,723.2 | +0.14% | inside run-to-run spread | | decode tok/s (mean of 40 requests) | 71.10 | 73.61 | −3.4% (OFF marginally faster) | p=0.39; 95% CI −11.2%..+4.4% | | hit_rate (mean) | 0.8417 | 0.8394 | +0.0023 | p=0.92 | | `pcie_share` | 0 on all 40 requests | 0 on all 40 | identical policy | — | Baseline `--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 0` there 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.20` on 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 capture `env` per 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 suggest `strata_bench.py` snapshot `env | 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.*
Author
Owner

@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:

const char* why = multi_gpu || !stages.empty() ? "not on a layer split"

multi_gpu is !split_devs.empty() && !split_same (same file, line 2310), and stages is filled per stage (line 3428). With --layer-split 40 across a 5060 Ti and a 3060, either condition alone already fires - different cards make split_same false, and the split itself fills stages. So the default column was running with the overlap off, and STRATA_ADAPT_OVERLAP=0 was the same configuration twice.

That is consistent with exactly what you measured: p=0.39, CI spanning zero, hit rate flat, pcie_share 0 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.20 run 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:

  • You are right that 0.1.43 cannot prove its own flag state, and that is the reason this PR has a second half. On your run the engine would have printed strata serve: adaptive overlap: off: not on a layer split before 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.

<!-- gh-comment-id:6122308167 --> @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`: ```cpp const char* why = multi_gpu || !stages.empty() ? "not on a layer split" ``` `multi_gpu` is `!split_devs.empty() && !split_same` (same file, line 2310), and `stages` is filled per stage (line 3428). With `--layer-split 40` across a 5060 Ti and a 3060, either condition alone already fires - different cards make `split_same` false, and the split itself fills `stages`. So the default column was running with the overlap off, and `STRATA_ADAPT_OVERLAP=0` was the same configuration twice. That is consistent with exactly what you measured: p=0.39, CI spanning zero, hit rate flat, `pcie_share` 0 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.20` run 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: - You are right that 0.1.43 cannot prove its own flag state, and that is the reason this PR has a second half. On your run the engine would have printed `strata serve: adaptive overlap: off: not on a layer split` before 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.
Author
Owner

@yannickloth commented on GitHub (Oct 12, 2026):

Switch-level A/B on one 0.1.43 build (7695859a), only STRATA_ADAPT_OVERLAP changing between runs, plus a 0.1.42 (61b3fb5d) control:

run STRATA_ADAPT_OVERLAP decode (300 tok, temp 0)
0.1.43 default (on) 13.9 / 12.8 tok/s
0.1.43 0 40.3 / 37.0 tok/s
0.1.42 n/a 31.6 tok/s

Slowest 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 1 lands 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.

<!-- gh-comment-id:6123331292 --> @yannickloth commented on GitHub (Oct 12, 2026): Switch-level A/B on one 0.1.43 build (`7695859a`), only `STRATA_ADAPT_OVERLAP` changing between runs, plus a 0.1.42 (`61b3fb5d`) control: | run | `STRATA_ADAPT_OVERLAP` | decode (300 tok, temp 0) | |---|---|---| | 0.1.43 | default (on) | 13.9 / 12.8 tok/s | | 0.1.43 | `0` | 40.3 / 37.0 tok/s | | 0.1.42 | n/a | 31.6 tok/s | Slowest 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 1` lands 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.
Author
Owner

@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:

engine / config box state decode
0.1.43, stock defaults (our tuning stripped, overlap on) loaded 6.4 tok/s
0.1.43, tuned (overlap 0) loaded 10.1
0.1.42, tuned same load 16.8
0.1.43, tuned (overlap 0) quiet 34.8 / 40.3
0.1.42, tuned quiet 31.6

Two things worth separating:

  • Our own tuning is not the cause. Serving 0.1.43 with the calibrated knobs removed (engine defaults: --pcie-frac, --spec-min-p, --pool-workers, --adapt-every dropped) 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.
  • 0.1.43 also loses more to concurrent CPU load. Measured back-to-back under the same load (~21: a typst/nix build on ~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.

<!-- gh-comment-id:6124007181 --> @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: | engine / config | box state | decode | |---|---|---| | 0.1.43, **stock defaults** (our tuning stripped, overlap on) | loaded | **6.4 tok/s** | | 0.1.43, tuned (overlap `0`) | loaded | 10.1 | | 0.1.42, tuned | same load | **16.8** | | 0.1.43, tuned (overlap `0`) | quiet | 34.8 / 40.3 | | 0.1.42, tuned | quiet | 31.6 | Two things worth separating: - **Our own tuning is not the cause.** Serving 0.1.43 with the calibrated knobs *removed* (engine defaults: `--pcie-frac`, `--spec-min-p`, `--pool-workers`, `--adapt-every` dropped) 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. - **0.1.43 also loses more to concurrent CPU load.** Measured back-to-back under the same load (~21: a `typst`/`nix build` on ~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.
Author
Owner

@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_OVERLAP differing, and only load-matched rounds (aggregate load average drifts a lot on this box):

matched-load round 0.1.42 0.1.43 + STRATA_ADAPT_OVERLAP=0
load ~14 43.3 tok/s (median of 4) 43.0
load ~13 43.9 42.4

Two corrections to my earlier posts, since they matter for anyone benchmarking this class of rig:

  • My first overlap off vs 0.1.42 numbers (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+=0 build 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_OVERLAP is 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_on in verify.cpp; norm_fast_on in fused_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-frac is 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.

<!-- gh-comment-id:6126181406 --> @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_OVERLAP` differing, and only load-*matched* rounds (aggregate load average drifts a lot on this box): | matched-load round | 0.1.42 | 0.1.43 + `STRATA_ADAPT_OVERLAP=0` | |---|---|---| | load ~14 | 43.3 tok/s (median of 4) | 43.0 | | load ~13 | 43.9 | 42.4 | Two corrections to my earlier posts, since they matter for anyone benchmarking this class of rig: - My first `overlap off` vs `0.1.42` numbers (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+`=0` build 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_OVERLAP` is 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_on` in `verify.cpp`; `norm_fast_on` in `fused_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-frac` is 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.
Author
Owner

@Interpause commented on GitHub (Oct 12, 2026):

7. 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

Further testing revealed for some weird reason, between v0.1.42 and v0.1.43, the --ple-io auto-detect for my system switched from direct to mmap. Pinning --ple-io direct and setting STRATA_ADAPT_OVERLAP=0 fixed my case. STRATA_ADAPT_OVERLAP=1 still reduces TG significantly for me.

<!-- gh-comment-id:6128366209 --> @Interpause commented on GitHub (Oct 12, 2026): > 7\. 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 Further testing revealed for some weird reason, between v0.1.42 and v0.1.43, the `--ple-io` auto-detect for my system switched from `direct` to `mmap`. Pinning `--ple-io direct` and setting `STRATA_ADAPT_OVERLAP=0` fixed my case. `STRATA_ADAPT_OVERLAP=1` still reduces TG significantly for me.
Author
Owner

@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_OVERLAP is opt-in on every backend: =1 turns 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 =0 and =1 on 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 =1 is 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.

<!-- gh-comment-id:6129320398 --> @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_OVERLAP` is opt-in on every backend: `=1` turns 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 `=0` and `=1` on 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 `=1` is 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.
Author
Owner

@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). Only env differs 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:

arm ru (450 tok) ru-chat code math tool-json
default (overlap off) 59.9 67.5 67.1 81.8 76.0
STRATA_ADAPT_OVERLAP=1 65.1 75.5 75.1 89.6 84.8
=1 + STRATA_ADAPT_SIGNAL=host 67.0 74.7 75.0 87.3 79.2

Within-arm ranges do not overlap between the default and =1 on 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=0 in 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); =1 alone 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.

<!-- gh-comment-id:6132589729 --> @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). Only `env` differs 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: | arm | ru (450 tok) | ru-chat | code | math | tool-json | |---|---|---|---|---|---| | default (overlap off) | 59.9 | 67.5 | 67.1 | 81.8 | 76.0 | | `STRATA_ADAPT_OVERLAP=1` | 65.1 | 75.5 | 75.1 | 89.6 | 84.8 | | `=1` + `STRATA_ADAPT_SIGNAL=host` | 67.0 | 74.7 | 75.0 | 87.3 | 79.2 | Within-arm ranges do not overlap between the default and `=1` on 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=0` in 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); `=1` alone 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.
Author
Owner

@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

<!-- gh-comment-id:6134845871 --> @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
Author
Owner

@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=0 and =1 on the same build. Here
is 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

CPU Intel Xeon E5-2470 v2 (Ivy Bridge-EP), 10 cores / 20 threads. AVX and SSE4.2 only: no AVX2, no FMA, no F16C, no AVX-512
Memory 94 GiB DDR3. The expert arena is 46.84 GiB, pinned (cudaHostRegister PORTABLE ok), read through the file cache
GPU RTX 5060 Ti 16 GB, PCIe 3.0 x8. The start-up probe measures 6.9 GB/s host→device, which gives pcie_frac 0.19
Engine v0.1.44.1, source build with -DSTRATA_ISA_FLOOR=avx, sm_120. One binary, both arms
Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S, native pack
Expert cache 4515 of 24576 pairs resident, 18.4% (8.61 GiB). The adaptive tier is at its defaults: --adapt-every 4, --adapt-swaps 96, --adapt-min-gain 1.5
Other args --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 split

The measurement

512-token greedy answers. One warm-up request is discarded, then the reps. The numbers come from the
engine's own generated in line, not from client-side timing.

arm tok/s per run median
default (off) 46.6 / 43.2 / 45.3 45.3
STRATA_ADAPT_OVERLAP=1 50.9 / 50.8 / 48.6 / 50.2 / 52.2 / 54.3 51.0

+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:

strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on)

On:

strata serve: adaptive overlap signal: stream-ordered copies (STRATA_ADAPT_SIGNAL=host: a host function)
strata serve: adaptive overlap (STRATA_ADAPT_OVERLAP=0 turns it off): the adaptive tier's copies land while the next window runs (same tokens, a layer waits for its own copies)

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 1 instead of 4, since four times as many copies are in flight per window there.

<!-- gh-comment-id:6193358012 --> @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=0` and `=1` on the same build. Here is 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 | | | |---|---| | CPU | Intel Xeon E5-2470 v2 (Ivy Bridge-EP), 10 cores / 20 threads. AVX and SSE4.2 only: no AVX2, no FMA, no F16C, no AVX-512 | | Memory | 94 GiB **DDR3**. The expert arena is 46.84 GiB, pinned (`cudaHostRegister PORTABLE ok`), read through the file cache | | GPU | RTX 5060 Ti 16 GB, **PCIe 3.0 x8**. The start-up probe measures 6.9 GB/s host→device, which gives `pcie_frac 0.19` | | Engine | v0.1.44.1, source build with `-DSTRATA_ISA_FLOOR=avx`, sm_120. **One binary, both arms** | | Model | Qwen3.8-Flash-Next GSQ-RCO IQ3_S, native pack | | Expert cache | **4515 of 24576 pairs resident, 18.4%** (8.61 GiB). The adaptive tier is at its defaults: `--adapt-every 4`, `--adapt-swaps 96`, `--adapt-min-gain 1.5` | | Other args | `--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 split | ### The measurement 512-token greedy answers. One warm-up request is discarded, then the reps. The numbers come from the engine's own `generated in` line, not from client-side timing. | arm | tok/s per run | median | |---|---|---| | default (off) | 46.6 / 43.2 / 45.3 | 45.3 | | `STRATA_ADAPT_OVERLAP=1` | 50.9 / 50.8 / 48.6 / 50.2 / 52.2 / 54.3 | **51.0** | **+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: ``` strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on) ``` On: ``` strata serve: adaptive overlap signal: stream-ordered copies (STRATA_ADAPT_SIGNAL=host: a host function) strata serve: adaptive overlap (STRATA_ADAPT_OVERLAP=0 turns it off): the adaptive tier's copies land while the next window runs (same tokens, a layer waits for its own copies) ``` ### 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 1` instead of 4, since four times as many copies are in flight per window there.
Author
Owner

@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 =0 at 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 4 with the overlap on did not recover what --adapt-every 1 with 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, =1 at --adapt-every 1 vs --adapt-every 4 on 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 runs 1.

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, =0 vs =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.

<!-- gh-comment-id:6211548837 --> @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 `=0` at 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 4` with the overlap on did **not** recover what `--adapt-every 1` with 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**, `=1` at `--adapt-every 1` vs `--adapt-every 4` on 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 runs `1`. 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, `=0` vs `=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.
Author
Owner

@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 (off vs stream-ordered copies host signal), so no arm confusion is possible.

prompt =0 (off) =1 (on)
chat, 34-token prompt, 512-token decode 54.8 54.0
chat, ~250-token answers 44.8 46.0
chat, ~200-token answers 42.9 45.9
6345-token prompt, ~150-token answers 41.5 45.1

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 =1 by 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:

  • The hit-rate rise does not reproduce here. Under interleaving, my decode hit rate was 74.0–75.6% with the overlap off and 73.2–74.6% with it on — flat, if anything slightly lower with it on. Your 85–88% vs 74–79% came from non-interleaved arms, which you yourself flagged; on this box the effect is gone. I would treat the hit-rate line as unproven until someone measures it interleaved on a box where the overlap actually pays.
  • Low residency alone does not predict a gain. This run ran at 1607 of 24576 pairs resident (6.5%, cache auto — lower than my October numbers because the desktop was busier), a weaker residency regime than your 18.4%, with a 0.35 pcie_frac link — and =1 bought 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).

<!-- gh-comment-id:6214937134 --> @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 (`off` vs `stream-ordered copies` host signal), so no arm confusion is possible. | prompt | `=0` (off) | `=1` (on) | |---|---|---| | chat, 34-token prompt, 512-token decode | 54.8 | 54.0 | | chat, ~250-token answers | 44.8 | 46.0 | | chat, ~200-token answers | 42.9 | 45.9 | | 6345-token prompt, ~150-token answers | 41.5 | 45.1 | 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 `=1` by 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: - **The hit-rate rise does not reproduce here.** Under interleaving, my decode hit rate was 74.0–75.6% with the overlap off and 73.2–74.6% with it on — flat, if anything slightly lower with it on. Your 85–88% vs 74–79% came from non-interleaved arms, which you yourself flagged; on this box the effect is gone. I would treat the hit-rate line as unproven until someone measures it interleaved on a box where the overlap actually pays. - **Low residency alone does not predict a gain.** This run ran at 1607 of 24576 pairs resident (6.5%, cache auto — lower than my October numbers because the desktop was busier), a weaker residency regime than your 18.4%, with a 0.35 `pcie_frac` link — and `=1` bought 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).
Author
Owner

@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

  1. The hit-rate line is retracted. I said the overlap took decode hit rate from 74-79% to 85-88%. It doesn't: measured interleaved, the overlap moves hit rate by about a point in either direction (-0.8 at every-1, +1.2 at every-4). What moved it was the adaptive tier (--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.
  2. I credited @yannickloth with an --adapt-every x overlap interaction they said they had not found. My error; their correction stands.
  3. My +12.6% was at the shipped cadence (--adapt-every 4). The clean number there is +9.4%; at --adapt-every 1 it 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 own timings. 64 requests, 16 engine starts, one session - the same protocol shape as @yannickloth's A3000 run, so the two are directly comparable.

python tools/ab_engine.py strata-iq3_s-ab.json \
  "A:exe=$STOCK,STRATA_ADAPT_OVERLAP=0" "B:exe=$STOCK,STRATA_ADAPT_OVERLAP=1" \
  "C:exe=$STOCK,STRATA_ADAPT_OVERLAP=1,xargs=--adapt-every;4" \
  "E:exe=$STOCK,STRATA_ADAPT_OVERLAP=0,xargs=--adapt-every;4" \
  --rounds 4 --max-new 512 --long-words 6000 --port 8090
CPU Xeon E5-2470 v2 (2013), 10c/20t, AVX only - no AVX2/AVX-512
Memory 94 GiB DDR3, 46.84 GiB arena pinned
GPU RTX 5060 Ti 16 GB, PCIe 3.0 x8, probe 6.8 GB/s -> pcie_frac 0.19
Cache 4515 of 24576 pairs resident, 18.4%
Engine stock v0.1.44.1, no local changes, sha256 69d8a654..., 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: off vs stream-ordered copies, and the --adapt-every in 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 ram in 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

prompt A off/1 B on/1 C on/4 E off/4
chat0 (420 tok in all eight A and B rounds) 41.0 49.7 41.1 37.6
chat1 36.9 46.2 35.5 32.4
chat2 35.9 43.5 36.5 34.5
long (~8k in) 36.3 40.9 36.2 32.9
overlap gain (on vs off) cadence gain (1 vs 4)
at every-1 +21.1% (+12.7 ... +25.2, clean on all four) +20.0%
at every-4 +9.4% (+5.6 ... +10.0) +9.7%

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

hit rate every-1 every-4
off 82.6% 71.8%
on 81.8% 72.9%

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=1 with --adapt-every 1.

<!-- gh-comment-id:6233275616 --> @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 1. **The hit-rate line is retracted.** I said the overlap took decode hit rate from 74-79% to 85-88%. It doesn't: measured interleaved, the overlap moves hit rate by about a point in either direction (**-0.8** at every-1, **+1.2** at every-4). What moved it was the adaptive tier (`--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. 2. **I credited @yannickloth with an `--adapt-every` x overlap interaction they said they had not found.** My error; their correction stands. 3. **My +12.6% was at the shipped cadence (`--adapt-every 4`).** The clean number there is **+9.4%**; at `--adapt-every 1` it 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 own `timings`. 64 requests, 16 engine starts, one session - the same protocol shape as @yannickloth's A3000 run, so the two are directly comparable. ``` python tools/ab_engine.py strata-iq3_s-ab.json \ "A:exe=$STOCK,STRATA_ADAPT_OVERLAP=0" "B:exe=$STOCK,STRATA_ADAPT_OVERLAP=1" \ "C:exe=$STOCK,STRATA_ADAPT_OVERLAP=1,xargs=--adapt-every;4" \ "E:exe=$STOCK,STRATA_ADAPT_OVERLAP=0,xargs=--adapt-every;4" \ --rounds 4 --max-new 512 --long-words 6000 --port 8090 ``` | | | |---|---| | CPU | Xeon E5-2470 v2 (2013), 10c/20t, AVX only - no AVX2/AVX-512 | | Memory | 94 GiB DDR3, 46.84 GiB arena pinned | | GPU | RTX 5060 Ti 16 GB, PCIe 3.0 x8, probe 6.8 GB/s -> `pcie_frac 0.19` | | Cache | 4515 of 24576 pairs resident, 18.4% | | Engine | stock v0.1.44.1, no local changes, sha256 `69d8a654...`, 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: off` vs `stream-ordered copies`, and the `--adapt-every` in 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 ram` in 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 | prompt | A off/1 | B on/1 | C on/4 | E off/4 | |---|---|---|---|---| | chat0 (420 tok in all eight A and B rounds) | 41.0 | **49.7** | 41.1 | 37.6 | | chat1 | 36.9 | **46.2** | 35.5 | 32.4 | | chat2 | 35.9 | **43.5** | 36.5 | 34.5 | | long (~8k in) | 36.3 | **40.9** | 36.2 | 32.9 | | | overlap gain (`on` vs `off`) | cadence gain (1 vs 4) | |---|---|---| | at every-1 | **+21.1%** (+12.7 ... +25.2, clean on all four) | +20.0% | | at every-4 | **+9.4%** (+5.6 ... +10.0) | +9.7% | 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 | hit rate | every-1 | every-4 | |---|---|---| | off | 82.6% | 71.8% | | on | 81.8% | 72.9% | 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=1` with `--adapt-every 1`.
Sign in to join this conversation.
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
Niko1221/Strata#801
No description provided.