[GH-ISSUE #2188] 0.1.43.1, Windows: STRATA_ADAPT_OVERLAP=1 stops the first request with "the adaptive tier's copies for layer 45 never landed" (RTX 4070 SUPER); STRATA_ADAPT_SIGNAL=host works #871

Closed
opened 2026-11-04 01:46:37 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @LeGeRyChEeSe on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2188

Summary

On Windows, STRATA_ADAPT_OVERLAP=1 (opt-in there since 0.1.43) fails on the first request of every run with the
default signal (stream-ordered copies):

ValueError: verify: the adaptive tier's copies for layer 45 never landed; its GPU waits were released and the GPU finished (#267)

With STRATA_ADAPT_SIGNAL=host added, the same runs finish and give the same speed as without the overlap.

setup runs result
STRATA_ADAPT_OVERLAP=1, --vision, --vram-reserve-mib 450 2 stopped at the first request
STRATA_ADAPT_OVERLAP=1, no vision, --vram-reserve-mib 1000 1 stopped at the first request
STRATA_ADAPT_OVERLAP=1 STRATA_ADAPT_SIGNAL=host, --vision, 450 3 fine; x1.005 decode against no overlap (median of 23 turns, 12 of 23 faster)

Setup

  • RTX 4070 SUPER 12 GB (PCIe 4.0 x16, driver 617.42), Ryzen 5 5600X, 64 GB DDR4-3600, Windows 11 Pro build 26300.
  • Engine 0.1.43.1 built from the tag (CUDA 13.1, archs 86;89). Flash-Next IQ2_XS (GSQ-RCO), the shipped expert profile.
  • Args: --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.7 --mtp <rt> --max-context 131072 --kv int8 --kv-resident 32768 --pcie-frac 0.55 --ple-io direct, plus the reserve and --vision above.
  • Load: the coding-agent replay from #1971 (public corpus), 256 tokens at T = 1.

Log before the stop (no vision run):

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)
strata serve: 753 MiB of VRAM free with everything loaded
strata verify: captured the 4-token window (upload no error, sync no error)
strata verify: captured the 1-token window (upload no error, sync no error)
strata verify: captured the 2-token window (upload no error, sync no error)

Since it is opt-in on Windows this does not hit default users; maybe the Windows opt-in should pick the host signal,
or the docs could mention it. The full engine logs are available.

