[GH-ISSUE #5505] [Engine] Arc A770 (Alchemist) on Windows: first serving run — graph gate, FP64 channel, UR_L0_DEBUG stall, 4 GiB cap #5475

Open
opened 2026-11-07 23:43:55 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Gotya-OFFCIAL on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5505

Form

Problem: The SYCL engine had never been run on a Windows Arc A-series card (docs/INTEL_ARC.md: "What has not been run on Windows: … the Arc A-series"). Running PR #3607 head on an A770 surfaced: (1) a hard startup gate on command_graph_supported that is stricter than the engine's needs on DG2, (2) a documentation error for the Windows A-series FP64 path, (3) UR_L0_DEBUG=1 silently turning the doorbell handshake into a watchdog timeout, and (4) a ≥4 GiB single-allocation cap that pins the expert cache to ~10 % residency. With two of these addressed by config and one by a two-line patch, the engine serves and generates.

Environment: see the table in §1 below — Arc A770 16 GB (devid 56a0), Windows driver 32.0.101.9150, oneAPI 2026.1, Ryzen 7 1700 (AVX2), 32 GB RAM, Windows 11, port-windows = PR #3607 head a43f3e5d (engine 0.1.57), Qwen3.8-Flash-Next-GSQ-RCO IQ2_XS ~68 GB on SSD.

Reproduce: build per §2 (one two-line patch), then sycl/serve/server_intel.py --config strata-iq2-xs.json with the args/env in §3; probe with fp64_probe.cpp (§4b) and usm_probe.cpp (§4d) for the FP64 and allocation findings.

Expected: per docs/INTEL_ARC.md, no Windows A-series path exists; per docs/INTEL.md:244, the IGC_EnableDPEmulation/OverrideDefaultFP64Settings/NEOReadDebugKeys triple should enable double kernels on A-series.

Actual: the engine builds clean and serves and generates on the A770 through Level Zero (0.9 cold → 4.5–13.1 tok/s warm, cache-limited); the IGC_* triple reports aspect::fp64=1 while every double kernel fails to compile, and the working channel is NEO_FP64_EMULATION=1; UR_L0_DEBUG=1 slows each host↔device handshake to 2.5–5 s (trace: waitA=2511334.7 µs, waitB=5091421.5 µs) which overruns the watchdog; single device/host-pinned allocations ≥4 GiB fail unless UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1.

Evidence: engine log excerpts inline below; strata-stall-*.dmp (3 files), the 385 MB / 3,595,459-line UR_L0_DEBUG=1 capture, both probes, the ctest summary and the working config JSON are available on request (§6).

Reproduction status: reproduced locally, end to end, on the named box. Findings (a), (b), (c), (d) were each verified by a direct experiment (build+serve, compile probe, timing trace, allocation probe) — not static analysis.


Labels suggested: intel, windows, a-series / alchemist, community-port, data-point
Related: #3607 (community Windows SYCL port, head a43f3e5d), #5406 (A770 Linux decode 32.6/28.1 tok/s), #5236 (Windows port merge/preview/defer)
What this is: a data point, not a bug report against one line. docs/INTEL_ARC.md currently says the Arc A-series has not been run on Windows ("What has not been run on Windows: … the Arc A-series"). Below is what happened when it was. The engine serves, generation works, and everything that blocked it is recorded with evidence so the next person on this hardware does not spend a day on it.


1. Environment

GPU Intel Arc A770, 16 GB (engine --list-devices reports vram_gb: 15.5594, PCI devid: 56a0, Alchemist/DG2)
GPU driver 32.0.101.9150 (Windows display driver, stock/factory install)
SYCL/Level Zero oneAPI 2026.1 (DPC++/C++ Compiler + oneMKL + ocloc + TBB); sycl-ls reports [level_zero:gpu] Intel(R) Arc(TM) A770 Graphics 12.55.8 [1.17.39894+4]
CPU / RAM AMD Ryzen 7 1700 (16 logical, Zen1 — AVX2 only, no AVX-512), 32 GB
OS Windows 11
Toolchain VS2022 MSVC 14.44, icx, CMake 4.4 + Ninja
Engine port-windows = PR #3607 head a43f3e5d (0.1.57 / upstream 0.2.11)
Model Qwen3.8-Flash-Next-GSQ-RCO IQ2_XS, 2 shards, 39,225,954,592 + 28,800,138,432 bytes (~68 GB total), SHA-256 checked against the setup registry
Model / pack location GGUF on F: SSD; IQ pack (dense.bin 1.43 GiB + tokenizer + native_experts.txt) on F: SSD

Notes that cost time and may matter to others:

  • vswhere.exe is absent and oneAPI is not in a default location, so upstream sycl/tools/build_windows.bat exits 1 immediately. A local wrapper (build_windows_local.bat: vcvars64 → setvars.bat → cmake/ninja) was used instead.
  • A770 shows up as driver: level_zero with no i915 path on Windows (i915 is Linux-only), which is why the documented Alchemist code path and the Windows code path had never met.
  • Do not run a serve with PYTHONDONTWRITEBYTECODE unset on a flaky HDD repo drive: python hung in importlib._bootstrap_external._write_atomic writing __pycache__ to a stalling disk and looked like an engine hang.

2. Build — clean, plus one two-line gate patch

  • Full build of PR #3607 head a43f3e5d: zero errors, strata.exe = 48,987,648 bytes (engine 0.1.57). No -DSTRATA_SYCL_AOT (Alchemist has no AOT target; JIT only).

  • ctest: 71 of 83 passed, 12 failed. 11 of the 12 fail with 0xc0000409 (STACK_BUFFER_OVERRUN) and are all tests whose reference kernel is written in double — see §4b. ple_parity fails on the missing Q2_0 fixture (known, pre-existing, same on the B-series box).

  • The one patch this port needed — sycl/src/program/generate.cpp:2178 turned a hard failure into a warning:

    --- a/sycl/src/program/generate.cpp
    +++ b/sycl/src/program/generate.cpp
    @@ -2177,6 +2177,5 @@
             if (!d.has(sycl::aspect::ext_oneapi_graph)) {
    -            std::fprintf(stderr, "strata generate: command graphs are unavailable (ext_oneapi_graph); check the Intel GPU driver and oneAPI runtime\n");
    -            return 2;
    +            std::fprintf(stderr, "strata generate: command graphs are unavailable (ext_oneapi_graph); continuing without graph capture (set STRATA_VERIFY_EAGER=1 and do not pass --mtp)\n");
             }
    

    Rebuilt with cmake --build build-sycl-win --target strata, BUILD_RC=0.

3. Run — it serves and generates on Windows

Launch: sycl/serve/server_intel.py --config strata-iq2-xs.json, engine args of note:

--pack F:\AI\Strata-data\packs\iq2_xs
--native  ...00001-of-00002.gguf          (an IQ pack requires --native)
--ple-gguf ...00002-of-00002.gguf
--spec 2 --prefill 1024 --max-context 8192 --stream-experts --vram-reserve-mib 1024

Engine log, startup sequence:

strata generate: command graphs are unavailable (ext_oneapi_graph); continuing without graph capture ...
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2
strata generate: 1466 MiB of weights loaded from packs in 0.9 s (302 canonical tensors skipped: served natively)
strata generate: 300 native projection matrices, 1474.85 MiB of weights, in 4.6 s
strata generate: PLE on, table 320001536 rows
strata generate: expert cache 5316 slots, 7.15 GiB of VRAM  (with UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1, see §4d)
strata generate: 2914 of 19260 experts missing from VRAM mirrored in pinned host memory (3.91 GiB, 9.1 s); the GPU reads them over PCIe
strata generate: session is up (engine 0.1.57)

/health returned ok; the OpenAI-compatible endpoint answered on 127.0.0.1:8080/v1. Generation works: coherent English reasoning_content; speculative decoding engaged (draft_n_accepted 2/2). IQ2_XS quality plus partial expert residency is what you would expect, not a defect.

Measured decode — a ramp, not a plateau

Point Decode Notes
First request (cold) 0.9 tok/s 57 prompt tokens took 40 s including first-token JIT; 16 generated tokens
First warm request 2.3 tok/s 40 tokens / 68 s, expert-cache hit 41.2 %
Warm, larger cache (§4d) 4.5 – 13.1 tok/s cache hit 76 → 91 %; repetition-heavy spans decode fastest and inflate the peak

Please read this as a range under a floor configuration, not a benchmark: single machine, greedy + --spec 2, 8K context, and the bottleneck (expert cache size, §4d) is not yet tuned. Published anchors: A750/i915 IQ3_XXS 10–19 tok/s, B70 mirror 40.3 tok/s, #5406's A770 on Linux at 32.6/28.1 tok/s (8K/32K).

Secondary observation: some prompts fall into an "!!!!" repetition loop after ~10–20 tokens under greedy + spec 2. Isolated so far from sampling (temperature 0.7 same), cache size (sub-4-GiB same), and the serve path (mirror on/off same) — open item, correctness gates from docs/A770_SPEED_SPEC.md are the planned tool.

4. Findings

(a) ext_oneapi_graph is limited on DG2 — the engine's gate is stricter than the engine needs

  • --list-devices on this box reports command_graph_supported: false where the B70 reference box reports true. That is the driver/Level-Zero adapter, not a PATH artifact — it persists with the full setvars environment sourced. (Per compute-runtime source, DG2 advertises a reduced mutable-command capability set vs Xe2; the numbers behind that reading are in the author's notes, not re-derived here.)
  • Two places gate on it:
    • sycl/src/program/generate.cpp:2178 — hard return 2. It is really a performance path, not a correctness dependency: with the warning-only patch, generation, speculative decode and the verify window all work (this run is proof).
    • sycl/setup_intel.py:126-128 — out of the box setup --backend sycl refuses an A770 on Windows and the user is left to hand-write a config (which is what was done here).
  • Proposal: warn, do not exit, in generate.cpp; in setup_intel.py make command_graph_supported a warning that sets STRATA_VERIFY_EAGER=1 in the written config instead of skipping the card. --mtp and the stepped/capture_segments paths should report a clear "needs graphs" error rather than failing later.

(b) FP64 on a factory Windows driver: NEO_FP64_EMULATION=1 is the channel; the IGC_* pair is a dead end

Alchemist has no FP64 units. docs/INTEL.md:244 documents the A-series path as IGC_EnableDPEmulation=1, OverrideDefaultFP64Settings=1, NEOReadDebugKeys=1. On Windows driver 32.0.101.9150 that combination does not work, and worse, it lies:

  • aspect::fp64 reports 1 while any kernel that actually uses double fails to compile: "Double type is not supported on this platform".
  • That mismatch is exactly the shape of the 11 0xc0000409 ctest failures: the test's double reference kernel throws at compile time and the throw is uncaught. They are not Alchemist kernel bugs.
  • The channel that works is the NEO release variable NEO_FP64_EMULATION=1, which injects -ze-fp64-gen-emu into the IGC build options. Verified by a standalone probe (buffer<double> parallel_for with sqrt/div/fma, bitwise-matched against host reference, 3 stable runs).
  • Serving does not need any of this. The whole --native load path completed without a single FP64 error — the native path does not compile a double kernel. The emulation variable is needed for the test suite, not for serving. Worth saying in INTEL_ARC.md, because the current text makes A-series look FP64-blocked for serving. On Linux the IGC_* keys are reported to work (#5406), so the doc fix is platform-specific.

(c) The "driver hang" was UR_L0_DEBUG=1 — a 2.5–5 s per-handshake slowdown that overruns the watchdog

Symptom: first inference request hangs in the verify window. The last GPU command before the hang is zeCommandListAppendLaunchCooperativeKernel. It looks exactly like "the Alchemist Windows Level Zero driver cannot complete a cooperative launch". Knobs tried and found insufficient: STRATA_WINDOW_SYNC=1, --spec 2, STRATA_VERIFY_HOST_UNCACHED=1, STRATA_MIRROR_MIB=0, --prefill 1024, --vram-reserve-mib 2048.

Root cause: the diagnostic switch itself. UR_L0_DEBUG=1 emits one log line per Level Zero call — 3,595,459 lines for a single request (385 MB). The per-call log write pushes each host↔device handshake from milliseconds to seconds, and 40 layers × 5 s cannot finish inside the watchdog. Turn UR_L0_DEBUG off and the same window completes on the first try.

Engine trace with the variable on:

strata serve: stall report (engine 0.1.57): stage "verify window: waiting for the GPU to reach layer 1" for 42 s
  layer 0 group 0: ... router+ring(17)=37849.8 shared(18)=37864.2
                   waitA(19)=2511334.7 VRAM hits(20)=2511413.4 waitB(21)=5091421.5 PCIe grp(22)=5091468.1

waitA / waitB are the GPU spinning on the CPU expert-pool flags: 2.51 s and 5.09 s per execution. The host pool was idle with all jobs done — the host was not short of work, it was short of time to log.

Two asks:

  1. Document it: never leave UR_L0_DEBUG on for a serve run; it converts a healthy window into a watchdog timeout with a cooperative-kernel last command — a highly misleading signature.
  2. Consider a guard: if UR_L0_DEBUG is set when --serve starts, print a one-time warning.

A real open item survives: --graph capture currently AVs with 0xC0000005 on this box (the eager path serves).

(d) An A770 refuses single allocations ≥ 4 GiB — but UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 lifts it

strata generate: expert cache auto: 9.98 GiB free, 1024 MiB reserved -> 5329 slots
strata generate: ExpertCache: cudaMalloc(7.50 GiB) failed: no error (...); trying a smaller expert cache: 4172 slots
strata generate: expert cache: 2344 slots (3.16 GiB) after 3 smaller tries

Without the variable the ceiling is ~3.16–3.60 GiB (9.5–10.9 % of the 24576-slot profile); the failure message says no error alongside a null pointer, which sends you to the page file when the real limit is the per-allocation size. UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 (referenced in the engine's own comment at expert_cache.cpp:666) raised the cache to 5316 slots / 7.15 GiB. Worth naming in the failure message and the docs.

--vram-elastic is not a workaround: on Intel it is CUDA-only (sycl/src/core/expert_cache.cpp:390-392, STRATA_EC_NO_VMM) and fails hard, dragging the fallback chain with it. A segmented allocation on the SYCL/Level-Zero side (zeVirtualMem* / zePhysicalMemCreate; all present in ze_loader.dll on this box) would lift this ceiling to the full free VRAM and is probably the single highest-value upstream change for 16 GB Intel cards.

(e) Bonus: STRATA_MIRROR_MIB semantics on a 16 GB card + 32 GB RAM

With STRATA_MIRROR_MIB=0 the PCIe mirror channel is entirely off (pcie_layer() false). With =4000 the mirror fills in 9.1 s and the GPU reads missing experts over PCIe — worth an A/B in the docs, since the Windows mirror cap uses ullAvailPhys (generate.cpp:5343-5344) and a 33 GB expert set against 32 GB RAM forces STRATA_VERIFY_NO_HOST=0.

5. What works / what does not (this exact box)

Status
Build PR #3607 a43f3e5d (MSVC + icx, JIT) works, zero errors
iq_pack on a 68 GB IQ2_XS pack works, ~5.5 min from SSD
Load on A770, 302 native tensors + 300 native projections + PLE table + Q5_K head works
/health, OpenAI-compatible /v1, generation, spec decode, PCIe mirror works
Decode 0.9 (cold) → 2.3 → 4.5–13.1 tok/s (warm, cache-limited)
ctest 71/83; 11 0xc0000409 = FP64 emulation unset, 1 = missing Q2_0 fixture
setup --backend sycl picking the A770 unattended blocked by the command_graph_supported gate (§4a)
--graph capture (--mtp/stepped) AV 0xC0000005, open item
Expert cache ceiling lifted by UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 (§4d); segmented alloc still wanted
Output quality some prompts collapse to "!!!!" after ~10–20 tokens (open item, §3)

6. Artifacts available on request

  • strata-stall-*.dmp — three stall dumps taken while UR_L0_DEBUG=1 was reproducing the verify-window hang.
  • The full UR_L0_DEBUG=1 engine capture for one request, 3,595,459 lines / 385 MB, containing the complete Level Zero call sequence up to zeCommandListAppendLaunchCooperativeKernel.
  • The two-line fp64_probe.cpp / usm_probe.cpp probes, the ctest summary with all 12 failures named, and the working strata-iq2-xs.json (args + env).

Say which you want and how — a targeted excerpt of the 385 MB capture is probably more useful than the file.

7. Ask

  1. Merge the two-line gate relaxation (§4a) — or tell me the shape you want and I will send it as a PR against #3607.
  2. Correct the A-series FP64 row for Windows to NEO_FP64_EMULATION=1 and mark the IGC_* recipe Linux-only (§4b).
  3. Add the UR_L0_DEBUG warning to the docs/engine (§4c) — cheapest fix with the highest time saved.
  4. Consider SYCL/Level-Zero-segmented expert-cache allocation for the ≥ 4 GiB limit (§4d); it is the throughput ceiling on every 16 GB Intel card.
Originally created by @Gotya-OFFCIAL on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5505 ## Form **Problem:** The SYCL engine had never been run on a Windows Arc A-series card (`docs/INTEL_ARC.md`: "What has **not** been run on Windows: … the Arc A-series"). Running PR #3607 head on an A770 surfaced: (1) a hard startup gate on `command_graph_supported` that is stricter than the engine's needs on DG2, (2) a documentation error for the Windows A-series FP64 path, (3) `UR_L0_DEBUG=1` silently turning the doorbell handshake into a watchdog timeout, and (4) a ≥4 GiB single-allocation cap that pins the expert cache to ~10 % residency. With two of these addressed by config and one by a two-line patch, the engine serves and generates. **Environment:** see the table in §1 below — Arc A770 16 GB (devid 56a0), Windows driver 32.0.101.9150, oneAPI 2026.1, Ryzen 7 1700 (AVX2), 32 GB RAM, Windows 11, `port-windows` = PR #3607 head `a43f3e5d` (engine 0.1.57), Qwen3.8-Flash-Next-GSQ-RCO IQ2_XS ~68 GB on SSD. **Reproduce:** build per §2 (one two-line patch), then `sycl/serve/server_intel.py --config strata-iq2-xs.json` with the args/env in §3; probe with `fp64_probe.cpp` (§4b) and `usm_probe.cpp` (§4d) for the FP64 and allocation findings. **Expected:** per `docs/INTEL_ARC.md`, no Windows A-series path exists; per `docs/INTEL.md:244`, the `IGC_EnableDPEmulation`/`OverrideDefaultFP64Settings`/`NEOReadDebugKeys` triple should enable double kernels on A-series. **Actual:** the engine builds clean and serves and generates on the A770 through Level Zero (0.9 cold → 4.5–13.1 tok/s warm, cache-limited); the `IGC_*` triple reports `aspect::fp64=1` while every `double` kernel fails to compile, and the working channel is `NEO_FP64_EMULATION=1`; `UR_L0_DEBUG=1` slows each host↔device handshake to 2.5–5 s (trace: `waitA=2511334.7 µs`, `waitB=5091421.5 µs`) which overruns the watchdog; single device/host-pinned allocations ≥4 GiB fail unless `UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1`. **Evidence:** engine log excerpts inline below; `strata-stall-*.dmp` (3 files), the 385 MB / 3,595,459-line `UR_L0_DEBUG=1` capture, both probes, the ctest summary and the working config JSON are available on request (§6). **Reproduction status:** reproduced locally, end to end, on the named box. Findings (a), (b), (c), (d) were each verified by a direct experiment (build+serve, compile probe, timing trace, allocation probe) — not static analysis. --- > **Labels suggested:** `intel`, `windows`, `a-series` / `alchemist`, `community-port`, `data-point` > **Related:** #3607 (community Windows SYCL port, head `a43f3e5d`), #5406 (A770 Linux decode 32.6/28.1 tok/s), #5236 (Windows port merge/preview/defer) > **What this is:** a data point, not a bug report against one line. `docs/INTEL_ARC.md` currently says the Arc A-series has **not been run on Windows** ("What has **not** been run on Windows: … the Arc A-series"). Below is what happened when it was. The engine serves, generation works, and everything that blocked it is recorded with evidence so the next person on this hardware does not spend a day on it. --- ## 1. Environment | | | | --- | --- | | GPU | Intel Arc A770, 16 GB (engine `--list-devices` reports `vram_gb: 15.5594`, PCI `devid: 56a0`, Alchemist/DG2) | | GPU driver | **32.0.101.9150** (Windows display driver, stock/factory install) | | SYCL/Level Zero | oneAPI **2026.1** (DPC++/C++ Compiler + oneMKL + ocloc + TBB); `sycl-ls` reports `[level_zero:gpu] Intel(R) Arc(TM) A770 Graphics 12.55.8 [1.17.39894+4]` | | CPU / RAM | AMD Ryzen 7 1700 (16 logical, Zen1 — **AVX2 only, no AVX-512**), 32 GB | | OS | Windows 11 | | Toolchain | VS2022 MSVC 14.44, `icx`, CMake 4.4 + Ninja | | Engine | `port-windows` = PR #3607 head **`a43f3e5d`** (0.1.57 / upstream 0.2.11) | | Model | Qwen3.8-Flash-Next-GSQ-RCO **IQ2_XS**, 2 shards, 39,225,954,592 + 28,800,138,432 bytes (**~68 GB total**), SHA-256 checked against the setup registry | | Model / pack location | GGUF on `F:` SSD; IQ pack (`dense.bin` 1.43 GiB + tokenizer + `native_experts.txt`) on `F:` SSD | Notes that cost time and may matter to others: - `vswhere.exe` is absent and oneAPI is not in a default location, so upstream `sycl/tools/build_windows.bat` exits 1 immediately. A local wrapper (`build_windows_local.bat`: vcvars64 → `setvars.bat` → cmake/ninja) was used instead. - `A770` shows up as `driver: level_zero` with **no `i915`** path on Windows (`i915` is Linux-only), which is why the documented Alchemist code path and the Windows code path had never met. - Do not run a serve with `PYTHONDONTWRITEBYTECODE` unset on a flaky HDD repo drive: `python` hung in `importlib._bootstrap_external._write_atomic` writing `__pycache__` to a stalling disk and looked like an engine hang. ## 2. Build — clean, plus one two-line gate patch - Full build of PR #3607 head `a43f3e5d`: **zero errors**, `strata.exe` = 48,987,648 bytes (`engine 0.1.57`). No `-DSTRATA_SYCL_AOT` (Alchemist has no AOT target; JIT only). - **ctest:** 71 of 83 passed, 12 failed. 11 of the 12 fail with `0xc0000409` (`STACK_BUFFER_OVERRUN`) and are all tests whose reference kernel is written in `double` — see §4b. `ple_parity` fails on the missing Q2_0 fixture (known, pre-existing, same on the B-series box). - **The one patch this port needed** — `sycl/src/program/generate.cpp:2178` turned a hard failure into a warning: ```diff --- a/sycl/src/program/generate.cpp +++ b/sycl/src/program/generate.cpp @@ -2177,6 +2177,5 @@ if (!d.has(sycl::aspect::ext_oneapi_graph)) { - std::fprintf(stderr, "strata generate: command graphs are unavailable (ext_oneapi_graph); check the Intel GPU driver and oneAPI runtime\n"); - return 2; + std::fprintf(stderr, "strata generate: command graphs are unavailable (ext_oneapi_graph); continuing without graph capture (set STRATA_VERIFY_EAGER=1 and do not pass --mtp)\n"); } ``` Rebuilt with `cmake --build build-sycl-win --target strata`, `BUILD_RC=0`. ## 3. Run — it serves and generates on Windows Launch: `sycl/serve/server_intel.py --config strata-iq2-xs.json`, engine args of note: ``` --pack F:\AI\Strata-data\packs\iq2_xs --native ...00001-of-00002.gguf (an IQ pack requires --native) --ple-gguf ...00002-of-00002.gguf --spec 2 --prefill 1024 --max-context 8192 --stream-experts --vram-reserve-mib 1024 ``` Engine log, startup sequence: ``` strata generate: command graphs are unavailable (ext_oneapi_graph); continuing without graph capture ... strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 strata generate: 1466 MiB of weights loaded from packs in 0.9 s (302 canonical tensors skipped: served natively) strata generate: 300 native projection matrices, 1474.85 MiB of weights, in 4.6 s strata generate: PLE on, table 320001536 rows strata generate: expert cache 5316 slots, 7.15 GiB of VRAM (with UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1, see §4d) strata generate: 2914 of 19260 experts missing from VRAM mirrored in pinned host memory (3.91 GiB, 9.1 s); the GPU reads them over PCIe strata generate: session is up (engine 0.1.57) ``` `/health` returned `ok`; the OpenAI-compatible endpoint answered on `127.0.0.1:8080/v1`. **Generation works**: coherent English `reasoning_content`; speculative decoding engaged (`draft_n_accepted 2/2`). IQ2_XS quality plus partial expert residency is what you would expect, not a defect. ### Measured decode — a ramp, not a plateau | Point | Decode | Notes | | --- | --- | --- | | First request (cold) | **0.9 tok/s** | 57 prompt tokens took 40 s including first-token JIT; 16 generated tokens | | First warm request | **2.3 tok/s** | 40 tokens / 68 s, expert-cache hit 41.2 % | | Warm, larger cache (§4d) | **4.5 – 13.1 tok/s** | cache hit 76 → 91 %; repetition-heavy spans decode fastest and inflate the peak | Please read this as a **range under a floor configuration**, not a benchmark: single machine, greedy + `--spec 2`, 8K context, and the bottleneck (expert cache size, §4d) is not yet tuned. Published anchors: A750/i915 IQ3_XXS 10–19 tok/s, B70 mirror 40.3 tok/s, #5406's A770 on Linux at 32.6/28.1 tok/s (8K/32K). Secondary observation: some prompts fall into an `"!!!!"` repetition loop after ~10–20 tokens under greedy + spec 2. Isolated so far from sampling (temperature 0.7 same), cache size (sub-4-GiB same), and the serve path (mirror on/off same) — open item, correctness gates from `docs/A770_SPEED_SPEC.md` are the planned tool. ## 4. Findings ### (a) `ext_oneapi_graph` is *limited* on DG2 — the engine's gate is stricter than the engine needs - `--list-devices` on this box reports `command_graph_supported: false` where the B70 reference box reports `true`. That is the driver/Level-Zero adapter, not a PATH artifact — it persists with the full `setvars` environment sourced. (Per compute-runtime source, DG2 advertises a reduced mutable-command capability set vs Xe2; the numbers behind that reading are in the author's notes, not re-derived here.) - Two places gate on it: - `sycl/src/program/generate.cpp:2178` — hard `return 2`. It is really a *performance* path, not a correctness dependency: with the warning-only patch, generation, speculative decode and the verify window all work (this run is proof). - `sycl/setup_intel.py:126-128` — out of the box `setup --backend sycl` **refuses an A770 on Windows** and the user is left to hand-write a config (which is what was done here). - **Proposal:** warn, do not exit, in `generate.cpp`; in `setup_intel.py` make `command_graph_supported` a warning that sets `STRATA_VERIFY_EAGER=1` in the written config instead of skipping the card. `--mtp` and the stepped/`capture_segments` paths should report a clear "needs graphs" error rather than failing later. ### (b) FP64 on a factory Windows driver: `NEO_FP64_EMULATION=1` is the channel; the `IGC_*` pair is a dead end Alchemist has no FP64 units. `docs/INTEL.md:244` documents the A-series path as `IGC_EnableDPEmulation=1`, `OverrideDefaultFP64Settings=1`, `NEOReadDebugKeys=1`. **On Windows driver 32.0.101.9150 that combination does not work**, and worse, it lies: - `aspect::fp64` reports **`1`** while any kernel that actually uses `double` fails to compile: `"Double type is not supported on this platform"`. - That mismatch is exactly the shape of the 11 `0xc0000409` ctest failures: the test's double reference kernel throws at compile time and the throw is uncaught. They are not Alchemist kernel bugs. - **The channel that works is the NEO release variable `NEO_FP64_EMULATION=1`**, which injects `-ze-fp64-gen-emu` into the IGC build options. Verified by a standalone probe (`buffer<double>` `parallel_for` with sqrt/div/fma, bitwise-matched against host reference, 3 stable runs). - **Serving does not need any of this.** The whole `--native` load path completed without a single FP64 error — the native path does not compile a `double` kernel. The emulation variable is needed for the *test suite*, not for serving. Worth saying in `INTEL_ARC.md`, because the current text makes A-series look FP64-blocked for serving. On Linux the `IGC_*` keys are reported to work (#5406), so the doc fix is platform-specific. ### (c) The "driver hang" was `UR_L0_DEBUG=1` — a 2.5–5 s per-handshake slowdown that overruns the watchdog Symptom: first inference request hangs in the verify window. The last GPU command before the hang is `zeCommandListAppendLaunchCooperativeKernel`. It looks exactly like "the Alchemist Windows Level Zero driver cannot complete a cooperative launch". Knobs tried and found insufficient: `STRATA_WINDOW_SYNC=1`, `--spec 2`, `STRATA_VERIFY_HOST_UNCACHED=1`, `STRATA_MIRROR_MIB=0`, `--prefill 1024`, `--vram-reserve-mib 2048`. **Root cause: the diagnostic switch itself.** `UR_L0_DEBUG=1` emits one log line per Level Zero call — **3,595,459 lines for a single request (385 MB)**. The per-call log write pushes each host↔device handshake from milliseconds to seconds, and 40 layers × 5 s cannot finish inside the watchdog. Turn `UR_L0_DEBUG` off and the same window completes on the first try. Engine trace with the variable on: ``` strata serve: stall report (engine 0.1.57): stage "verify window: waiting for the GPU to reach layer 1" for 42 s layer 0 group 0: ... router+ring(17)=37849.8 shared(18)=37864.2 waitA(19)=2511334.7 VRAM hits(20)=2511413.4 waitB(21)=5091421.5 PCIe grp(22)=5091468.1 ``` `waitA` / `waitB` are the GPU spinning on the CPU expert-pool flags: **2.51 s and 5.09 s per execution**. The host pool was idle with all jobs done — the host was not short of work, it was short of *time to log*. Two asks: 1. **Document it**: never leave `UR_L0_DEBUG` on for a serve run; it converts a healthy window into a watchdog timeout with a cooperative-kernel last command — a highly misleading signature. 2. **Consider a guard**: if `UR_L0_DEBUG` is set when `--serve` starts, print a one-time warning. A real open item survives: `--graph capture` currently AVs with `0xC0000005` on this box (the eager path serves). ### (d) An A770 refuses single allocations ≥ 4 GiB — but `UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1` lifts it ``` strata generate: expert cache auto: 9.98 GiB free, 1024 MiB reserved -> 5329 slots strata generate: ExpertCache: cudaMalloc(7.50 GiB) failed: no error (...); trying a smaller expert cache: 4172 slots strata generate: expert cache: 2344 slots (3.16 GiB) after 3 smaller tries ``` Without the variable the ceiling is ~3.16–3.60 GiB (9.5–10.9 % of the 24576-slot profile); the failure message says `no error` alongside a null pointer, which sends you to the page file when the real limit is the per-allocation size. **`UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1` (referenced in the engine's own comment at `expert_cache.cpp:666`) raised the cache to 5316 slots / 7.15 GiB.** Worth naming in the failure message and the docs. `--vram-elastic` is **not** a workaround: on Intel it is CUDA-only (`sycl/src/core/expert_cache.cpp:390-392`, `STRATA_EC_NO_VMM`) and fails hard, dragging the fallback chain with it. A segmented allocation on the SYCL/Level-Zero side (`zeVirtualMem*` / `zePhysicalMemCreate`; all present in `ze_loader.dll` on this box) would lift this ceiling to the full free VRAM and is probably the single highest-value upstream change for 16 GB Intel cards. ### (e) Bonus: `STRATA_MIRROR_MIB` semantics on a 16 GB card + 32 GB RAM With `STRATA_MIRROR_MIB=0` the PCIe mirror channel is entirely off (`pcie_layer()` false). With `=4000` the mirror fills in 9.1 s and the GPU reads missing experts over PCIe — worth an A/B in the docs, since the Windows mirror cap uses `ullAvailPhys` (`generate.cpp:5343-5344`) and a 33 GB expert set against 32 GB RAM forces `STRATA_VERIFY_NO_HOST=0`. ## 5. What works / what does not (this exact box) | | Status | | --- | --- | | Build PR #3607 `a43f3e5d` (MSVC + icx, JIT) | works, zero errors | | `iq_pack` on a 68 GB IQ2_XS pack | works, ~5.5 min from SSD | | Load on A770, 302 native tensors + 300 native projections + PLE table + Q5_K head | works | | `/health`, OpenAI-compatible `/v1`, generation, spec decode, PCIe mirror | works | | Decode | 0.9 (cold) → 2.3 → 4.5–13.1 tok/s (warm, cache-limited) | | ctest | 71/83; 11 `0xc0000409` = FP64 emulation unset, 1 = missing Q2_0 fixture | | `setup --backend sycl` picking the A770 unattended | **blocked** by the `command_graph_supported` gate (§4a) | | `--graph capture` (`--mtp`/stepped) | **AV `0xC0000005`**, open item | | Expert cache ceiling | lifted by `UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1` (§4d); segmented alloc still wanted | | Output quality | some prompts collapse to `"!!!!"` after ~10–20 tokens (open item, §3) | ## 6. Artifacts available on request - `strata-stall-*.dmp` — three stall dumps taken while `UR_L0_DEBUG=1` was reproducing the verify-window hang. - The full `UR_L0_DEBUG=1` engine capture for one request, **3,595,459 lines / 385 MB**, containing the complete Level Zero call sequence up to `zeCommandListAppendLaunchCooperativeKernel`. - The two-line `fp64_probe.cpp` / `usm_probe.cpp` probes, the ctest summary with all 12 failures named, and the working `strata-iq2-xs.json` (args + env). Say which you want and how — a targeted excerpt of the 385 MB capture is probably more useful than the file. ## 7. Ask 1. Merge the two-line gate relaxation (§4a) — or tell me the shape you want and I will send it as a PR against #3607. 2. Correct the A-series FP64 row for Windows to `NEO_FP64_EMULATION=1` and mark the `IGC_*` recipe Linux-only (§4b). 3. Add the `UR_L0_DEBUG` warning to the docs/engine (§4c) — cheapest fix with the highest time saved. 4. Consider SYCL/Level-Zero-segmented expert-cache allocation for the ≥ 4 GiB limit (§4d); it is the throughput ceiling on every 16 GB Intel card.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 7, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6709497094 --> @github-actions[bot] commented on GitHub (Nov 7, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 7, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6709512411 --> @github-actions[bot] commented on GitHub (Nov 7, 2026): Thanks, this follows the format now.
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#5475
No description provided.