[GH-ISSUE #4698] [Engine] Windows SYCL host arena: STRATA_VERIFY_NO_HOST=1 returns '!'x256 from the first token, =0 is correct (Arc Pro B70, IQ3_S, engine 0.1.53) #2147

Open
opened 2026-11-04 01:57:03 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @demetree on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4698

Problem

On a Windows build of the SYCL port (this fork's windows-sycl branch, engine 0.1.53, PR #3607), a model whose experts do not fit the card and that runs out of the host arena (no --stream-experts) returns garbage from the first token when STRATA_VERIFY_NO_HOST=1: the reasoning channel is !×256 and the answer is empty. With STRATA_VERIFY_NO_HOST=0 the same request, same config, same model answers correctly.

The engine says which path it took:

strata generate: expert arena: locked 47965 MiB via working-set minimum + VirtualLock; pageable SYCL arena; use --stream-experts for a USM mirror; large pages refused for 50295996416 B

Environment

  • Arc Pro B70 32 GB, driver 32.0.101.8976 (2026-08-27), Level Zero loader 1.32.0, oneAPI 2026.2 (icx 2026.2.0).
  • Core i9-9900 (no AVX-512), 64 GB DDR4-2666, Windows 11 25H2 (10.0.26200).
  • Engine 0.1.53, built from windows-sycl at 3e61b74e (upstream 0.2.7.1 merged into the fork; PR #3607 is open and unmerged) with sycl\tools\build_windows.bat.
  • Model: ISTA-DASLab Qwen3.8-Flash-Next GSQ-RCO IQ3_S (3.50 bpw), two shards, sha256 4c1eb2ce…aca3 (shard 1) and 316b46f3…e113 (shard 2), both verified against the HF tree. Pack built by tools/iq_pack.py from shard 1; MTP draft from the pinned base checkpoint (de4b8e4d).
  • 24,576 experts, 46.84 GiB in the host arena, 9,114–11,938 slots in VRAM (21.4–22.8 GiB), 68–77% hit rate on these requests.

Reproduce

Config (A and B differ only in the env var):

--pack C:\Strata-data\packs\iq3_s
--native C:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf
--ple-gguf C:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf
--expert-profile E:\Strata\data\expert-profile-sycl.bin   (24,576 ranked pairs)
--expert-cache auto --spec 2 --max-context 8192 --kv int8 --prefill 4096 --vram-reserve-mib 1024
env: ONEAPI_DEVICE_SELECTOR=level_zero:gpu ZES_ENABLE_SYSMAN=1 STRATA_VERIFY_DEVICE_PLAN=1
     STRATA_STAGER_THREADS=12 STRATA_VERIFY_NO_HOST=<1|0>
python sycl/serve/server_intel.py --engine strata --config <config>.json --port 8081 --host 127.0.0.1

One request:

curl -s http://127.0.0.1:8081/v1/chat/completions -H 'Content-Type: application/json' \
  -d '{"model":"qwen3.8-flash-next-iq3_s","messages":[{"role":"user","content":"What is 17 * 23? Answer with the number only."}],"max_tokens":400,"temperature":0.2}'

Result

STRATA_VERIFY_NO_HOST=1 STRATA_VERIFY_NO_HOST=0
reasoning !!!!!!!!!!!!!!!!… (12 runs of 20+ !, 255 chars) We need answer user's simple arithmetic: 17*23 = 391. Need final number only. Ensure no extra.
answer empty 391
completion tokens 256 in 7.2 s 36 in 2.7 s

Repeatability: A produced this every time — 5 starts (32K with --spec 4 + MTP; 8K with --spec 2; and 8K with STRATA_PREFILL_MMQ=0 to rule the int8 prompt path out). B was correct every time (3 starts). The same settings also repeat ! on IQ3_XXS, so it is not specific to this quantization.

What I think is happening (hypothesis, not confirmed)

With the host arena and NO_HOST=1, nothing computes the misses on the CPU, so the GPU reads the routed expert rows from pageable host memory over PCIe while the CPU is filling the same arena — the window the R4 hit path and the doorbell are meant to guard. With NO_HOST=0 the CPU computes the misses and the values are right. I have not instrumented the copy or the window, so this comes from the log line and the A/B, not from a trace.

Limits

  • One machine, one quantization, Windows only; not run on Linux.
  • The only alternative path here is --stream-experts, and it is not usable on this box: it pins 46.84 GiB and then dies at startup with UR_RESULT_ERROR_DEVICE_LOST, so the mirror could not be compared.
  • The Windows engine is unmerged (#3607). The _WIN32 branches in sycl/src/core/pinned.dp.cpp are upstream, but I have not verified that upstream reaches this code on Windows, so this may be fork-only today.
  • #4053 (and closed #2500): the same !×256 symptom, but as a long-generation ratchet at a spin bound with the CPU serving the misses (NO_HOST=0). This report is deterministic from token 1 and appears only with NO_HOST=1.
  • #4116: IQ3_S on a 64 GB-visible Windows machine exhausts RAM in the expert arena. We hit the same wall from the other side — 47.9 GiB locked and a full benchmark run hung the engine with 89 MiB of RAM free.
Originally created by @demetree on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4698 ## Problem On a Windows build of the SYCL port (this fork's `windows-sycl` branch, engine **0.1.53**, PR #3607), a model whose experts do not fit the card and that runs **out of the host arena** (no `--stream-experts`) returns garbage from the first token when `STRATA_VERIFY_NO_HOST=1`: the reasoning channel is `!`×256 and the answer is empty. With `STRATA_VERIFY_NO_HOST=0` the same request, same config, same model answers correctly. The engine says which path it took: ``` strata generate: expert arena: locked 47965 MiB via working-set minimum + VirtualLock; pageable SYCL arena; use --stream-experts for a USM mirror; large pages refused for 50295996416 B ``` ## Environment - Arc Pro B70 32 GB, driver 32.0.101.8976 (2026-08-27), Level Zero loader 1.32.0, oneAPI 2026.2 (icx 2026.2.0). - Core i9-9900 (no AVX-512), 64 GB DDR4-2666, Windows 11 25H2 (10.0.26200). - Engine 0.1.53, built from `windows-sycl` at `3e61b74e` (upstream 0.2.7.1 merged into the fork; PR #3607 is open and unmerged) with `sycl\tools\build_windows.bat`. - Model: ISTA-DASLab Qwen3.8-Flash-Next GSQ-RCO **IQ3_S** (3.50 bpw), two shards, sha256 `4c1eb2ce…aca3` (shard 1) and `316b46f3…e113` (shard 2), both verified against the HF tree. Pack built by `tools/iq_pack.py` from shard 1; MTP draft from the pinned base checkpoint (`de4b8e4d`). - 24,576 experts, **46.84 GiB in the host arena**, 9,114–11,938 slots in VRAM (21.4–22.8 GiB), 68–77% hit rate on these requests. ## Reproduce Config (A and B differ only in the env var): ``` --pack C:\Strata-data\packs\iq3_s --native C:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --ple-gguf C:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf --expert-profile E:\Strata\data\expert-profile-sycl.bin (24,576 ranked pairs) --expert-cache auto --spec 2 --max-context 8192 --kv int8 --prefill 4096 --vram-reserve-mib 1024 env: ONEAPI_DEVICE_SELECTOR=level_zero:gpu ZES_ENABLE_SYSMAN=1 STRATA_VERIFY_DEVICE_PLAN=1 STRATA_STAGER_THREADS=12 STRATA_VERIFY_NO_HOST=<1|0> ``` ```sh python sycl/serve/server_intel.py --engine strata --config <config>.json --port 8081 --host 127.0.0.1 ``` One request: ```sh curl -s http://127.0.0.1:8081/v1/chat/completions -H 'Content-Type: application/json' \ -d '{"model":"qwen3.8-flash-next-iq3_s","messages":[{"role":"user","content":"What is 17 * 23? Answer with the number only."}],"max_tokens":400,"temperature":0.2}' ``` ## Result | | `STRATA_VERIFY_NO_HOST=1` | `STRATA_VERIFY_NO_HOST=0` | |---|---|---| | reasoning | `!!!!!!!!!!!!!!!!…` (12 runs of 20+ `!`, 255 chars) | `We need answer user's simple arithmetic: 17*23 = 391. Need final number only. Ensure no extra.` | | answer | empty | `391` | | completion tokens | 256 in 7.2 s | 36 in 2.7 s | Repeatability: A produced this every time — 5 starts (32K with `--spec 4` + MTP; 8K with `--spec 2`; and 8K with `STRATA_PREFILL_MMQ=0` to rule the int8 prompt path out). B was correct every time (3 starts). The same settings also repeat `!` on **IQ3_XXS**, so it is not specific to this quantization. ## What I think is happening (hypothesis, not confirmed) With the host arena and `NO_HOST=1`, nothing computes the misses on the CPU, so the GPU reads the routed expert rows from **pageable** host memory over PCIe while the CPU is filling the same arena — the window the R4 hit path and the doorbell are meant to guard. With `NO_HOST=0` the CPU computes the misses and the values are right. I have not instrumented the copy or the window, so this comes from the log line and the A/B, not from a trace. ## Limits - One machine, one quantization, Windows only; not run on Linux. - The only alternative path here is `--stream-experts`, and it is not usable on this box: it pins 46.84 GiB and then dies at startup with `UR_RESULT_ERROR_DEVICE_LOST`, so the mirror could not be compared. - The Windows engine is unmerged (#3607). The `_WIN32` branches in `sycl/src/core/pinned.dp.cpp` are upstream, but I have not verified that upstream reaches this code on Windows, so this may be fork-only today. ## Related - #4053 (and closed #2500): the same `!`×256 symptom, but as a long-generation ratchet at a spin bound with the **CPU** serving the misses (`NO_HOST=0`). This report is deterministic from token 1 and appears only with `NO_HOST=1`. - #4116: IQ3_S on a 64 GB-visible Windows machine exhausts RAM in the expert arena. We hit the same wall from the other side — 47.9 GiB locked and a full benchmark run hung the engine with 89 MiB of RAM free.
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#2147
No description provided.