Originally created by @LeGeRyChEeSe on GitHub (Oct 12, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2188 **Summary** On Windows, `STRATA_ADAPT_OVERLAP=1` (opt-in there since 0.1.43) fails on the first request of every run with the default signal (stream-ordered copies): ``` ValueError: verify: the adaptive tier's copies for layer 45 never landed; its GPU waits were released and the GPU finished (#267) ``` With `STRATA_ADAPT_SIGNAL=host` added, the same runs finish and give the same speed as without the overlap. | setup | runs | result | |---|---|---| | `STRATA_ADAPT_OVERLAP=1`, `--vision`, `--vram-reserve-mib 450` | 2 | stopped at the first request | | `STRATA_ADAPT_OVERLAP=1`, no vision, `--vram-reserve-mib 1000` | 1 | stopped at the first request | | `STRATA_ADAPT_OVERLAP=1 STRATA_ADAPT_SIGNAL=host`, `--vision`, 450 | 3 | fine; x1.005 decode against no overlap (median of 23 turns, 12 of 23 faster) | **Setup** - RTX 4070 SUPER 12 GB (PCIe 4.0 x16, driver 617.42), Ryzen 5 5600X, 64 GB DDR4-3600, Windows 11 Pro build 26300. - Engine 0.1.43.1 built from the tag (CUDA 13.1, archs 86;89). Flash-Next IQ2_XS (GSQ-RCO), the shipped expert profile. - Args: `--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.7 --mtp <rt> --max-context 131072 --kv int8 --kv-resident 32768 --pcie-frac 0.55 --ple-io direct`, plus the reserve and `--vision` above. - Load: the coding-agent replay from #1971 (public corpus), 256 tokens at T = 1. **Log before the stop** (no vision run): ``` 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) strata serve: 753 MiB of VRAM free with everything loaded strata verify: captured the 4-token window (upload no error, sync no error) strata verify: captured the 1-token window (upload no error, sync no error) strata verify: captured the 2-token window (upload no error, sync no error) ``` Since it is opt-in on Windows this does not hit default users; maybe the Windows opt-in should pick the host signal, or the docs could mention it. The full engine logs are available.
Author
Owner

@Zonnery commented on GitHub (Oct 13, 2026):

Same failure on a RTX 5090 32 GB / Windows 11 24H2, and our layer numbers differ (27 and 31, not 45) — so it does not look card-specific. Adding the repro data.

Environment

  • Windows 11 24H2 (26100), Ryzen 9 9950X3D, 125 GB RAM
  • RTX 5090 32 GB, driver 617.42, PCIe 5.0 x16
  • engine 0.1.43.1 (strata 0.1.43.1), installed via setup.py, ready-made CUDA engine
  • model: Qwen3.8-Flash-Next UD-IQ4_XS (Unsloth), 3 GGUF shards, 131072 -> 204800 ctx config

Config (only the overlap env vars differ between the two runs)

--expert-cache auto --prefill auto --spec 4 --max-context 204800 --kv int8 --kv-resident 32768
--resident-budget-gib 55 --vram-reserve-mib 1024 --spec-min-p 0.5
--adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97
--conversation-cache-mib 8192 --conversation-cache-slots 2 --conversation-cache-min-free-mib 8192

Trigger: STRATA_ADAPT_OVERLAP=1 + STRATA_ADAPT_OVERLAP_RESIDENT=1 in the config "env" section. The startup log then reports it as engaged:

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)

With only STRATA_ADAPT_OVERLAP=1 (no _RESIDENT) it stays off with STRATA_ADAPT_OVERLAP=1 is off: not in the resident RAM mode unless STRATA_ADAPT_OVERLAP_RESIDENT=1 — i.e. it needs both here, since the box runs in the resident RAM mode (resident RAM mode: 33.94 GiB of experts in RAM (page-locked), 9536 in the GPU cache; adaptive swaps exchange them with the GPU cache).

Symptom: the first request after start dies. Server side:

[strata] the engine reported an error: verify: the adaptive tier's copies for layer 27 never landed; its GPU waits were released and the GPU finished (#267)
[strata] done: 1 tokens in 20 s (0.0 tok/s) (error, cancel=False)
[strata] 400 invalid request: verify: the adaptive tier's copies for layer 27 never landed; ...
[strata] the engine had stopped (exit code 1); starting it again ...

A second run on the same config died the same way at a different layer:

The engine exited (code 1) after it reported: verify: the adaptive tier's copies for layer 31 never landed; its GPU waits were released and the GPU finished (#267)

The engine's own log ends at the verify capture with no error line, which is what makes it look like a silent exit:

strata verify: capturing the 6-token window (1960 MiB of VRAM free)
strata verify: captured the 6-token window (upload no error, sync no error)
strata verify: capturing the 2-token window (1559 MiB of VRAM free)
strata verify: captured the 2-token window (upload no error, sync no error)
<engine exits 1 here>

Not VRAM exhaustion. The first failure happened with 104 MiB of VRAM free ... LOW (that run also had other apps holding ~3.5 GiB on the card), but the second failure had 2079 MiB of VRAM free with everything loaded and still 1531-2079 MiB free while capturing windows — well above the 1024 MiB --vram-reserve-mib — and died identically.

Control run (same config, STRATA_ADAPT_OVERLAP* removed): stable and fast, so the rest of the config is fine:

