Skip to content

[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"; 0.1.65 works #6828

Done

Description

@Benderyu

[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-engine 0.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

  1. Install engine 0.1.66, start the server with the config above.
  2. Wait until it prints ready: http://127.0.0.1:8080/v1.
  3. Send any chat completion request (e.g. "Say hi", max_tokens 16).
  4. 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 loaded and 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 space is CUDA's error for an unsupported memory/graph operation; it appears both in the verify window and in kv_stream: reset.

Questions

  1. 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-mib or a smaller --prefill chunk the intended workaround on a mid-coverage (54%) 48 GB card?
  2. 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.

Activity

  1. Benderyu commented on Nov 23, 2026

    @Benderyu
    Author

    Confirming the same root cause as #6805 on this machine: the run config uses STRATA_HC_Q8=1 (Unsloth UD-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 (or STRATA_HC_Q8=0) and report the result here. This issue can be treated as a duplicate of #6805 if you prefer.

  2. cqyjitb commented on Nov 23, 2026

    @cqyjitb

    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=1 kept) 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), no never rang,
    no kv_stream: reset, and no LiveKernelEvent 141 since (two happened during the
    failing 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):

    metric 0.1.60 @4800 0.1.66 @5600
    cold prefill probe, 3 rounds 2436.5 tok/s (1 round) 2113 / 3378 / 3563
    172k cold prefill not measured 5554 tok/s
    decode, long context 119.6-133.6 tok/s @161-166k 136.5 tok/s @174.6k, 600 tok
    expert cache hit 98.9% 98.5%
    KV block reads in VRAM 95.65% 96.81%

    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 effect
    • STRATA_VERIFY_DEVICE_HITS=0 - no effect
    • --lookup-max-t 4 - no effect (windows 1,2,3,4,5,6 are still captured)
    • dropping --spec/--mtp is not testable: a native IQ pack hard-requires
      --spec T (T >= 2), the engine refuses to start, so that arm proves nothing

    VRAM 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-mib and the --prefill
    chunk 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:

    1. The updater's test start does not use the model config you edited. On this
      box it launched --pack ...\packs\swift-iq3_s, i.e. a different model, while
      I was setting the env in the UD config. Three installs failed with byte-identical
      logs. The env pair has to be in the env block of every terminal\strata-*.json
      that carries STRATA_HC_Q8=1. Please log the config path the probe launches,
      next to the effective env @a-dubrovin already asked for.
    2. After a successful install, Terminal keeps running the old engine. 0.1.66
      landed in components\engine\0.1.66-... and strata components engines says
      in 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 start is not true for
      serve/server.py --engine strata. Same for vision.exe. A docs line, and
      maybe a strata update follow-up that repoints (or reports) the pinned paths,
      would close the loop.
  3. gtrak commented on Nov 23, 2026

    @gtrak

    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 with verify: 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 rule low_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-cache are still needed for the last few percent.

    Not tested: cards ≤ 16 GiB keep the old rule here; Linux not tested.

  4. gtrak commented on Nov 24, 2026

    @gtrak

    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-cache unnecessary: #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.70 part still stands until a release changes that default. Worth retesting auto slots once either lands.

  5. Benderyu commented on Nov 24, 2026

    @Benderyu
    Author

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

    metric 0.1.65 0.1.67
    4K prompt (n=4,711) 2,273 tok/s 3,335 tok/s (+47%)
    8K prompt (n=9,154) 4,209 tok/s 4,272 tok/s (+1.5%)
    decode 1024 179.4 tok/s 187.7 tok/s (+4.6%)

    Closing as fixed; thanks for the quick turnaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions