Repository navigation
Done
Description
[Engine] 0.1.66: first request always kills the engine on Windows 11 + RTX 4090 (WDDM) — verify window fails with "operation not supported on global/shared address space"; identical config works on 0.1.65
Summary
After updating the engine from 0.1.65 to 0.1.66 (Strata 0.2.20), every first request to a Qwen3.8-Flash-Next native pack kills the engine during the verify window warm-up:
strata serve: window warm-up: ms per width 1:3170, total 3181 ms; a window failed:
verify: layer 0 never rang (operation not supported on global/shared address space)
kv_stream: reset: operation not supported on global/shared address space
The request returns HTTP 503. It happens on the first request after every start, before any token is produced. The same machine, config and model run fine on 0.1.65.
Environment
- Windows 11 Pro 10.0.26300 (build 26300), WDDM
- NVIDIA RTX 4090 48 GB (modded), driver 621.14, CUDA 13 build of the engine
- Intel i9-13900K, 128 GB DDR5-6000
- Strata 0.2.20, engine
strata-engine0.1.66 (windows-x86_64-cuda-cuda13) - Model: Qwen3.8-Flash-Next UD-Q4_K_XL (huihui abliterated GGUF), native pack built with
tools/iq_pack.py --compat-bf16(native_experts.txt v4, 77,017,907,200 B of experts)
Run config (server.py direct start, same as 0.1.65)
--pack D:\Strata-data\packs\unsloth-ud-q4_k_xl
--native D:\Strata-data\models\UD-Q4_K_XL\Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf
--expert-cache auto --prefill auto:32768 --max-context 262144
--kv int8 --kv-resident 32768 --vision --vram-reserve-mib 256
--conversation-cache-mib 16384 --conversation-cache-slots 6
--pool-workers 12 --pcie-frac 0.20
--spec 6 --draft dflash2 --draft-model …qwen3.8-flash-next-dflash2.q4_0.pack --draft-fallback none --draft-conf 0.35
Steps to reproduce
- Install engine 0.1.66, start the server with the config above.
- Wait until it prints
ready: http://127.0.0.1:8080/v1. - Send any chat completion request (e.g.
"Say hi", max_tokens 16). - The engine logs the window failure and exits; the request returns 503.
100% reproducible (7 starts, all failed), and it starts failing on the very first request, not after a long prompt.
Log excerpt (0.1.66, representative)
strata serve: #4870 mid-coverage expert cache (13342 of 24576 slots, 54.3%): adaptive defaults every 4 -> 2, swaps 96 -> 192, decay 0.70 -> 0.92
strata serve: 538 MiB of VRAM free with everything loaded
strata verify: capturing the 1-token window (538 MiB of VRAM free)
strata verify: captured the 1-token window (upload no error, sync no error) in 9.5 ms
strata serve: window warm-up: ms per width 1:2947, total 2957 ms; a window failed:
verify: layer 0 never rang (operation not supported on global/shared address space)
kv_stream: reset: operation not supported on global/shared address space
With drafting off, the engine also printed its own WDDM hint:
strata serve: 500 MiB of VRAM free with everything loaded
strata serve: that is little room for the verify windows' buffers under WDDM; if the engine
exits right after this line, --prefill auto:8192 (a smaller prompt chunk borrows fewer
cache slots) or a larger --vram-reserve-mib ...
Workarounds tried (all still fail identically)
| Attempt | Result |
|---|---|
STRATA_VERIFY_DEVICE_HITS=0 |
same crash |
STRATA_SM89_PERF=0 (all 17 sm_89 switches off) |
same crash |
drafting=off (no DFlash2) |
same crash |
Different --prefill? |
not yet tried (auto:8192 is the engine's own hint) |
Notes:
- The crash is independent of the new sm_89 switch set: turning all 17 off does not help.
- 0.1.65 with the exact same config prints
412 MiB of VRAM free with everything loadedand works. So 0.1.66 seems to need more device headroom for its new verify window / device-side decision path, or the new path has a CUDA error on WDDM. - Error text
operation not supported on global/shared address spaceis CUDA's error for an unsupported memory/graph operation; it appears both in the verify window and inkv_stream: reset.
Questions
- Does 0.1.66 change the VRAM the verify windows need (e.g. the device-side decision / device-hit path)? Is a larger
--vram-reserve-mibor a smaller--prefillchunk the intended workaround on a mid-coverage (54%) 48 GB card? - Is this a known WDDM issue in 0.1.66? Any switch to fall back to the 0.1.65 verify path?
I can test any suggested setting on this machine.
Reacted by Bahamut
Metadata
Metadata
Assignees
Labels
No labels
Activity
Benderyu commentedon Nov 23, 2026
Confirming the same root cause as #6805 on this machine: the run config uses
STRATA_HC_Q8=1(UnslothUD-Q4_K_XL, native pack) on an RTX 4090 48 GB under WDDM. Per @Niko1221's reply in #6805, engine 0.1.66 has a bug in the Q8_0 hyper-connection path and the fix (#6714) is scheduled for 0.2.21.I will re-test 0.1.66 with
STRATA_HC_Q8_TC=0+STRATA_HC_Q8_BF16TC=0(orSTRATA_HC_Q8=0) and report the result here. This issue can be treated as a duplicate of #6805 if you prefer.cqyjitb commentedon Nov 23, 2026
Confirming on a 4th box, and reporting one thing that cost me three failed installs.
Box: RTX 4090 48 GB (sm_89), i9-14900KF (no AVX-512), Windows, driver 581.15,
engine 0.1.66 windows-x86_64-cuda-cuda13, model Qwen3.8-Flash-Next UD-IQ4_XS (native IQ pack).
Run config carries
STRATA_HC_Q8=1.STRATA_HC_Q8_TC=0+STRATA_HC_Q8_BF16TC=0(both,STRATA_HC_Q8=1kept) fixes it.The engine installed and test-started clean afterwards: all 7 verify windows
(1,2,3,4,5,6,12) captured,
session is up (engine 0.1.66), nonever rang,no
kv_stream: reset, and no LiveKernelEvent 141 since (two happened during thefailing runs).
Post-fix numbers on this box (caveat: XMP 4800 -> 5600 MT/s landed in the same
window, so the prefill gain is not attributable to the engine alone):
Arms ruled out here, all with the identical
verify: layer 0 never rang+kv_stream: reset: operation not supported on global/shared address space:STRATA_SM89_PERF=0(all 17 sm_89 switches off) - no effectSTRATA_VERIFY_DEVICE_HITS=0- no effect--lookup-max-t 4- no effect (windows 1,2,3,4,5,6 are still captured)--spec/--mtpis not testable: a native IQ pack hard-requires--spec T (T >= 2), the engine refuses to start, so that arm proves nothingVRAM headroom is not the variable: the failing 0.1.66 runs reported
2362-2938 MiB free with everything loaded, i.e. more than a healthy 0.1.60
run on the same config (2265 MiB). So
--vram-reserve-miband the--prefillchunk size cannot be the fix, and the engine's own WDDM hint points the wrong way here.
Two things that would have saved me hours:
box it launched
--pack ...\packs\swift-iq3_s, i.e. a different model, whileI was setting the env in the UD config. Three installs failed with byte-identical
logs. The env pair has to be in the
envblock of everyterminal\strata-*.jsonthat carries
STRATA_HC_Q8=1. Please log the config path the probe launches,next to the effective env @a-dubrovin already asked for.
landed in
components\engine\0.1.66-...andstrata components enginessaysin use, newest, but the configs pin"exe": "...\terminal\engine\strata.exe",a 0.1.60 copy, so
installed and will be used on the next startis not true forserve/server.py --engine strata. Same forvision.exe. A docs line, andmaybe a
strata updatefollow-up that repoints (or reports) the pinned paths,would close the loop.
gtrak commentedon Nov 23, 2026
We hit this exact machine class and can separate the two problems.
Crash: fixed by PR #6714. Windows 11 WDDM, RTX 4090 24 GB, driver 621.24, CUDA 13.0, Unsloth UD-Q4_K_XL. With the #6714 diff the engine captures verify widths 1–8 (
upload no error, sync no error) and serves; before it, the warm-up fails at width 1/2 withverify: layer 0 never rang (operation not supported on global/shared address space). Our Q8 HC TC-on vs scalar A/B at 256 tokens was 33.1 vs 33.8 tok/s, so the fix is performance-neutral here.Decode after the fix: the ~11% regression is separate and bisects to
d28c053e6("perf(low-vram): optimize 8 GB & 12 GB consumer GPUs…"). On a 24 GB card the new tiny-cache rulelow_vram_pin_slots()keys on cache fraction, not card size: at 20.8% resident it pins 25% of slots while the #4870 15–65% rule raises swaps to 2/192, and the WDDM floor shrinks the auto cache (5,096 vs 0.1.65's 5,257). Details, bisect steps and a paired 6-round A/B are in #6799.Validated remedy on 0.1.66 (paired, 6 rounds, equal slots):
STRATA_CACHE_PIN_FRAC=0,--expert-cache 5000,--adapt-every 4 --adapt-swaps 96 --adapt-decay 0.70→ long decode 37.0 vs 0.1.65's 37.0, prefill +31%. A local code gate (pinning only on <= 16 GiB cards, unit test updated) removes the pinning part automatically; the adaptive rate and--expert-cacheare still needed for the last few percent.Not tested: cards ≤ 16 GiB keep the old rule here; Linux not tested.
gtrak commentedon Nov 24, 2026
Follow-up: the pin gate is now PR #6948 (
low_vram_pin_slots()stays off above 16 GiB; unit test updated with the 8/12/16/24 GiB boundary). That removes the pinning part on this card automatically.For the cache-slot part of the recipe above, two open PRs touch the same WDDM shrink/under-sizing and may make
--expert-cacheunnecessary: #6943 (fixes #6942, the WDDM cache shrink on long prompts) and #6089 (caps the shrink step at 256 MiB). Neither touches the pinning or the #4870 15-65% adaptive rate, so the--adapt-every 4 --adapt-swaps 96 --adapt-decay 0.70part still stands until a release changes that default. Worth retesting auto slots once either lands.Benderyu commentedon Nov 24, 2026
Verified fixed on this machine with engine 0.1.67 (Strata 0.2.21): the first request completes and the verify window warm-up succeeds, no more
layer 0 never rang/kv_stream: reset.Cache-disabled A/B against 0.1.65 on identical prompts (RTX 4090 48 GB, WDDM, UD-Q4_K_XL native pack):
Closing as fixed; thanks for the quick turnaround.