prompt 33 tokens = 26 reused + 7 read in 136 ms, 512 generated in 2565 ms (199.6 tok/s), drafts accepted 384 of 384
prompt 33 tokens = 26 reused + 7 read in 109 ms, 512 generated in 2654 ms (192.9 tok/s), drafts accepted 384 of 384
prompt 43778 tokens = 0 reused + 43778 read in 13776 ms (3177.8 tok/s), 384 generated in 2083 ms (184.3 tok/s), drafts accepted 288 of 288
decode expert cache hit rate: 99.0% (…); resident RAM: 34.59 GiB of experts in RAM, 0 blob reads from the file

(peak seen on this box: 235.9 tok/s, 99.0% expert-cache hit, 44K ctx: 209.3 tok/s)

Happy to run any build/probe you want on this configuration — the box is dedicated to it and the crash is 100% reproducible on the first request.

<!-- gh-comment-id:6144775847 --> @Zonnery commented on GitHub (Oct 13, 2026): Same failure on a **RTX 5090 32 GB / Windows 11 24H2**, and our layer numbers differ (27 and 31, not 45) — so it does not look card-specific. Adding the repro data. **Environment** - Windows 11 24H2 (26100), Ryzen 9 9950X3D, 125 GB RAM - RTX 5090 32 GB, driver 617.42, PCIe 5.0 x16 - engine `0.1.43.1` (`strata 0.1.43.1`), installed via `setup.py`, ready-made CUDA engine - model: Qwen3.8-Flash-Next UD-IQ4_XS (Unsloth), 3 GGUF shards, 131072 -> 204800 ctx config **Config (only the overlap env vars differ between the two runs)** ``` --expert-cache auto --prefill auto --spec 4 --max-context 204800 --kv int8 --kv-resident 32768 --resident-budget-gib 55 --vram-reserve-mib 1024 --spec-min-p 0.5 --adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97 --conversation-cache-mib 8192 --conversation-cache-slots 2 --conversation-cache-min-free-mib 8192 ``` **Trigger**: `STRATA_ADAPT_OVERLAP=1` + `STRATA_ADAPT_OVERLAP_RESIDENT=1` in the config `"env"` section. The startup log then reports it as engaged: ``` 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) ``` With only `STRATA_ADAPT_OVERLAP=1` (no `_RESIDENT`) it stays off with `STRATA_ADAPT_OVERLAP=1 is off: not in the resident RAM mode unless STRATA_ADAPT_OVERLAP_RESIDENT=1` — i.e. it needs both here, since the box runs in the resident RAM mode (`resident RAM mode: 33.94 GiB of experts in RAM (page-locked), 9536 in the GPU cache; adaptive swaps exchange them with the GPU cache`). **Symptom**: the **first** request after start dies. Server side: ``` [strata] the engine reported an error: verify: the adaptive tier's copies for layer 27 never landed; its GPU waits were released and the GPU finished (#267) [strata] done: 1 tokens in 20 s (0.0 tok/s) (error, cancel=False) [strata] 400 invalid request: verify: the adaptive tier's copies for layer 27 never landed; ... [strata] the engine had stopped (exit code 1); starting it again ... ``` A second run on the same config died the same way at a different layer: ``` The engine exited (code 1) after it reported: verify: the adaptive tier's copies for layer 31 never landed; its GPU waits were released and the GPU finished (#267) ``` The engine's **own log ends at the verify capture with no error line**, which is what makes it look like a silent exit: ``` strata verify: capturing the 6-token window (1960 MiB of VRAM free) strata verify: captured the 6-token window (upload no error, sync no error) strata verify: capturing the 2-token window (1559 MiB of VRAM free) strata verify: captured the 2-token window (upload no error, sync no error) <engine exits 1 here> ``` **Not VRAM exhaustion.** The first failure happened with `104 MiB of VRAM free ... LOW` (that run also had other apps holding ~3.5 GiB on the card), but the second failure had `2079 MiB of VRAM free with everything loaded` and still 1531-2079 MiB free while capturing windows — well above the 1024 MiB `--vram-reserve-mib` — and died identically. **Control run (same config, `STRATA_ADAPT_OVERLAP*` removed)**: stable and fast, so the rest of the config is fine: ``` prompt 33 tokens = 26 reused + 7 read in 136 ms, 512 generated in 2565 ms (199.6 tok/s), drafts accepted 384 of 384 prompt 33 tokens = 26 reused + 7 read in 109 ms, 512 generated in 2654 ms (192.9 tok/s), drafts accepted 384 of 384 prompt 43778 tokens = 0 reused + 43778 read in 13776 ms (3177.8 tok/s), 384 generated in 2083 ms (184.3 tok/s), drafts accepted 288 of 288 decode expert cache hit rate: 99.0% (…); resident RAM: 34.59 GiB of experts in RAM, 0 blob reads from the file ``` (peak seen on this box: 235.9 tok/s, 99.0% expert-cache hit, 44K ctx: 209.3 tok/s) Happy to run any build/probe you want on this configuration — the box is dedicated to it and the crash is 100% reproducible on the first request.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks @LeGeRyChEeSe, the logs and the A/B made this clear. Under WDDM a stream's work waits in the driver's command buffer until a driver call submits it. With the stream-ordered signal the verify window only spins on a pinned int, so the last layers' copies (and their 4-byte signal copies) were never submitted.

In 0.1.44 (out now):

  • On Windows the overlap uses the host-function signal by default (your working setting). STRATA_ADAPT_SIGNAL=copy asks for the copy signal.
  • On every platform the engine now flushes the copy stream once after queueing the swaps. That is meant to fix the copy signal on Windows too, but we have no Windows box to run it on.

If you have time, a run with STRATA_ADAPT_OVERLAP=1 STRATA_ADAPT_SIGNAL=copy on 0.1.44 would tell us whether the flush is enough. Linux keeps the copy signal and is unchanged.

<!-- gh-comment-id:6153486099 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks @LeGeRyChEeSe, the logs and the A/B made this clear. Under WDDM a stream's work waits in the driver's command buffer until a driver call submits it. With the stream-ordered signal the verify window only spins on a pinned int, so the last layers' copies (and their 4-byte signal copies) were never submitted. In 0.1.44 (out now): - On Windows the overlap uses the host-function signal by default (your working setting). `STRATA_ADAPT_SIGNAL=copy` asks for the copy signal. - On every platform the engine now flushes the copy stream once after queueing the swaps. That is meant to fix the copy signal on Windows too, but we have no Windows box to run it on. If you have time, a run with `STRATA_ADAPT_OVERLAP=1 STRATA_ADAPT_SIGNAL=copy` on 0.1.44 would tell us whether the flush is enough. Linux keeps the copy signal and is unchanged.
Author
Owner

@LeGeRyChEeSe commented on GitHub (Oct 14, 2026):

Tested on 0.1.44, same box and same config as the report (RTX 4070 SUPER, Windows 11, driver 617.42, IQ2_XS, one card
for the engine, --vram-reserve-mib 450), built from the v0.1.44 tag. Public agent corpus (23 turns, contexts up to
~100K), one server run per setting:

Setting Result
STRATA_ADAPT_OVERLAP=1 (host-function signal, the new Windows default) 23/23 turns, no error
STRATA_ADAPT_OVERLAP=1 STRATA_ADAPT_SIGNAL=copy 23/23 turns, no error

With SIGNAL=copy the engine logs adaptive overlap signal: stream-ordered copies, and none of the "never landed"
stops that 0.1.43.1 hit on the first request with this config. So the flush after the swaps is enough on Windows/WDDM
here.

Speed, for what it's worth: both overlap settings are within run-to-run noise of 0.1.44 without overlap on this box
(median per-turn ratio x1.019 for host and x1.010 for copy, one run each against 7 runs without overlap).

Thanks for the fix.

<!-- gh-comment-id:6164247874 --> @LeGeRyChEeSe commented on GitHub (Oct 14, 2026): Tested on 0.1.44, same box and same config as the report (RTX 4070 SUPER, Windows 11, driver 617.42, IQ2_XS, one card for the engine, `--vram-reserve-mib 450`), built from the v0.1.44 tag. Public agent corpus (23 turns, contexts up to ~100K), one server run per setting: | Setting | Result | |---|---| | `STRATA_ADAPT_OVERLAP=1` (host-function signal, the new Windows default) | 23/23 turns, no error | | `STRATA_ADAPT_OVERLAP=1 STRATA_ADAPT_SIGNAL=copy` | 23/23 turns, no error | With `SIGNAL=copy` the engine logs `adaptive overlap signal: stream-ordered copies`, and none of the "never landed" stops that 0.1.43.1 hit on the first request with this config. So the flush after the swaps is enough on Windows/WDDM here. Speed, for what it's worth: both overlap settings are within run-to-run noise of 0.1.44 without overlap on this box (median per-turn ratio x1.019 for host and x1.010 for copy, one run each against 7 runs without overlap). Thanks for the fix.
Author
Owner

@ByteJuggler commented on GitHub (Oct 14, 2026):

Same on AMD, Windows: RX 6900 XT 16 GB (gfx1030 / RDNA2), prebuilt Windows HIP zip, Q2_0 model, single GPU.

  • 0.1.43.1: with STRATA_ADAPT_OVERLAP=1, the engine exits (code 1) with verify: the adaptive tier's copies for layer N never landed; its GPU waits were released and the GPU finished (#267) (N was 3, 8 and 10 on different requests). The server restarts it, and later requests fail the same way.
  • 0.1.44.1: the first request fails, now with verify: layer 10 never rang (unspecified launch failure), and the next request crashes the same way (layer 11 never rang).

Each crash shows up on Windows as a driver timeout (the AMD Bug Report Tool pops up). The same config without STRATA_ADAPT_OVERLAP runs fine on both versions. I haven't tried STRATA_ADAPT_SIGNAL=host.

System: i7-5930K, 64 GB RAM, Windows 11 23H2, AMD Software 26.8.1 (driver 32.0.21045.5002).

<!-- gh-comment-id:6166484401 --> @ByteJuggler commented on GitHub (Oct 14, 2026): Same on AMD, Windows: RX 6900 XT 16 GB (gfx1030 / RDNA2), prebuilt Windows HIP zip, Q2_0 model, single GPU. - **0.1.43.1:** with `STRATA_ADAPT_OVERLAP=1`, the engine exits (code 1) with `verify: the adaptive tier's copies for layer N never landed; its GPU waits were released and the GPU finished (#267)` (N was 3, 8 and 10 on different requests). The server restarts it, and later requests fail the same way. - **0.1.44.1:** the first request fails, now with `verify: layer 10 never rang (unspecified launch failure)`, and the next request crashes the same way (`layer 11 never rang`). Each crash shows up on Windows as a driver timeout (the AMD Bug Report Tool pops up). The same config without `STRATA_ADAPT_OVERLAP` runs fine on both versions. I haven't tried `STRATA_ADAPT_SIGNAL=host`. System: i7-5930K, 64 GB RAM, Windows 11 23H2, AMD Software 26.8.1 (driver 32.0.21045.5002).
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for the report. This is fixed in 0.2.0-beta (or an earlier release), and we're closing it as part of the tracker reset for 0.2.0-beta.

If it still happens on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment /reopen. A check runs and reopens it.

<!-- gh-comment-id:6270858521 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for the report. This is fixed in 0.2.0-beta (or an earlier release), and we're closing it as part of the tracker reset for 0.2.0-beta. If it still happens on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment `/reopen`. A check runs and reopens it.
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#871
No description provided.