[GH-ISSUE #1606] Intel Arc A770 (Alchemist, i915): prefill serialized (~47 tok/s, GPU idle, 1 CPU core), decode CPU-bound (all 14 cores at 90%, no VNNI) #641

Closed
opened 2026-11-04 01:44:43 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @Javalopes on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1606

Summary
On an Intel Arc A770 (Alchemist DG2) with the i915 driver, the prefill phase is severely serialized: the GPU sits idle (RING_MODE: idle, Awake? 0), only 1-2 CPU cores do any work, and the prefill runs at ~47 tok/s. Expected on similar hardware from docs/INTEL.md is 400+ tok/s. Decode works correctly (uses all 14 physical cores), but is CPU-bound at ~13.5 tok/s because the CPU lacks AVX-512/VNNI.

This is a follow-up to #1248 (compilation failures on A-series, now fixed in v0.1.40.3+).

System
GPU: Intel Arc A770 16 GB (Alchemist / DG2, PCI ID 8086:56a0)

Driver: i915 (forced: i915.force_probe=56a0 xe.force_probe=!56a0)

CPU: Intel Xeon E5-2680 v4 (14C/28T, Broadwell, 2.4-3.3 GHz, no AVX-512, no VNNI, AVX2 only)

RAM: 62.6 GB DDR4-2400 quad-channel

SSD: Fanxiang S500PRO 256GB NVMe (~1500 MB/s buffered reads)

OS: CachyOS (Arch-based), kernel 7.2.9-1-cachyos, oneAPI DPC++ 2026.1.1

Compute runtime: intel-compute-runtime 26.35.39758.10-1.1

Strata: v0.1.41 (also tested v0.1.40.3), SYCL backend, native build

Kernel cmdline includes i915.force_probe=56a0 xe.force_probe=!56a0 because on this kernel the xe driver has "ext_intel_free_memory is not supported" and --expert-cache auto reports 0 slots. With i915, the engine works, but the prefill issue below appears.

Config
--pack /home/javal/Strata-data/packs/iq3_xxs
--native .../Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf
--ple-gguf .../Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf
--expert-profile /home/javal/Strata/data/expert-profile.bin
--expert-cache 4096
--prefill auto
--spec 4 --spec-min-p 0.5
--mtp /home/javal/Strata-data/mtp/rt
--max-context 32768
--kv int8
--ple-io direct
--vram-reserve-mib 300

5480 experts in VRAM (8.89 GiB). VRAM in use at idle: 15.70 GiB / 15.90 GiB.

Env: STRATA_VERIFY_DEVICE_PLAN=1, STRATA_VERIFY_NO_HOST=0, STRATA_STAGER_THREADS=12, SYCL_CACHE_PERSISTENT=0, ZES_ENABLE_SYSMAN=1, ONEAPI_DEVICE_SELECTOR=level_zero:gpu, UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1. FP64 emulation vars present or absent — same results.

Problem 1 - Prefill is serialized, GPU is idle
Test: 5,756-token prompt, 200-token output.

Engine log:

[strata] reading the prompt: 5,756 tokens, 10 s so far
[strata] reading the prompt: 5,756 tokens, 20 s so far
...
[strata] reading the prompt: 2,048 of 5,756 tokens, 46 s so far
[strata] reading the prompt: 2,048 of 5,756 tokens, 56 s so far
...
[strata] reading the prompt: 4,096 of 5,756 tokens, 83 s so far
...
[strata] answering: 6 of max 200 tokens, 14.0 tok/s, 124 s

Total prefill: 5,756 tokens in ~123 s = ~47 tok/s (vs 424+ tok/s on the B70 in docs/INTEL.md). Pattern: 30-40 s stalls between 2048-token chunks with no visible progress.

i915 engine info captured during prefill (cat /sys/kernel/debug/dri/1/i915_engine_info):

rcs0
Awake? 0
RING_MODE: 0x00001200 [idle]
RING_HEAD: 0x00000000
RING_TAIL: 0x00000000
ACTHD: 0x00000000_00000000
Requests: (empty)

The GPU compute engine is off. Not slow — idle.

nvtop during prefill:

GPU util: 25%, frequency 717 MHz (max 2400 MHz)

CPU: 97% of one core (out of 28 logical CPUs)

Thread dump during prefill (ps -T -p -o tid,stat,wchan:25,pcpu):

TID STAT WCHAN %CPU
51113 R<l - 35.4 <- main thread, 35% only
...
51606 S<l futex_wait 30.2 <- 13 workers, all in futex_wait
51607 S<l futex_wait 30.2
... (13 workers 51606-51618, all 30.2%)
...
51631 S<l anon_pipe_read.cold 0.0 <- blocked on pipe
51632 S<l hrtimer_nanosleep 0.0

The main thread is at 35% (not 100%). The 13 expert-pool workers are all parked in futex_wait. One thread (51631) is stuck in anon_pipe_read.cold — a blocked pipe read.

iotop during prefill showed no significant NVMe activity from the strata process.

Problem 2 - Decode is CPU-bound (expected, no VNNI), but well parallelized
mpstat during decode (mpstat -P ALL 1 45, summary):

Average: all 45.25 0.26 3.35 0.11 ... 50.98
Average: 0 89.44 0.00 4.24 0.02 ... 5.98 <- core 0 at 89%
Average: 1 90.56 0.00 0.00 0.13 ... 9.09 <- core 1 at 90%
...
Average: 13 90.60 0.00 0.00 0.02 ... 9.20 <- core 13 at 90%
Average: 14 0.11 0.02 0.29 2.43 ... 96.61 <- HT thread idle
...
Average: 27 0.35 0.00 0.89 1.95 ... 96.81 <- HT thread idle

All 14 physical cores at ~90%, HT threads idle. nvtop confirms: CPU 1378%, GPU spikes 0-100% at 2400 MHz.

Decode at 13.4-16.7 tok/s - consistent with docs/INTEL.md for the A750 (10-15 tok/s), and CPU-bound because the Xeon lacks AVX-512 and VNNI (Broadwell, 2016).

Flags tested
--host-core first -> WORSE (decode 13.1 vs 16.7 tok/s)

--kv-resident 32768 -> WORSE (decode 13.4 vs 16.7; prefill unchanged)

--pcie-frac 0 -> NEUTRAL

--ple-io mmap -> NEUTRAL vs direct

--ple-io ram -> OOM (28 GB table + 47 GB arena > 62 GB RAM)

--expert-cache 5120 -> OOM

--expert-cache 4096 -> BASELINE (5480 experts, 8.89 GiB VRAM)

FP64 emulation vars -> NEUTRAL

Version comparison
v0.1.40.3:

Prefill 5,756 tokens: ~123 s (~47 tok/s)

Decode 800 tokens, cache 4096: 13.4 tok/s

VRAM idle (cache 4096): 15.70 GiB

v0.1.41:

Prefill 5,756 tokens: ~123 s (~47 tok/s)

Decode 800 tokens, cache 4096: 13.7-13.9 tok/s

VRAM idle (cache 4096): 15.70 GiB

No regression between versions for this hardware. Release notes mention +22% decode on A750 in 0.1.41 — not observed on A770 (both use DG2 ACM-G10).

Hypothesis
The prefill thread (51631) blocked in anon_pipe_read.cold, combined with the GPU being idle and only the main thread working, suggests the CPU-GPU doorbell/handshake channel is not delivering during prefill on Alchemist.

Possible causes:

The pipe that feeds work to the GPU is only populated by one thread (the main one), and that thread stalls in anon_pipe_read waiting for the previous chunk's completion signal

The 13 expert workers park in futex_wait because no work is dispatched

The GPU gets no commands because the pipe never delivers

Cycle repeats per 2048-token chunk -> the visible 30-40 s stalls

If a Battlemage card (B70, B580) shares this code path but works, the difference may be in the Level Zero doorbell implementation on Alchemist (i915 vs xe) or in the number of in-flight requests the DG2 can hold.

Request
Could you (or anyone with Alchemist hardware) reproduce this? Specifically:

Large prompt (>4K tokens) on A750 / A770 / A580 with i915

Capture i915_engine_info during prefill — is the GPU also idle?

Thread dump — is a thread blocked in anon_pipe_read?

I have direct SSH access to the box and can test patches.

Additional context
The xe driver has a separate issue (ext_intel_free_memory is not supported) that makes --expert-cache auto fail with 0 slots. Worth a separate report — this forced us to use i915.

With --expert-cache 4096 (5480 experts), the GPU hits 98% VRAM. A larger cache OOMs.

mpstat data and raw i915_engine_info available on request.

Originally created by @Javalopes on GitHub (Oct 8, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1606 Summary On an Intel Arc A770 (Alchemist DG2) with the i915 driver, the prefill phase is severely serialized: the GPU sits idle (RING_MODE: idle, Awake? 0), only 1-2 CPU cores do any work, and the prefill runs at ~47 tok/s. Expected on similar hardware from docs/INTEL.md is 400+ tok/s. Decode works correctly (uses all 14 physical cores), but is CPU-bound at ~13.5 tok/s because the CPU lacks AVX-512/VNNI. This is a follow-up to #1248 (compilation failures on A-series, now fixed in v0.1.40.3+). System GPU: Intel Arc A770 16 GB (Alchemist / DG2, PCI ID 8086:56a0) Driver: i915 (forced: i915.force_probe=56a0 xe.force_probe=!56a0) CPU: Intel Xeon E5-2680 v4 (14C/28T, Broadwell, 2.4-3.3 GHz, no AVX-512, no VNNI, AVX2 only) RAM: 62.6 GB DDR4-2400 quad-channel SSD: Fanxiang S500PRO 256GB NVMe (~1500 MB/s buffered reads) OS: CachyOS (Arch-based), kernel 7.2.9-1-cachyos, oneAPI DPC++ 2026.1.1 Compute runtime: intel-compute-runtime 26.35.39758.10-1.1 Strata: v0.1.41 (also tested v0.1.40.3), SYCL backend, native build Kernel cmdline includes i915.force_probe=56a0 xe.force_probe=!56a0 because on this kernel the xe driver has "ext_intel_free_memory is not supported" and --expert-cache auto reports 0 slots. With i915, the engine works, but the prefill issue below appears. Config --pack /home/javal/Strata-data/packs/iq3_xxs --native .../Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --ple-gguf .../Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --expert-profile /home/javal/Strata/data/expert-profile.bin --expert-cache 4096 --prefill auto --spec 4 --spec-min-p 0.5 --mtp /home/javal/Strata-data/mtp/rt --max-context 32768 --kv int8 --ple-io direct --vram-reserve-mib 300 5480 experts in VRAM (8.89 GiB). VRAM in use at idle: 15.70 GiB / 15.90 GiB. Env: STRATA_VERIFY_DEVICE_PLAN=1, STRATA_VERIFY_NO_HOST=0, STRATA_STAGER_THREADS=12, SYCL_CACHE_PERSISTENT=0, ZES_ENABLE_SYSMAN=1, ONEAPI_DEVICE_SELECTOR=level_zero:gpu, UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1. FP64 emulation vars present or absent — same results. Problem 1 - Prefill is serialized, GPU is idle Test: 5,756-token prompt, 200-token output. Engine log: [strata] reading the prompt: 5,756 tokens, 10 s so far [strata] reading the prompt: 5,756 tokens, 20 s so far ... [strata] reading the prompt: 2,048 of 5,756 tokens, 46 s so far [strata] reading the prompt: 2,048 of 5,756 tokens, 56 s so far ... [strata] reading the prompt: 4,096 of 5,756 tokens, 83 s so far ... [strata] answering: 6 of max 200 tokens, 14.0 tok/s, 124 s Total prefill: 5,756 tokens in ~123 s = ~47 tok/s (vs 424+ tok/s on the B70 in docs/INTEL.md). Pattern: 30-40 s stalls between 2048-token chunks with no visible progress. i915 engine info captured during prefill (cat /sys/kernel/debug/dri/1/i915_engine_info): rcs0 Awake? 0 RING_MODE: 0x00001200 [idle] RING_HEAD: 0x00000000 RING_TAIL: 0x00000000 ACTHD: 0x00000000_00000000 Requests: (empty) The GPU compute engine is off. Not slow — idle. nvtop during prefill: GPU util: 25%, frequency 717 MHz (max 2400 MHz) CPU: 97% of one core (out of 28 logical CPUs) Thread dump during prefill (ps -T -p <engine> -o tid,stat,wchan:25,pcpu): TID STAT WCHAN %CPU 51113 R<l - 35.4 <- main thread, 35% only ... 51606 S<l futex_wait 30.2 <- 13 workers, all in futex_wait 51607 S<l futex_wait 30.2 ... (13 workers 51606-51618, all 30.2%) ... 51631 S<l anon_pipe_read.cold 0.0 <- blocked on pipe 51632 S<l hrtimer_nanosleep 0.0 The main thread is at 35% (not 100%). The 13 expert-pool workers are all parked in futex_wait. One thread (51631) is stuck in anon_pipe_read.cold — a blocked pipe read. iotop during prefill showed no significant NVMe activity from the strata process. Problem 2 - Decode is CPU-bound (expected, no VNNI), but well parallelized mpstat during decode (mpstat -P ALL 1 45, summary): Average: all 45.25 0.26 3.35 0.11 ... 50.98 Average: 0 89.44 0.00 4.24 0.02 ... 5.98 <- core 0 at 89% Average: 1 90.56 0.00 0.00 0.13 ... 9.09 <- core 1 at 90% ... Average: 13 90.60 0.00 0.00 0.02 ... 9.20 <- core 13 at 90% Average: 14 0.11 0.02 0.29 2.43 ... 96.61 <- HT thread idle ... Average: 27 0.35 0.00 0.89 1.95 ... 96.81 <- HT thread idle All 14 physical cores at ~90%, HT threads idle. nvtop confirms: CPU 1378%, GPU spikes 0-100% at 2400 MHz. Decode at 13.4-16.7 tok/s - consistent with docs/INTEL.md for the A750 (10-15 tok/s), and CPU-bound because the Xeon lacks AVX-512 and VNNI (Broadwell, 2016). Flags tested --host-core first -> WORSE (decode 13.1 vs 16.7 tok/s) --kv-resident 32768 -> WORSE (decode 13.4 vs 16.7; prefill unchanged) --pcie-frac 0 -> NEUTRAL --ple-io mmap -> NEUTRAL vs direct --ple-io ram -> OOM (28 GB table + 47 GB arena > 62 GB RAM) --expert-cache 5120 -> OOM --expert-cache 4096 -> BASELINE (5480 experts, 8.89 GiB VRAM) FP64 emulation vars -> NEUTRAL Version comparison v0.1.40.3: Prefill 5,756 tokens: ~123 s (~47 tok/s) Decode 800 tokens, cache 4096: 13.4 tok/s VRAM idle (cache 4096): 15.70 GiB v0.1.41: Prefill 5,756 tokens: ~123 s (~47 tok/s) Decode 800 tokens, cache 4096: 13.7-13.9 tok/s VRAM idle (cache 4096): 15.70 GiB No regression between versions for this hardware. Release notes mention +22% decode on A750 in 0.1.41 — not observed on A770 (both use DG2 ACM-G10). Hypothesis The prefill thread (51631) blocked in anon_pipe_read.cold, combined with the GPU being idle and only the main thread working, suggests the CPU-GPU doorbell/handshake channel is not delivering during prefill on Alchemist. Possible causes: The pipe that feeds work to the GPU is only populated by one thread (the main one), and that thread stalls in anon_pipe_read waiting for the previous chunk's completion signal The 13 expert workers park in futex_wait because no work is dispatched The GPU gets no commands because the pipe never delivers Cycle repeats per 2048-token chunk -> the visible 30-40 s stalls If a Battlemage card (B70, B580) shares this code path but works, the difference may be in the Level Zero doorbell implementation on Alchemist (i915 vs xe) or in the number of in-flight requests the DG2 can hold. Request Could you (or anyone with Alchemist hardware) reproduce this? Specifically: Large prompt (>4K tokens) on A750 / A770 / A580 with i915 Capture i915_engine_info during prefill — is the GPU also idle? Thread dump — is a thread blocked in anon_pipe_read? I have direct SSH access to the box and can test patches. Additional context The xe driver has a separate issue (ext_intel_free_memory is not supported) that makes --expert-cache auto fail with 0 slots. Worth a separate report — this forced us to use i915. With --expert-cache 4096 (5480 experts), the GPU hits 98% VRAM. A larger cache OOMs. mpstat data and raw i915_engine_info available on request.
Author
Owner

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

Thank you for the engine-info dump; it showed the GPU idle while the host waited. PR #1602 (duncanmcqueen) is ported into v0.1.42 with his commits. We tested on an Arc A750 (i915, no A770): the 10-prompt gate passes (10/10, no new GPU hang lines). Two parts of the PR were slowing the A750's decode, so they are scoped in the port: the payload checksum wait (decode -17% on the A750) is opt-in with STRATA_DOORBELL_CHECK=1, and the uncached payload stores are used on xe, not on i915 (where a plain store reaches the host in time; decode -11% otherwise). With those, base and port decode the same on the A750 (4K-prompt decode 14.9 vs 14.9 tok/s). The A750's 4K prompt reads at the same 72 tok/s with and without the port, so we cannot confirm the prefill fix on this card; its cache is small (0.34 GiB) and never reaches past 4 GiB, which is where the PR's address fix applies. Could you run your A770 case on v0.1.42 and post the 'reading the prompt' lines and decode speed? Also try STRATA_DOORBELL_CHECK=1 once, in case your stale-payload case needs it (the PR measured 14 of 2,832 rings stale on an A770).

<!-- gh-comment-id:6099631649 --> @Niko1221 commented on GitHub (Oct 10, 2026): Thank you for the engine-info dump; it showed the GPU idle while the host waited. PR #1602 (duncanmcqueen) is ported into v0.1.42 with his commits. We tested on an Arc A750 (i915, no A770): the 10-prompt gate passes (10/10, no new GPU hang lines). Two parts of the PR were slowing the A750's decode, so they are scoped in the port: the payload checksum wait (decode -17% on the A750) is opt-in with `STRATA_DOORBELL_CHECK=1`, and the uncached payload stores are used on xe, not on i915 (where a plain store reaches the host in time; decode -11% otherwise). With those, base and port decode the same on the A750 (4K-prompt decode 14.9 vs 14.9 tok/s). The A750's 4K prompt reads at the same 72 tok/s with and without the port, so we cannot confirm the prefill fix on this card; its cache is small (0.34 GiB) and never reaches past 4 GiB, which is where the PR's address fix applies. Could you run your A770 case on v0.1.42 and post the 'reading the prompt' lines and decode speed? Also try `STRATA_DOORBELL_CHECK=1` once, in case your stale-payload case needs it (the PR measured 14 of 2,832 rings stale on an A770).
Author
Owner

@flare04 commented on GitHub (Oct 11, 2026):

https://github.com/Niko1221/Strata/issues/1545 does this help with your xe driver issue?

<!-- gh-comment-id:6106370895 --> @flare04 commented on GitHub (Oct 11, 2026): https://github.com/Niko1221/Strata/issues/1545 does this help with your xe driver issue?
Author
Owner

@Javalopes commented on GitHub (Oct 11, 2026):

2. Thank you for the engine-info dump; it showed the GPU idle while the host waited. PR #1602 (duncanmcqueen) is ported into v0.1.42 with his commits. We tested on an Arc A750 (i915, no A770): the 10-prompt gate passes (10/10, no new GPU hang lines). Two parts of the PR were slowing the A750's decode, so they are scoped in the port: the payload checksum wait (decode -17% on the A750) is opt-in with STRATA_DOORBELL_CHECK=1, and the uncached payload stores are used on xe, not on i915 (where a plain store reaches the host in time; decode -11% otherwise). With those, base and port decode the same on the A750 (4K-prompt decode 14.9 vs 14.9 tok/s). The A750's 4K prompt reads at the same 72 tok/s with and without the port, so we cannot confirm the prefill fix on this card; its cache is small (0.34 GiB) and never reaches past 4 GiB, which is where the PR's address fix applies. Could you run your A770 case on v0.1.42 and post the 'reading the prompt' lines and decode speed? Also try STRATA_DOORBELL_CHECK=1 once, in case your stale-payload case needs it (the PR measured 14 of 2,832 rings stale on an A770).

Tested v0.1.42 on A770 (i915). Config: cache 4096, kv int8, max-context 32768, ple-io direct, native build, oneAPI 2026.1.1.

A770 prefill (5,733 tokens), three runs:

v0.1.40.3 (before port): 123s (47 tok/s)
v0.1.42 (default): 145s (40 tok/s) <- slower
v0.1.42 + STRATA_DOORBELL_CHECK=1: 117s (49 tok/s) <- best

With DOORBELL_CHECK=1:

  • 0->2048 tokens: 44s
  • 2048->4096 tokens: 36s
  • 4096->5726 tokens: 37s
  • GPU util during prefill: 19% (freq 1767/2400 MHz)
  • CPU: 1 core pegged (97%), 13 idle

Decode (200 tokens, warm): 12.8-13.4 tok/s, stable across runs. No penalty from the check (unlike the A750's -17%).

So the doorbell check recovers ~28s but the stall pattern remains: each 2048-token chunk takes ~36s, GPU idle between them. Cache is 8.89 GiB, well past 4 GiB, so the address fix applies here, unlike the A750 (0.34 GiB).

Two other things the diagnostics showed:

  • thread dump during prefill: one thread in anon_pipe_read.cold, 13 workers parked in futex_wait, main thread at 35% CPU
  • i915_engine_info during prefill: rcs0 Awake? 0, RING_MODE: idle, ACTHD: 0

Happy to run any patch or test any flag. Should I try STRATA_VERIFY_STEPPED=1 (#1713) or #1710 (fast router)?

Update after testing the extra flags on the A770 (i915, cache 4096, 5480 experts, 8.89 GiB):

STRATA_DOORBELL_CHECK=1: works.

  • prefill 5,733 tokens: 117s (best so far)
  • decode: 12.8-13.4 tok/s, stable
  • no penalty on A770 (unlike the A750's -17%)

STRATA_VERIFY_STEPPED=1: worse on A770.

  • prefill: same ~116s
  • decode: 3.6-3.8 tok/s (3.5x regression)
  • GPU drops to 25% during decode
  • clearly does not help this card

Also checked the STRATA_HAVE_ZE path mentioned by flare04:

  • level-zero-headers 1.32.0-1 installed
  • nm -D build-sycl/strata shows "U zeMemAllocHost"
  • GGML_SYCL_SUPPORT_LEVEL_ZERO_API:BOOL=ON
  • So the doorbell-uncached fix is already active in this build.

Summary: STRATA_DOORBELL_CHECK=1 is a small win (28s faster prefill), STEPPED hurts, and the prefill stall pattern remains (36s per 2048-token chunk, GPU idle between).

Should I try #1710 (fast router) next, or wait for a patch?

<!-- gh-comment-id:6107749246 --> @Javalopes commented on GitHub (Oct 11, 2026): > 2\. Thank you for the engine-info dump; it showed the GPU idle while the host waited. PR [#1602](https://github.com/Niko1221/Strata/pull/1602) (duncanmcqueen) is ported into v0.1.42 with his commits. We tested on an Arc A750 (i915, no A770): the 10-prompt gate passes (10/10, no new GPU hang lines). Two parts of the PR were slowing the A750's decode, so they are scoped in the port: the payload checksum wait (decode -17% on the A750) is opt-in with `STRATA_DOORBELL_CHECK=1`, and the uncached payload stores are used on xe, not on i915 (where a plain store reaches the host in time; decode -11% otherwise). With those, base and port decode the same on the A750 (4K-prompt decode 14.9 vs 14.9 tok/s). The A750's 4K prompt reads at the same 72 tok/s with and without the port, so we cannot confirm the prefill fix on this card; its cache is small (0.34 GiB) and never reaches past 4 GiB, which is where the PR's address fix applies. Could you run your A770 case on v0.1.42 and post the 'reading the prompt' lines and decode speed? Also try `STRATA_DOORBELL_CHECK=1` once, in case your stale-payload case needs it (the PR measured 14 of 2,832 rings stale on an A770). Tested v0.1.42 on A770 (i915). Config: cache 4096, kv int8, max-context 32768, ple-io direct, native build, oneAPI 2026.1.1. A770 prefill (5,733 tokens), three runs: v0.1.40.3 (before port): 123s (47 tok/s) v0.1.42 (default): 145s (40 tok/s) <- slower v0.1.42 + STRATA_DOORBELL_CHECK=1: 117s (49 tok/s) <- best With DOORBELL_CHECK=1: - 0->2048 tokens: 44s - 2048->4096 tokens: 36s - 4096->5726 tokens: 37s - GPU util during prefill: 19% (freq 1767/2400 MHz) - CPU: 1 core pegged (97%), 13 idle Decode (200 tokens, warm): 12.8-13.4 tok/s, stable across runs. No penalty from the check (unlike the A750's -17%). So the doorbell check recovers ~28s but the stall pattern remains: each 2048-token chunk takes ~36s, GPU idle between them. Cache is 8.89 GiB, well past 4 GiB, so the address fix applies here, unlike the A750 (0.34 GiB). Two other things the diagnostics showed: - thread dump during prefill: one thread in anon_pipe_read.cold, 13 workers parked in futex_wait, main thread at 35% CPU - i915_engine_info during prefill: rcs0 Awake? 0, RING_MODE: idle, ACTHD: 0 Happy to run any patch or test any flag. Should I try STRATA_VERIFY_STEPPED=1 (#1713) or #1710 (fast router)? Update after testing the extra flags on the A770 (i915, cache 4096, 5480 experts, 8.89 GiB): STRATA_DOORBELL_CHECK=1: works. - prefill 5,733 tokens: 117s (best so far) - decode: 12.8-13.4 tok/s, stable - no penalty on A770 (unlike the A750's -17%) STRATA_VERIFY_STEPPED=1: worse on A770. - prefill: same ~116s - decode: 3.6-3.8 tok/s (3.5x regression) - GPU drops to 25% during decode - clearly does not help this card Also checked the STRATA_HAVE_ZE path mentioned by flare04: - level-zero-headers 1.32.0-1 installed - nm -D build-sycl/strata shows "U zeMemAllocHost" - GGML_SYCL_SUPPORT_LEVEL_ZERO_API:BOOL=ON - So the doorbell-uncached fix is already active in this build. Summary: STRATA_DOORBELL_CHECK=1 is a small win (28s faster prefill), STEPPED hurts, and the prefill stall pattern remains (36s per 2048-token chunk, GPU idle between). Should I try #1710 (fast router) next, or wait for a patch?
Author
Owner

@flare04 commented on GitHub (Oct 11, 2026):

Providing an xe A770 (Alchemist) data point on v0.1.42, since you asked for numbers from a card that crosses the 4 GiB cache line.

Setup: Arc A770 16 GB on the xe kernel driver (not i915), Ryzen 9 8945HX, 32 GB DDR5. Qwen3.8-flash-next-coder (35B-A3B MoE) with the MTP draft at --spec 4, --expert-cache auto, 64k context. The build is v0.1.42 plus three small xe-side fixes I still carry locally (a Level-Zero header/build fix, a device_free_bytes() host-mirror sizing fix in the expert cache, and a generate-path fix) — so call it v0.1.42 + xe nits, not stock. Happy to hand over the diffs.

Prompt reading — real lines, warmed, drafting on:

strata serve: prompt 920 tokens = 0 reused + 920 read in 5250 ms (175.2 tok/s), 2 generated in 203 ms (9.9 tok/s), drafts accepted 3 of 3, 1 checkpoints
strata serve: prompt 927 tokens = 0 reused + 927 read in 5095 ms (181.9 tok/s), 128 generated in 7430 ms (17.2 tok/s), drafts accepted 66 of 88, 1 checkpoints
strata serve: prompt 922 tokens = 0 reused + 922 read in 5005 ms (184.2 tok/s), 128 generated in 6736 ms (19.0 tok/s), drafts accepted 76 of 114, 1 checkpoints
strata serve: prompt 2328 tokens = 0 reused + 2328 read in 14706 ms (158.3 tok/s), 34 generated in 1925 ms (17.7 tok/s), drafts accepted 22 of 25, 1 checkpoints
strata serve: prompt 48436 tokens = 47998 reused + 438 read in 4600 ms (95.2 tok/s), 765 generated in 38714 ms (19.8 tok/s), 6 checkpointsCopy
So ~1k-token prompts read at 175-184 tok/s and a 2.3k-token prompt at 158 tok/s, with no per-chunk stall here: the reading the prompt: N of M tokens progress lines tick continuously and the GPU stays busy. At 48k context it still holds ~20 tok/s decode.

Decode: 14.6 / 17.2 / 19.0 / 20.7 / 22.8 tok/s across matched API-sized answers (median ~19), 18.1-24.3 on 300-320-token generations, MTP draft acceptance 52-81%, expert cache 56-79% hit.

v0.1.42 vs v0.1.40.3 at matched workload is a wash on xe for me — the old build did 17.5-18.2 tok/s on 128-token answers and 24-32 tok/s on 45-72-token prompts. What I actually got from the port is correctness: no >4 GiB flag needed, token 0 fine, JIT-stateless path works.

Two flags — the part I think matters for Arc defaults:

STRATA_VERIFY_STEPPED=1 is +3.0 tok/s for me on xe, and a 3.5x decode regression for the i915 A770 in this thread. It should stay opt-in, or at least be documented as xe-only.
STRATA_DOORBELL_CHECK=1 is decode-neutral for me (163.5/22.0 base vs 165.5/20.4 with it ). But our sycl_payload_pairs microbench on the A770 suggests it is a correctness switch rather than a perf knob:

payload_pairs A770_FAST=0 DOORBELL_CHECK=0 paired payload and mapped read: 120 failures rc=1
payload_pairs A770_FAST=0 DOORBELL_CHECK=1 paired payload and mapped read: 0 failures rc=0
payload_pairs A770_FAST=1 DOORBELL_CHECK=0 paired payload and mapped read: 120 failures rc=1Copy
120 failures at n=2560 offset=1 with the check off, on both A770_FAST settings, and clean with it on. On i915 the same flag also recovers the v0.1.42 prefill regression (40 to 49 tok/s on a 5.7k prompt). Two different drivers, same direction — worth considering DOORBELL_CHECK on by default for Arc, with VERIFY_STEPPED flagged as xe-only.

On the #1710 / fast-router question: I would hold off. Our fast-path router dispatch is 124 us vs 401 us and 245 us vs 872 us for a single-token call — 3-4x on the router itself, but that is microseconds against a 36 s stall per 2048-token chunk. The i915 numbers above say the GPU is idle between chunks (ACTHD: 0, 19% util) with one thread in anon_pipe_read.cold and the rest in futex_wait — that is the host handoff waiting, not router cost. That shape looks like #1549 territory (prompt reading far slower when experts come from the host mirror), especially with an 8.89 GiB cache spilling past 4 GiB. Cheaper things to try first: STRATA_DOORBELL_CHECK=1 (already 40 to 49 tok/s there), and capping the expert cache to fit under 4 GiB — if the gaps shrink, the wait is payload/handoff and the router is a red herring.

One more knob for long contexts: PF_XMX is worth measuring on your side — for me it moves prefill 163.5 to 196.9 tok/s at =1 (+20%) and 209.7 at =2 (+28%), for about 3 tok/s of decode. Also router_fast variant 0 vs variant 1 in the test above is identical with A770_FAST off or on, so that flag is not touching router dispatch.

<!-- gh-comment-id:6108649368 --> @flare04 commented on GitHub (Oct 11, 2026): Providing an xe A770 (Alchemist) data point on v0.1.42, since you asked for numbers from a card that crosses the 4 GiB cache line. Setup: Arc A770 16 GB on the xe kernel driver (not i915), Ryzen 9 8945HX, 32 GB DDR5. Qwen3.8-flash-next-coder (35B-A3B MoE) with the MTP draft at --spec 4, --expert-cache auto, 64k context. The build is v0.1.42 plus three small xe-side fixes I still carry locally (a Level-Zero header/build fix, a device_free_bytes() host-mirror sizing fix in the expert cache, and a generate-path fix) — so call it v0.1.42 + xe nits, not stock. Happy to hand over the diffs. Prompt reading — real lines, warmed, drafting on: strata serve: prompt 920 tokens = 0 reused + 920 read in 5250 ms (175.2 tok/s), 2 generated in 203 ms (9.9 tok/s), drafts accepted 3 of 3, 1 checkpoints strata serve: prompt 927 tokens = 0 reused + 927 read in 5095 ms (181.9 tok/s), 128 generated in 7430 ms (17.2 tok/s), drafts accepted 66 of 88, 1 checkpoints strata serve: prompt 922 tokens = 0 reused + 922 read in 5005 ms (184.2 tok/s), 128 generated in 6736 ms (19.0 tok/s), drafts accepted 76 of 114, 1 checkpoints strata serve: prompt 2328 tokens = 0 reused + 2328 read in 14706 ms (158.3 tok/s), 34 generated in 1925 ms (17.7 tok/s), drafts accepted 22 of 25, 1 checkpoints strata serve: prompt 48436 tokens = 47998 reused + 438 read in 4600 ms (95.2 tok/s), 765 generated in 38714 ms (19.8 tok/s), 6 checkpointsCopy So ~1k-token prompts read at 175-184 tok/s and a 2.3k-token prompt at 158 tok/s, with no per-chunk stall here: the reading the prompt: N of M tokens progress lines tick continuously and the GPU stays busy. At 48k context it still holds ~20 tok/s decode. Decode: 14.6 / 17.2 / 19.0 / 20.7 / 22.8 tok/s across matched API-sized answers (median ~19), 18.1-24.3 on 300-320-token generations, MTP draft acceptance 52-81%, expert cache 56-79% hit. v0.1.42 vs v0.1.40.3 at matched workload is a wash on xe for me — the old build did 17.5-18.2 tok/s on 128-token answers and 24-32 tok/s on 45-72-token prompts. What I actually got from the port is correctness: no >4 GiB flag needed, token 0 fine, JIT-stateless path works. Two flags — the part I think matters for Arc defaults: STRATA_VERIFY_STEPPED=1 is +3.0 tok/s for me on xe, and a 3.5x decode regression for the i915 A770 in this thread. It should stay opt-in, or at least be documented as xe-only. STRATA_DOORBELL_CHECK=1 is decode-neutral for me (163.5/22.0 base vs 165.5/20.4 with it ). But our sycl_payload_pairs microbench on the A770 suggests it is a correctness switch rather than a perf knob: >> payload_pairs A770_FAST=0 DOORBELL_CHECK=0 paired payload and mapped read: 120 failures rc=1 >> payload_pairs A770_FAST=0 DOORBELL_CHECK=1 paired payload and mapped read: 0 failures rc=0 >> payload_pairs A770_FAST=1 DOORBELL_CHECK=0 paired payload and mapped read: 120 failures rc=1Copy 120 failures at n=2560 offset=1 with the check off, on both A770_FAST settings, and clean with it on. On i915 the same flag also recovers the v0.1.42 prefill regression (40 to 49 tok/s on a 5.7k prompt). Two different drivers, same direction — worth considering DOORBELL_CHECK on by default for Arc, with VERIFY_STEPPED flagged as xe-only. On the #1710 / fast-router question: I would hold off. Our fast-path router dispatch is 124 us vs 401 us and 245 us vs 872 us for a single-token call — 3-4x on the router itself, but that is microseconds against a 36 s stall per 2048-token chunk. The i915 numbers above say the GPU is idle between chunks (ACTHD: 0, 19% util) with one thread in anon_pipe_read.cold and the rest in futex_wait — that is the host handoff waiting, not router cost. That shape looks like #1549 territory (prompt reading far slower when experts come from the host mirror), especially with an 8.89 GiB cache spilling past 4 GiB. Cheaper things to try first: STRATA_DOORBELL_CHECK=1 (already 40 to 49 tok/s there), and capping the expert cache to fit under 4 GiB — if the gaps shrink, the wait is payload/handoff and the router is a red herring. One more knob for long contexts: PF_XMX is worth measuring on your side — for me it moves prefill 163.5 to 196.9 tok/s at =1 (+20%) and 209.7 at =2 (+28%), for about 3 tok/s of decode. Also router_fast variant 0 vs variant 1 in the test above is identical with A770_FAST off or on, so that flag is not touching router dispatch.
Author
Owner

@Javalopes commented on GitHub (Oct 11, 2026):

5. Providing an xe A770 (Alchemist) data point on v0.1.42, since you asked for numbers from a card that crosses the 4 GiB cache line.
Setup: Arc A770 16 GB on the xe kernel driver (not i915), Ryzen 9 8945HX, 32 GB DDR5. Qwen3.8-flash-next-coder (35B-A3B MoE) with the MTP draft at --spec 4, --expert-cache auto, 64k context. The build is v0.1.42 plus three small xe-side fixes I still carry locally (a Level-Zero header/build fix, a device_free_bytes() host-mirror sizing fix in the expert cache, and a generate-path fix) — so call it v0.1.42 + xe nits, not stock. Happy to hand over the diffs.
Prompt reading — real lines, warmed, drafting on:
strata serve: prompt 920 tokens = 0 reused + 920 read in 5250 ms (175.2 tok/s), 2 generated in 203 ms (9.9 tok/s), drafts accepted 3 of 3, 1 checkpoints
strata serve: prompt 927 tokens = 0 reused + 927 read in 5095 ms (181.9 tok/s), 128 generated in 7430 ms (17.2 tok/s), drafts accepted 66 of 88, 1 checkpoints
strata serve: prompt 922 tokens = 0 reused + 922 read in 5005 ms (184.2 tok/s), 128 generated in 6736 ms (19.0 tok/s), drafts accepted 76 of 114, 1 checkpoints
strata serve: prompt 2328 tokens = 0 reused + 2328 read in 14706 ms (158.3 tok/s), 34 generated in 1925 ms (17.7 tok/s), drafts accepted 22 of 25, 1 checkpoints
strata serve: prompt 48436 tokens = 47998 reused + 438 read in 4600 ms (95.2 tok/s), 765 generated in 38714 ms (19.8 tok/s), 6 checkpointsCopy
So ~1k-token prompts read at 175-184 tok/s and a 2.3k-token prompt at 158 tok/s, with no per-chunk stall here: the reading the prompt: N of M tokens progress lines tick continuously and the GPU stays busy. At 48k context it still holds ~20 tok/s decode.
Decode: 14.6 / 17.2 / 19.0 / 20.7 / 22.8 tok/s across matched API-sized answers (median ~19), 18.1-24.3 on 300-320-token generations, MTP draft acceptance 52-81%, expert cache 56-79% hit.
v0.1.42 vs v0.1.40.3 at matched workload is a wash on xe for me — the old build did 17.5-18.2 tok/s on 128-token answers and 24-32 tok/s on 45-72-token prompts. What I actually got from the port is correctness: no >4 GiB flag needed, token 0 fine, JIT-stateless path works.
Two flags — the part I think matters for Arc defaults:
STRATA_VERIFY_STEPPED=1 is +3.0 tok/s for me on xe, and a 3.5x decode regression for the i915 A770 in this thread. It should stay opt-in, or at least be documented as xe-only.
STRATA_DOORBELL_CHECK=1 is decode-neutral for me (163.5/22.0 base vs 165.5/20.4 with it ). But our sycl_payload_pairs microbench on the A770 suggests it is a correctness switch rather than a perf knob:
> > payload_pairs A770_FAST=0 DOORBELL_CHECK=0 paired payload and mapped read: 120 failures rc=1
> > payload_pairs A770_FAST=0 DOORBELL_CHECK=1 paired payload and mapped read: 0 failures rc=0
> > payload_pairs A770_FAST=1 DOORBELL_CHECK=0 paired payload and mapped read: 120 failures rc=1Copy
> > 120 failures at n=2560 offset=1 with the check off, on both A770_FAST settings, and clean with it on. On i915 the same flag also recovers the v0.1.42 prefill regression (40 to 49 tok/s on a 5.7k prompt). Two different drivers, same direction — worth considering DOORBELL_CHECK on by default for Arc, with VERIFY_STEPPED flagged as xe-only.

On the [#1710](https://github.com/Niko1221/Strata/pull/1710) / fast-router question: I would hold off. Our fast-path router dispatch is 124 us vs 401 us and 245 us vs 872 us for a single-token call — 3-4x on the router itself, but that is microseconds against a 36 s stall per 2048-token chunk. The i915 numbers above say the GPU is idle between chunks (ACTHD: 0, 19% util) with one thread in anon_pipe_read.cold and the rest in futex_wait — that is the host handoff waiting, not router cost. That shape looks like [#1549](https://github.com/Niko1221/Strata/issues/1549) territory (prompt reading far slower when experts come from the host mirror), especially with an 8.89 GiB cache spilling past 4 GiB. Cheaper things to try first: STRATA_DOORBELL_CHECK=1 (already 40 to 49 tok/s there), and capping the expert cache to fit under 4 GiB — if the gaps shrink, the wait is payload/handoff and the router is a red herring.
One more knob for long contexts: PF_XMX is worth measuring on your side — for me it moves prefill 163.5 to 196.9 tok/s at =1 (+20%) and 209.7 at =2 (+28%), for about 3 tok/s of decode. Also router_fast variant 0 vs variant 1 in the test above is identical with A770_FAST off or on, so that flag is not touching router dispatch.

Thanks for the xe A770 data point — this is the most useful comparison in this thread. 175-184 tok/s prefill vs my 49 on i915, same DGX. The 3 xe-side fixes you carry locally are exactly what I need: the ext_intel_free_memory issue was why I moved to i915 in the first place.

Could you post the diffs of those three fixes (or a branch)? I'll apply them to v0.1.42 and run the same 5.7k-token test on xe. If it holds, I can drop the i915 force_probe and stay on xe permanently.

Also confirming your findings:

  • STRATA_VERIFY_STEPPED=1: -3.5x decode on i915 (3.6 vs 12.8 tok/s). Matches your "+3 on xe, -3.5x on i915 A770" — it really is xe-only.
  • STRATA_DOORBELL_CHECK=1: prefill 40 -> 49 tok/s on i915, decode neutral. Matches your correctness microbench.
  • nm -D shows U zeMemAllocHost in my build with level-zero-headers installed and GGML_SYCL_SUPPORT_LEVEL_ZERO_API=ON, so that path is already active.

Will report back with xe results once I have your diffs.

<!-- gh-comment-id:6111893763 --> @Javalopes commented on GitHub (Oct 11, 2026): > 5\. Providing an xe A770 (Alchemist) data point on v0.1.42, since you asked for numbers from a card that crosses the 4 GiB cache line. > Setup: Arc A770 16 GB on the xe kernel driver (not i915), Ryzen 9 8945HX, 32 GB DDR5. Qwen3.8-flash-next-coder (35B-A3B MoE) with the MTP draft at --spec 4, --expert-cache auto, 64k context. The build is v0.1.42 plus three small xe-side fixes I still carry locally (a Level-Zero header/build fix, a device_free_bytes() host-mirror sizing fix in the expert cache, and a generate-path fix) — so call it v0.1.42 + xe nits, not stock. Happy to hand over the diffs. > Prompt reading — real lines, warmed, drafting on: > strata serve: prompt 920 tokens = 0 reused + 920 read in 5250 ms (175.2 tok/s), 2 generated in 203 ms (9.9 tok/s), drafts accepted 3 of 3, 1 checkpoints > strata serve: prompt 927 tokens = 0 reused + 927 read in 5095 ms (181.9 tok/s), 128 generated in 7430 ms (17.2 tok/s), drafts accepted 66 of 88, 1 checkpoints > strata serve: prompt 922 tokens = 0 reused + 922 read in 5005 ms (184.2 tok/s), 128 generated in 6736 ms (19.0 tok/s), drafts accepted 76 of 114, 1 checkpoints > strata serve: prompt 2328 tokens = 0 reused + 2328 read in 14706 ms (158.3 tok/s), 34 generated in 1925 ms (17.7 tok/s), drafts accepted 22 of 25, 1 checkpoints > strata serve: prompt 48436 tokens = 47998 reused + 438 read in 4600 ms (95.2 tok/s), 765 generated in 38714 ms (19.8 tok/s), 6 checkpointsCopy > So ~1k-token prompts read at 175-184 tok/s and a 2.3k-token prompt at 158 tok/s, with no per-chunk stall here: the reading the prompt: N of M tokens progress lines tick continuously and the GPU stays busy. At 48k context it still holds ~20 tok/s decode. > Decode: 14.6 / 17.2 / 19.0 / 20.7 / 22.8 tok/s across matched API-sized answers (median ~19), 18.1-24.3 on 300-320-token generations, MTP draft acceptance 52-81%, expert cache 56-79% hit. > v0.1.42 vs v0.1.40.3 at matched workload is a wash on xe for me — the old build did 17.5-18.2 tok/s on 128-token answers and 24-32 tok/s on 45-72-token prompts. What I actually got from the port is correctness: no >4 GiB flag needed, token 0 fine, JIT-stateless path works. > Two flags — the part I think matters for Arc defaults: > STRATA_VERIFY_STEPPED=1 is +3.0 tok/s for me on xe, and a 3.5x decode regression for the i915 A770 in this thread. It should stay opt-in, or at least be documented as xe-only. > STRATA_DOORBELL_CHECK=1 is decode-neutral for me (163.5/22.0 base vs 165.5/20.4 with it ). But our sycl_payload_pairs microbench on the A770 suggests it is a correctness switch rather than a perf knob: > > > payload_pairs A770_FAST=0 DOORBELL_CHECK=0 paired payload and mapped read: 120 failures rc=1 > > > payload_pairs A770_FAST=0 DOORBELL_CHECK=1 paired payload and mapped read: 0 failures rc=0 > > > payload_pairs A770_FAST=1 DOORBELL_CHECK=0 paired payload and mapped read: 120 failures rc=1Copy > > > 120 failures at n=2560 offset=1 with the check off, on both A770_FAST settings, and clean with it on. On i915 the same flag also recovers the v0.1.42 prefill regression (40 to 49 tok/s on a 5.7k prompt). Two different drivers, same direction — worth considering DOORBELL_CHECK on by default for Arc, with VERIFY_STEPPED flagged as xe-only. > > > On the [#1710](https://github.com/Niko1221/Strata/pull/1710) / fast-router question: I would hold off. Our fast-path router dispatch is 124 us vs 401 us and 245 us vs 872 us for a single-token call — 3-4x on the router itself, but that is microseconds against a 36 s stall per 2048-token chunk. The i915 numbers above say the GPU is idle between chunks (ACTHD: 0, 19% util) with one thread in anon_pipe_read.cold and the rest in futex_wait — that is the host handoff waiting, not router cost. That shape looks like [#1549](https://github.com/Niko1221/Strata/issues/1549) territory (prompt reading far slower when experts come from the host mirror), especially with an 8.89 GiB cache spilling past 4 GiB. Cheaper things to try first: STRATA_DOORBELL_CHECK=1 (already 40 to 49 tok/s there), and capping the expert cache to fit under 4 GiB — if the gaps shrink, the wait is payload/handoff and the router is a red herring. > One more knob for long contexts: PF_XMX is worth measuring on your side — for me it moves prefill 163.5 to 196.9 tok/s at =1 (+20%) and 209.7 at =2 (+28%), for about 3 tok/s of decode. Also router_fast variant 0 vs variant 1 in the test above is identical with A770_FAST off or on, so that flag is not touching router dispatch. Thanks for the xe A770 data point — this is the most useful comparison in this thread. 175-184 tok/s prefill vs my 49 on i915, same DGX. The 3 xe-side fixes you carry locally are exactly what I need: the ext_intel_free_memory issue was why I moved to i915 in the first place. Could you post the diffs of those three fixes (or a branch)? I'll apply them to v0.1.42 and run the same 5.7k-token test on xe. If it holds, I can drop the i915 force_probe and stay on xe permanently. Also confirming your findings: - STRATA_VERIFY_STEPPED=1: -3.5x decode on i915 (3.6 vs 12.8 tok/s). Matches your "+3 on xe, -3.5x on i915 A770" — it really is xe-only. - STRATA_DOORBELL_CHECK=1: prefill 40 -> 49 tok/s on i915, decode neutral. Matches your correctness microbench. - nm -D shows U zeMemAllocHost in my build with level-zero-headers installed and GGML_SYCL_SUPPORT_LEVEL_ZERO_API=ON, so that path is already active. Will report back with xe results once I have your diffs.
Author
Owner

@flare04 commented on GitHub (Oct 11, 2026):

index 9b7bb85..a24d0f3 100644
--- a/docs/INTEL_ARC.md
+++ b/docs/INTEL_ARC.md
@@ -22,6 +22,7 @@ There is **no ready-made Intel engine** in the release zips. You build it from s
 | Community | 2x Arc Pro B60 24 GB, `--layer-split` | Coder IQ1_M: 56.6 tok/s decode, 428 tok/s prompt (2,129 tokens); Flash-Next IQ2_XS: 58.6-61.3 tok/s decode, 436 tok/s prompt; all experts in VRAM; 8K context | [bench/results/2026-10-04-community-2x-arc-pro-b60](../bench/results/2026-10-04-community-2x-arc-pro-b60/README.md) |
 | Community | one Arc Pro B60 24 GB | Coder IQ1_M with 4,042 of 12,288 experts mirrored in RAM: 11.9 tok/s decode (needs the ring-wait fix from the same report) | same |
 | Strata maintainers (0.1.40.2 and later) | Arc Pro B70 32 GB (xe) and Arc A750 8 GB (i915), test machines | Flash-Next IQ3_S on the B70 with 11.5k of 24.6k experts resident: 10-prompt gate passes, prompt 980-1,000 tok/s on 4K tokens, decode 30 (prose) to 41 (code) tok/s; the xe aliased-pages fix and the `NO_HOST` requirement are in [INTEL.md](INTEL.md) | INTEL.md, "Arc Pro B70 with a model that does not fit" |
+| Community | **Arc A770 16 GB (Alchemist on `xe`)**, CachyOS, Ryzen 9 8945HX, 29 GB RAM | Coder IQ1_M, 64K int8 KV: 7.0-7.5 tok/s decode over 300-token runs, 24-32 tok/s prompt, 17.5-18.2 tok/s through the OpenAI API with MTP drafts 72-80% accepted. **The first Alchemist-on-`xe` result** - needs three code fixes and two runtime knobs | "Arc A770: Alchemist on `xe`" below |
 
 The 0.1.39 port re-migrates 0.1.38's port onto the 0.1.39 engine sources (the #606 NaN fix, the #649 verify
 trace, the new prompt paths). 0.1.39's `sycl/` did not compile against 0.1.39's own engine sources (#784: the
@@ -48,9 +49,9 @@ Full flags, per-request timings and engine logs are in the report linked in the
 - **Unchanged:** the CUDA engine's greedy output, checked byte-identical against the gated 0.1.39 build (Q2_0 and Coder).
   The HIP build is not affected (the option is off by default).
 
-**Not tested by anyone yet:** Windows (no native build path; see below), Arc on WSL2 for the 0.1.39 port, the Alchemist
-A-series, integrated Arc GPUs (the B390 / Panther Lake in #515; the shared-memory planning does not exist yet), and
-images (not wired on Intel).
+**Not tested by anyone yet:** Windows (no native build path; see below), Arc on WSL2 for the 0.1.39 port, the
+Alchemist A-series **on `i915`** (the A770 below runs on `xe`), integrated Arc GPUs (the B390 / Panther Lake in #515;
+the shared-memory planning does not exist yet), and images (not wired on Intel).
 
 ## What you need
 
@@ -60,6 +61,13 @@ images (not wired on Intel).
 - **Intel oneAPI**: the DPC++ compiler (`icpx`, 2025.3 or newer; 2026.1 is what was built here) and **oneMKL**. About 5 GB.
 - `cmake` 3.24+, `ninja`, `git` (the build fetches ggml unless you point `STRATA_GGML_DIR` at a llama.cpp checkout),
   Python 3.
+- **Level Zero development headers** (`level_zero/ze_api.h`): `libze-dev` on Ubuntu, **`level-zero-headers`** on
+  Arch. The runtime loader (`libze1` / `level-zero-loader`) is *not* enough, and those are separate packages: the
+  port allocates its doorbell memory through `zeMemAllocHost` with `ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED`, guarded
+  by `STRATA_HAVE_ZE`, which is only defined when that header is present at build time. Without it the build
+  succeeds, the engine starts, and every answer is token 0 - see "The uncached doorbell needs the header".
+  CMake now warns when the header is missing; `-DSTRATA_LZ_INCLUDE=<dir holding level_zero/>` points at one
+  installed elsewhere.
 - For `./setup.sh --backend sycl` today: **Docker**, and nothing else from the list above except the GPU driver.
   `sycl/setup_intel.py` runs the engine in the `strata-sycl-dev` image built from `sycl/tools/Dockerfile`, and the
   engine is built in that image too ("Build with Docker" below). On Ubuntu: `sudo apt install docker.io git`, then
@@ -155,6 +163,135 @@ Things that matter on an Arc (details in INTEL.md):
   `STRATA_*`, `ONEAPI_*`, `UR_*`, `IGC_*`, `SYCL_*` or `ZES_*` variable of the server's environment reach the engine
   through `strata-sycl.sh` (for example `STRATA_MIRROR_MIB`, `IGC_EnableDPEmulation`).
 
+## Arc A770 16 GB: Alchemist on `xe` (2026-10-08)
+
+The first Alchemist result on the **`xe`** driver. Every other Alchemist row above is an A750 on `i915`, and every
+`xe` row is a Battlemage card, so this box sits in the gap between the two recipes - and the code's Alchemist
+defaults are keyed off the *driver name* (`intel_i915_gpu()`), which means an Alchemist card on `xe` inherits the
+Battlemage values. Three of the four problems below come from that one mismatch.
+
+Host: Minisforum BD895i SE (Ryzen 9 8945HX), 29 GB usable RAM, CachyOS (kernel 7.2.9), `xe`, NEO 26.35.39758,
+oneAPI 2026.0, native build (no Docker), `intel-compute-runtime` + `level-zero-loader` 1.32.0.
+Model: Coder IQ1_M (23.42 GiB of experts), 64K context, int8 KV, MTP `--spec 4 --spec-min-p 0.5`.
+Engine 0.1.40.3. Three code fixes (below: the doorbell build check, `xe` free VRAM, the serve-time VRAM check) and
+two runtime knobs (`STRATA_WINDOW_SYNC=1`, `--mmap-experts`) are what it took; no shared upstream file's behaviour
+changes on any other card.
+
+**Measured.** Decode, 300-token greedy runs (5 runs): **6.99-7.54 tok/s**, all five identical in content.
+Prompt reading: **24-32 tok/s** (45-72 tokens). Through the OpenAI API (`server_intel.py`, 128-token answers):
+**17.5-18.2 tok/s** with MTP drafts **72-80% accepted**. VRAM with everything loaded: 2,144 MiB free of 15.11 GiB.
+
+| | |
+|---|---|
+| decode (300 tokens, greedy) | 6.99-7.54 tok/s |
+| prompt | 24-32 tok/s |
+| API, 128-token answer | 17.5-18.2 tok/s, drafts 72-80% accepted |
+| time to first token | 2.0-3.3 s (a warm JIT cache) |
+
+The decode figure is well below a Battlemage card's and below llama.cpp-SYCL's ~23 tok/s on a 16 GB Arc Pro B50
+(#423), and the reason is placement, not the port: the B50 runs a model whose experts all fit VRAM, while this box
+cannot (a 4 GiB pinned-host ceiling, below), so the CPU computes 7-15 distinct experts per layer and the GPU waits
+for them. The API figure is higher than the raw decode one because MTP accepts 72-80% of its drafts on code.
+
+### 1. The uncached doorbell needs the header (the answer was token 0)
+
+`sycl_queue.hpp` allocates the doorbell and ring buffers with `ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED`, but only when
+`<level_zero/ze_api.h>` was present at build time. Arch ships the runtime in `level-zero-loader` and the headers in a
+*separate* `level-zero-headers`, so a box whose Level Zero works fine builds the port without them: `host_malloc_polled`
+falls back to `sycl::malloc_host`, a running kernel never sees the host's stores, every ring wait runs to `kSpinMax`
+and the window goes on with the CPU experts' rows missing - NaN logits, and **every** output token 0.
+
+The failure is silent: the build is clean, the engine loads, prefill reports a sane rate, and the parity tests pass
+(22 of 25 on the card, against 14 of 25 on the CPU device above; **no kernel hangs**, which is what pointed at the
+host<->device protocol rather than the kernels). Measured before and after, one config:
+
+| | doorbell absent | doorbell built in |
+|---|---|---|
+| `wait for rings` | **42,140 ms/round** | **98.7 ms/round** |
+| `pool` (the CPU experts, unchanged) | 26.8 ms/round | 34.1 ms/round |
+| decode | 0.08 tok/s | 12.27 tok/s |
+| output tokens | **32 of 32 were token 0** | **0 of 300 were** (5 runs) |
+
+Two different run lengths (32 tokens, then 300) because the broken build never got far enough to be worth running
+long. Every token it produced was 0; not one of the 1,500 tokens across the five fixed runs was.
+
+The CPU side was never the problem - the host served its experts in 27 ms while the GPU waited 42 s for a store it
+could not see. CMake now checks for the header and warns (and links `ze_loader`, which the doorbell calls directly);
+`STRATA_LZ_INCLUDE` points at a header installed elsewhere. `nm -D strata | grep zeMemAllocHost` tells you whether a
+build has it: an `U zeMemAllocHost` means yes, no output means the engine will answer token 0.
+
+### 2. `xe` reports no free VRAM, so every cache sized to 0 slots
+
+This driver does not expose `sycl::aspect::ext_intel_free_memory` (`ZES_ENABLE_SYSMAN=1` does not change it), so
+dpct's `get_memory_info` returns 0 bytes free and `--spec` refuses to start with `it needs --spec T (T >= 2)`.
+`device_free_bytes()` already has a DRM-fdinfo fallback, but its guard was
+
+    own > 0 && total_b > own && total_b - own < free_b
+
+which can never be true for `free_b == 0` (unsigned), so the fallback was unreachable exactly in the case that needs
+it. Arming it on `free_b == 0` as well is the whole fix: `xe` does report `drm-total-vram0` in
+`/proc/self/fdinfo/*`. The expert cache went from **0 slots to 1,934** (3.72 GiB) with no other change.
+
+The same file's serve-time check ("N MiB of VRAM free with everything loaded") called `get_memory_info()` directly
+instead of `device_free_bytes()` like the four other free-VRAM readings in `generate.cpp`. It therefore printed
+`0 MiB free ... add --vram-reserve-mib N` on every start no matter how high the reserve was raised, chasing its own
+tail; routed through `device_free_bytes()` it reports the true 2,144 MiB.
+
+### 3. `STRATA_WINDOW_SYNC` defaults off the driver name, not the architecture
+
+`verify.cpp` defaults `STRATA_WINDOW_SYNC` to 1 on an `i915` card and 0 elsewhere, for the documented Alchemist
+behaviour that a window launched behind other in-flight GPU work never starts. An Alchemist card on `xe` reports
+`xe`, so it gets the Battlemage default of 0 - and long runs then stall with
+`verify: timed out at layer 0`, the host having already served the layer (so it is not the handshake of #1).
+
+Measured on 300-token runs, the adaptive expert tier on (its async swaps are exactly the "other GPU work"):
+
+| lever | runs | completed |
+|---|---|---|
+| `STRATA_WINDOW_SYNC=0` (the inherited default) | 3 | **0** |
+| `STRATA_WINDOW_SYNC=1` | 4 | **4** |
+| `STRATA_WINDOW_SYNC=0` + `--adapt-every 0` | 1 | 1 |
+
+Both levers work, so the stall needs the adaptive tier *and* a window launched behind it. This is a **runtime knob
+only** - the patch does not change the default, because keying it correctly means detecting Alchemist by
+*architecture* rather than by driver name, and 8 runs on one machine is thin evidence for a change that costs every
+Battlemage-on-`xe` card a queue drain per window. Suggested default for an Alchemist card whatever its driver:
+
+    export STRATA_WINDOW_SYNC=1
+
+### 4. The pinned arena does not fit a 29 GB host - use `--mmap-experts`
+
+Without it the engine pins the whole 23.42 GiB expert arena (`cudaHostRegister PORTABLE ok`), leaving ~3 GB
+reclaimable on a 29 GB box: the long runs were OOM-killed (exit 137) mid-decode with 338k major faults and 7.3 GiB
+swapped. `--mmap-experts` makes it file-backed and costs decode (**12.27 -> 7.0-7.5 tok/s**) but is what keeps a
+small-RAM host alive. Prefill is not affected - it reads 3.7 tok/s on the first run after a boot and 24-25 tok/s
+once the OS file cache holds the pack, whichever arena mode is in use. Related, and why the B70's
+`--stream-experts` recipe is not available here: its mirror is one pinned host allocation, and a `malloc_host`
+ladder on this card returns **null at 4 GiB** (2 GiB succeeds, held or freed), with `ulimit -l` at 8 MiB and
+unraisable without root.
+
+### Recipe that produced the numbers above
+
+    OverrideDefaultFP64Settings=1 IGC_EnableDPEmulation=1 NEOReadDebugKeys=1   # Alchemist: no FP64 hardware
+    ONEAPI_DEVICE_SELECTOR=level_zero:gpu ZE_AFFINITY_MASK=0                    # not the iGPU
+    SYCL_CACHE_PERSISTENT=0 UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1
+    SYCL_PROGRAM_APPEND_COMPILE_OPTIONS=-ze-intel-greater-than-4GB-buffer-required
+    ZES_ENABLE_SYSMAN=1 STRATA_WINDOW_SYNC=1
+    STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=0                         # Alchemist, not the xe/B70 value
+
+    strata --pack <pack> --native <shard1> --ple-gguf <shard2> --expert-profile <profile> \
+           --mmap-experts --expert-cache auto --no-prefill-borrow --prefill 512 \
+           --spec 4 --spec-min-p 0.5 --mtp <mtp-dir> \
+           --max-context 65536 --kv int8 --vram-reserve-mib 2048
+
+Note the pairing that is easy to get wrong: `STRATA_VERIFY_NO_HOST=0` (the Alchemist value, because the CPU computes
+experts outside VRAM here) with `STRATA_WINDOW_SYNC=1` (also the Alchemist value) on a card that reports `xe`.
+`NO_HOST=1`, the B70's, hangs the window on this card; `WINDOW_SYNC=0`, the Battlemage-on-`xe` default, stalls long runs.
+
+The teardown crash documented for the A750 ("segfaults in a worker thread of the CPU pool when it exits") also
+happens here, as does `UR_RESULT_ERROR_UNINITIALIZED` at exit - both **after** a completed generation, so judge a run
+by its `decode`/`output` lines, not its exit code.
+
 ## Windows
 
 There is no Windows path yet. `setup --backend sycl` on Windows stops and points here. oneAPI exists for Windows,
diff --git a/sycl/CMakeLists.txt b/sycl/CMakeLists.txt
index 4d79be3..e71699d 100644
--- a/sycl/CMakeLists.txt
+++ b/sycl/CMakeLists.txt
@@ -99,6 +99,35 @@ target_include_directories(strata_includes INTERFACE
   ${STRATA_ROOT}/include)
 target_compile_options(strata_includes INTERFACE -Wall -Wextra)
 
+# --- Level Zero headers: the uncached doorbell allocation (sycl_queue.hpp, STRATA_HAVE_ZE) ----------------------
+# host_malloc_polled() can only hand out ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED memory when <level_zero/ze_api.h>
+# is present AT BUILD TIME. Without the header the port silently falls back to sycl::malloc_host, a running kernel
+# never sees the host's stores, every ring wait runs to kSpinMax and the window goes on with the CPU experts'
+# rows missing: NaN logits and an answer of token 0. The build stays clean and the failure looks like a
+# numerical bug, so this checks for the header and says so when it is absent.
+# Distributions split the Level Zero loader (runtime) from its headers, so a box whose Level Zero runtime works
+# can still be missing ze_api.h: on Arch the package is level-zero-headers, on Ubuntu libze-dev.
+# STRATA_LZ_INCLUDE points at a directory holding level_zero/ for a header that is installed elsewhere.
+set(STRATA_LZ_INCLUDE "" CACHE PATH "extra include dir holding <level_zero/ze_api.h> (empty: autodetect)")
+if(NOT STRATA_LZ_INCLUDE)
+  include(CheckIncludeFileCXX)
+  check_include_file_cxx(level_zero/ze_api.h STRATA_HAVE_LZ_HEADER)
+  if(NOT STRATA_HAVE_LZ_HEADER)
+    message(WARNING "strata: <level_zero/ze_api.h> not found (Arch: level-zero-headers, Ubuntu: libze-dev), so the "
+                    "SYCL port builds WITHOUT the uncached doorbell (STRATA_HAVE_ZE). The engine then runs but an "
+                    "Arc's ring waits never see a host store and decode answers token 0; install the header and "
+                    "rebuild, or pass -DSTRATA_LZ_INCLUDE=<dir holding level_zero/>.")
+  endif()
+else()
+  target_include_directories(strata_includes INTERFACE ${STRATA_LZ_INCLUDE})
+endif()
+# The doorbell calls zeMemAllocHost/zeMemFree directly, so link the loader when STRATA_HAVE_ZE can be set.
+find_library(STRATA_ZE_LOADER NAMES ze_loader HINTS /usr/lib /usr/lib64 /usr/local/lib)
+if(STRATA_ZE_LOADER)
+  target_link_libraries(strata_includes INTERFACE ${STRATA_ZE_LOADER})
+  message(STATUS "strata: Level Zero loader ${STRATA_ZE_LOADER}")
+endif()
+
 # --- CPU-side pieces, identical to the top-level build ------------------------------------------------------------
 strata_resolve(_spec src/spec/suffix_drafter.cpp src/spec/controller.cpp src/spec/draft_policy.cpp
                     src/spec/draft_source.cpp)
diff --git a/sycl/src/core/expert_cache.cpp b/sycl/src/core/expert_cache.cpp
index ed1c874..4517185 100644
--- a/sycl/src/core/expert_cache.cpp
+++ b/sycl/src/core/expert_cache.cpp
@@ -74,10 +74,19 @@ size_t device_free_bytes() try {
     You may need to adjust the code.
     */
     dpct::get_current_device().get_memory_info(free_b, total_b);
-    if (const unsigned long long own = own_drm_local_bytes(); own > 0 && total_b > own && total_b - own < free_b) {
+    // Two drivers need the fdinfo number here, and the test has to cover both:
+    //   * i915 (Arc A750) reports the WHOLE card as free while this process holds several GiB of it, so the
+    //     engine over-allocates; `total_b - own < free_b` catches that (own lowers the figure).
+    //   * xe on Alchemist (Arc A770) does not expose ext_intel_free_memory at all, so dpct hands back
+    //     free_b == 0 and every cache sizes to 0 slots. `total_b - own < free_b` can never be true for a
+    //     0 (unsigned), so the fallback below was unreachable and the card looked empty; `free_b == 0`
+    //     is the case that arms it.
+    if (const unsigned long long own = own_drm_local_bytes(); own > 0 && total_b > own &&
+        (free_b == 0 || total_b - own < free_b)) {
         static std::atomic<bool> said{false};
-        if (free_b + (16ull << 20) >= total_b && !said.exchange(true))
-            std::fprintf(stderr, "strata: the driver reports the whole card as free although this process holds %.2f GiB of it (Arc A750/i915 does this); sizing from the DRM fdinfo instead\n", (double) own / 1073741824.0);
+        if (!said.exchange(true))
+            std::fprintf(stderr, "strata: the driver reports %.2f GiB of the card free while this process holds %.2f GiB of it (Arc A750/i915 reports it all free; xe on an A770 reports none); sizing from the DRM fdinfo instead\n",
+                         (double) free_b / 1073741824.0, (double) own / 1073741824.0);
         free_b = (size_t) (total_b - own);
     }
 #if defined(__linux__) && !defined(STRATA_HIP_GFX906)   // (the gfx906 compat layer has no cudaDevAttrIntegrated; that GPU is discrete)
diff --git a/sycl/src/program/generate.cpp b/sycl/src/program/generate.cpp
index d714f8c..9877ae1 100644
--- a/sycl/src/program/generate.cpp
+++ b/sycl/src/program/generate.cpp
@@ -8257,7 +8257,12 @@ int main(int argc, char **argv) try {
             extensions for device information which may not be supported by all
             compilers or runtimes. You may need to adjust the code.
             */
-            dpct::get_current_device().get_memory_info(free_b, total_b);
+            // SYCL port: go through device_free_bytes(), as every other free-VRAM reading in this file does.
+            // A bare get_memory_info() reports 0 on the xe driver (no ext_intel_free_memory), so this check warned
+            // "0 MiB free ... add --vram-reserve-mib N" on every start no matter how much the reserve was raised:
+            // an Arc A770 could never satisfy it, and the advice chased its own tail.
+            free_b = strata::core::device_free_bytes();
+            total_b = dpct::get_current_device().get_device_info().get_global_mem_size();
             // below ~256 MiB a later allocation (a first-used window's buffers, the desktop, another program) can make
             // the driver page GPU memory, and a verify graph spinning on a host flag then never finishes
             const int64_t free_mib = (int64_t) (free_b >> 20);```

This is the diff 
<!-- gh-comment-id:6115252703 --> @flare04 commented on GitHub (Oct 11, 2026): ```diff --git a/docs/INTEL_ARC.md b/docs/INTEL_ARC.md index 9b7bb85..a24d0f3 100644 --- a/docs/INTEL_ARC.md +++ b/docs/INTEL_ARC.md @@ -22,6 +22,7 @@ There is **no ready-made Intel engine** in the release zips. You build it from s | Community | 2x Arc Pro B60 24 GB, `--layer-split` | Coder IQ1_M: 56.6 tok/s decode, 428 tok/s prompt (2,129 tokens); Flash-Next IQ2_XS: 58.6-61.3 tok/s decode, 436 tok/s prompt; all experts in VRAM; 8K context | [bench/results/2026-10-04-community-2x-arc-pro-b60](../bench/results/2026-10-04-community-2x-arc-pro-b60/README.md) | | Community | one Arc Pro B60 24 GB | Coder IQ1_M with 4,042 of 12,288 experts mirrored in RAM: 11.9 tok/s decode (needs the ring-wait fix from the same report) | same | | Strata maintainers (0.1.40.2 and later) | Arc Pro B70 32 GB (xe) and Arc A750 8 GB (i915), test machines | Flash-Next IQ3_S on the B70 with 11.5k of 24.6k experts resident: 10-prompt gate passes, prompt 980-1,000 tok/s on 4K tokens, decode 30 (prose) to 41 (code) tok/s; the xe aliased-pages fix and the `NO_HOST` requirement are in [INTEL.md](INTEL.md) | INTEL.md, "Arc Pro B70 with a model that does not fit" | +| Community | **Arc A770 16 GB (Alchemist on `xe`)**, CachyOS, Ryzen 9 8945HX, 29 GB RAM | Coder IQ1_M, 64K int8 KV: 7.0-7.5 tok/s decode over 300-token runs, 24-32 tok/s prompt, 17.5-18.2 tok/s through the OpenAI API with MTP drafts 72-80% accepted. **The first Alchemist-on-`xe` result** - needs three code fixes and two runtime knobs | "Arc A770: Alchemist on `xe`" below | The 0.1.39 port re-migrates 0.1.38's port onto the 0.1.39 engine sources (the #606 NaN fix, the #649 verify trace, the new prompt paths). 0.1.39's `sycl/` did not compile against 0.1.39's own engine sources (#784: the @@ -48,9 +49,9 @@ Full flags, per-request timings and engine logs are in the report linked in the - **Unchanged:** the CUDA engine's greedy output, checked byte-identical against the gated 0.1.39 build (Q2_0 and Coder). The HIP build is not affected (the option is off by default). -**Not tested by anyone yet:** Windows (no native build path; see below), Arc on WSL2 for the 0.1.39 port, the Alchemist -A-series, integrated Arc GPUs (the B390 / Panther Lake in #515; the shared-memory planning does not exist yet), and -images (not wired on Intel). +**Not tested by anyone yet:** Windows (no native build path; see below), Arc on WSL2 for the 0.1.39 port, the +Alchemist A-series **on `i915`** (the A770 below runs on `xe`), integrated Arc GPUs (the B390 / Panther Lake in #515; +the shared-memory planning does not exist yet), and images (not wired on Intel). ## What you need @@ -60,6 +61,13 @@ images (not wired on Intel). - **Intel oneAPI**: the DPC++ compiler (`icpx`, 2025.3 or newer; 2026.1 is what was built here) and **oneMKL**. About 5 GB. - `cmake` 3.24+, `ninja`, `git` (the build fetches ggml unless you point `STRATA_GGML_DIR` at a llama.cpp checkout), Python 3. +- **Level Zero development headers** (`level_zero/ze_api.h`): `libze-dev` on Ubuntu, **`level-zero-headers`** on + Arch. The runtime loader (`libze1` / `level-zero-loader`) is *not* enough, and those are separate packages: the + port allocates its doorbell memory through `zeMemAllocHost` with `ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED`, guarded + by `STRATA_HAVE_ZE`, which is only defined when that header is present at build time. Without it the build + succeeds, the engine starts, and every answer is token 0 - see "The uncached doorbell needs the header". + CMake now warns when the header is missing; `-DSTRATA_LZ_INCLUDE=<dir holding level_zero/>` points at one + installed elsewhere. - For `./setup.sh --backend sycl` today: **Docker**, and nothing else from the list above except the GPU driver. `sycl/setup_intel.py` runs the engine in the `strata-sycl-dev` image built from `sycl/tools/Dockerfile`, and the engine is built in that image too ("Build with Docker" below). On Ubuntu: `sudo apt install docker.io git`, then @@ -155,6 +163,135 @@ Things that matter on an Arc (details in INTEL.md): `STRATA_*`, `ONEAPI_*`, `UR_*`, `IGC_*`, `SYCL_*` or `ZES_*` variable of the server's environment reach the engine through `strata-sycl.sh` (for example `STRATA_MIRROR_MIB`, `IGC_EnableDPEmulation`). +## Arc A770 16 GB: Alchemist on `xe` (2026-10-08) + +The first Alchemist result on the **`xe`** driver. Every other Alchemist row above is an A750 on `i915`, and every +`xe` row is a Battlemage card, so this box sits in the gap between the two recipes - and the code's Alchemist +defaults are keyed off the *driver name* (`intel_i915_gpu()`), which means an Alchemist card on `xe` inherits the +Battlemage values. Three of the four problems below come from that one mismatch. + +Host: Minisforum BD895i SE (Ryzen 9 8945HX), 29 GB usable RAM, CachyOS (kernel 7.2.9), `xe`, NEO 26.35.39758, +oneAPI 2026.0, native build (no Docker), `intel-compute-runtime` + `level-zero-loader` 1.32.0. +Model: Coder IQ1_M (23.42 GiB of experts), 64K context, int8 KV, MTP `--spec 4 --spec-min-p 0.5`. +Engine 0.1.40.3. Three code fixes (below: the doorbell build check, `xe` free VRAM, the serve-time VRAM check) and +two runtime knobs (`STRATA_WINDOW_SYNC=1`, `--mmap-experts`) are what it took; no shared upstream file's behaviour +changes on any other card. + +**Measured.** Decode, 300-token greedy runs (5 runs): **6.99-7.54 tok/s**, all five identical in content. +Prompt reading: **24-32 tok/s** (45-72 tokens). Through the OpenAI API (`server_intel.py`, 128-token answers): +**17.5-18.2 tok/s** with MTP drafts **72-80% accepted**. VRAM with everything loaded: 2,144 MiB free of 15.11 GiB. + +| | | +|---|---| +| decode (300 tokens, greedy) | 6.99-7.54 tok/s | +| prompt | 24-32 tok/s | +| API, 128-token answer | 17.5-18.2 tok/s, drafts 72-80% accepted | +| time to first token | 2.0-3.3 s (a warm JIT cache) | + +The decode figure is well below a Battlemage card's and below llama.cpp-SYCL's ~23 tok/s on a 16 GB Arc Pro B50 +(#423), and the reason is placement, not the port: the B50 runs a model whose experts all fit VRAM, while this box +cannot (a 4 GiB pinned-host ceiling, below), so the CPU computes 7-15 distinct experts per layer and the GPU waits +for them. The API figure is higher than the raw decode one because MTP accepts 72-80% of its drafts on code. + +### 1. The uncached doorbell needs the header (the answer was token 0) + +`sycl_queue.hpp` allocates the doorbell and ring buffers with `ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED`, but only when +`<level_zero/ze_api.h>` was present at build time. Arch ships the runtime in `level-zero-loader` and the headers in a +*separate* `level-zero-headers`, so a box whose Level Zero works fine builds the port without them: `host_malloc_polled` +falls back to `sycl::malloc_host`, a running kernel never sees the host's stores, every ring wait runs to `kSpinMax` +and the window goes on with the CPU experts' rows missing - NaN logits, and **every** output token 0. + +The failure is silent: the build is clean, the engine loads, prefill reports a sane rate, and the parity tests pass +(22 of 25 on the card, against 14 of 25 on the CPU device above; **no kernel hangs**, which is what pointed at the +host<->device protocol rather than the kernels). Measured before and after, one config: + +| | doorbell absent | doorbell built in | +|---|---|---| +| `wait for rings` | **42,140 ms/round** | **98.7 ms/round** | +| `pool` (the CPU experts, unchanged) | 26.8 ms/round | 34.1 ms/round | +| decode | 0.08 tok/s | 12.27 tok/s | +| output tokens | **32 of 32 were token 0** | **0 of 300 were** (5 runs) | + +Two different run lengths (32 tokens, then 300) because the broken build never got far enough to be worth running +long. Every token it produced was 0; not one of the 1,500 tokens across the five fixed runs was. + +The CPU side was never the problem - the host served its experts in 27 ms while the GPU waited 42 s for a store it +could not see. CMake now checks for the header and warns (and links `ze_loader`, which the doorbell calls directly); +`STRATA_LZ_INCLUDE` points at a header installed elsewhere. `nm -D strata | grep zeMemAllocHost` tells you whether a +build has it: an `U zeMemAllocHost` means yes, no output means the engine will answer token 0. + +### 2. `xe` reports no free VRAM, so every cache sized to 0 slots + +This driver does not expose `sycl::aspect::ext_intel_free_memory` (`ZES_ENABLE_SYSMAN=1` does not change it), so +dpct's `get_memory_info` returns 0 bytes free and `--spec` refuses to start with `it needs --spec T (T >= 2)`. +`device_free_bytes()` already has a DRM-fdinfo fallback, but its guard was + + own > 0 && total_b > own && total_b - own < free_b + +which can never be true for `free_b == 0` (unsigned), so the fallback was unreachable exactly in the case that needs +it. Arming it on `free_b == 0` as well is the whole fix: `xe` does report `drm-total-vram0` in +`/proc/self/fdinfo/*`. The expert cache went from **0 slots to 1,934** (3.72 GiB) with no other change. + +The same file's serve-time check ("N MiB of VRAM free with everything loaded") called `get_memory_info()` directly +instead of `device_free_bytes()` like the four other free-VRAM readings in `generate.cpp`. It therefore printed +`0 MiB free ... add --vram-reserve-mib N` on every start no matter how high the reserve was raised, chasing its own +tail; routed through `device_free_bytes()` it reports the true 2,144 MiB. + +### 3. `STRATA_WINDOW_SYNC` defaults off the driver name, not the architecture + +`verify.cpp` defaults `STRATA_WINDOW_SYNC` to 1 on an `i915` card and 0 elsewhere, for the documented Alchemist +behaviour that a window launched behind other in-flight GPU work never starts. An Alchemist card on `xe` reports +`xe`, so it gets the Battlemage default of 0 - and long runs then stall with +`verify: timed out at layer 0`, the host having already served the layer (so it is not the handshake of #1). + +Measured on 300-token runs, the adaptive expert tier on (its async swaps are exactly the "other GPU work"): + +| lever | runs | completed | +|---|---|---| +| `STRATA_WINDOW_SYNC=0` (the inherited default) | 3 | **0** | +| `STRATA_WINDOW_SYNC=1` | 4 | **4** | +| `STRATA_WINDOW_SYNC=0` + `--adapt-every 0` | 1 | 1 | + +Both levers work, so the stall needs the adaptive tier *and* a window launched behind it. This is a **runtime knob +only** - the patch does not change the default, because keying it correctly means detecting Alchemist by +*architecture* rather than by driver name, and 8 runs on one machine is thin evidence for a change that costs every +Battlemage-on-`xe` card a queue drain per window. Suggested default for an Alchemist card whatever its driver: + + export STRATA_WINDOW_SYNC=1 + +### 4. The pinned arena does not fit a 29 GB host - use `--mmap-experts` + +Without it the engine pins the whole 23.42 GiB expert arena (`cudaHostRegister PORTABLE ok`), leaving ~3 GB +reclaimable on a 29 GB box: the long runs were OOM-killed (exit 137) mid-decode with 338k major faults and 7.3 GiB +swapped. `--mmap-experts` makes it file-backed and costs decode (**12.27 -> 7.0-7.5 tok/s**) but is what keeps a +small-RAM host alive. Prefill is not affected - it reads 3.7 tok/s on the first run after a boot and 24-25 tok/s +once the OS file cache holds the pack, whichever arena mode is in use. Related, and why the B70's +`--stream-experts` recipe is not available here: its mirror is one pinned host allocation, and a `malloc_host` +ladder on this card returns **null at 4 GiB** (2 GiB succeeds, held or freed), with `ulimit -l` at 8 MiB and +unraisable without root. + +### Recipe that produced the numbers above + + OverrideDefaultFP64Settings=1 IGC_EnableDPEmulation=1 NEOReadDebugKeys=1 # Alchemist: no FP64 hardware + ONEAPI_DEVICE_SELECTOR=level_zero:gpu ZE_AFFINITY_MASK=0 # not the iGPU + SYCL_CACHE_PERSISTENT=0 UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 + SYCL_PROGRAM_APPEND_COMPILE_OPTIONS=-ze-intel-greater-than-4GB-buffer-required + ZES_ENABLE_SYSMAN=1 STRATA_WINDOW_SYNC=1 + STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=0 # Alchemist, not the xe/B70 value + + strata --pack <pack> --native <shard1> --ple-gguf <shard2> --expert-profile <profile> \ + --mmap-experts --expert-cache auto --no-prefill-borrow --prefill 512 \ + --spec 4 --spec-min-p 0.5 --mtp <mtp-dir> \ + --max-context 65536 --kv int8 --vram-reserve-mib 2048 + +Note the pairing that is easy to get wrong: `STRATA_VERIFY_NO_HOST=0` (the Alchemist value, because the CPU computes +experts outside VRAM here) with `STRATA_WINDOW_SYNC=1` (also the Alchemist value) on a card that reports `xe`. +`NO_HOST=1`, the B70's, hangs the window on this card; `WINDOW_SYNC=0`, the Battlemage-on-`xe` default, stalls long runs. + +The teardown crash documented for the A750 ("segfaults in a worker thread of the CPU pool when it exits") also +happens here, as does `UR_RESULT_ERROR_UNINITIALIZED` at exit - both **after** a completed generation, so judge a run +by its `decode`/`output` lines, not its exit code. + ## Windows There is no Windows path yet. `setup --backend sycl` on Windows stops and points here. oneAPI exists for Windows, diff --git a/sycl/CMakeLists.txt b/sycl/CMakeLists.txt index 4d79be3..e71699d 100644 --- a/sycl/CMakeLists.txt +++ b/sycl/CMakeLists.txt @@ -99,6 +99,35 @@ target_include_directories(strata_includes INTERFACE ${STRATA_ROOT}/include) target_compile_options(strata_includes INTERFACE -Wall -Wextra) +# --- Level Zero headers: the uncached doorbell allocation (sycl_queue.hpp, STRATA_HAVE_ZE) ---------------------- +# host_malloc_polled() can only hand out ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED memory when <level_zero/ze_api.h> +# is present AT BUILD TIME. Without the header the port silently falls back to sycl::malloc_host, a running kernel +# never sees the host's stores, every ring wait runs to kSpinMax and the window goes on with the CPU experts' +# rows missing: NaN logits and an answer of token 0. The build stays clean and the failure looks like a +# numerical bug, so this checks for the header and says so when it is absent. +# Distributions split the Level Zero loader (runtime) from its headers, so a box whose Level Zero runtime works +# can still be missing ze_api.h: on Arch the package is level-zero-headers, on Ubuntu libze-dev. +# STRATA_LZ_INCLUDE points at a directory holding level_zero/ for a header that is installed elsewhere. +set(STRATA_LZ_INCLUDE "" CACHE PATH "extra include dir holding <level_zero/ze_api.h> (empty: autodetect)") +if(NOT STRATA_LZ_INCLUDE) + include(CheckIncludeFileCXX) + check_include_file_cxx(level_zero/ze_api.h STRATA_HAVE_LZ_HEADER) + if(NOT STRATA_HAVE_LZ_HEADER) + message(WARNING "strata: <level_zero/ze_api.h> not found (Arch: level-zero-headers, Ubuntu: libze-dev), so the " + "SYCL port builds WITHOUT the uncached doorbell (STRATA_HAVE_ZE). The engine then runs but an " + "Arc's ring waits never see a host store and decode answers token 0; install the header and " + "rebuild, or pass -DSTRATA_LZ_INCLUDE=<dir holding level_zero/>.") + endif() +else() + target_include_directories(strata_includes INTERFACE ${STRATA_LZ_INCLUDE}) +endif() +# The doorbell calls zeMemAllocHost/zeMemFree directly, so link the loader when STRATA_HAVE_ZE can be set. +find_library(STRATA_ZE_LOADER NAMES ze_loader HINTS /usr/lib /usr/lib64 /usr/local/lib) +if(STRATA_ZE_LOADER) + target_link_libraries(strata_includes INTERFACE ${STRATA_ZE_LOADER}) + message(STATUS "strata: Level Zero loader ${STRATA_ZE_LOADER}") +endif() + # --- CPU-side pieces, identical to the top-level build ------------------------------------------------------------ strata_resolve(_spec src/spec/suffix_drafter.cpp src/spec/controller.cpp src/spec/draft_policy.cpp src/spec/draft_source.cpp) diff --git a/sycl/src/core/expert_cache.cpp b/sycl/src/core/expert_cache.cpp index ed1c874..4517185 100644 --- a/sycl/src/core/expert_cache.cpp +++ b/sycl/src/core/expert_cache.cpp @@ -74,10 +74,19 @@ size_t device_free_bytes() try { You may need to adjust the code. */ dpct::get_current_device().get_memory_info(free_b, total_b); - if (const unsigned long long own = own_drm_local_bytes(); own > 0 && total_b > own && total_b - own < free_b) { + // Two drivers need the fdinfo number here, and the test has to cover both: + // * i915 (Arc A750) reports the WHOLE card as free while this process holds several GiB of it, so the + // engine over-allocates; `total_b - own < free_b` catches that (own lowers the figure). + // * xe on Alchemist (Arc A770) does not expose ext_intel_free_memory at all, so dpct hands back + // free_b == 0 and every cache sizes to 0 slots. `total_b - own < free_b` can never be true for a + // 0 (unsigned), so the fallback below was unreachable and the card looked empty; `free_b == 0` + // is the case that arms it. + if (const unsigned long long own = own_drm_local_bytes(); own > 0 && total_b > own && + (free_b == 0 || total_b - own < free_b)) { static std::atomic<bool> said{false}; - if (free_b + (16ull << 20) >= total_b && !said.exchange(true)) - std::fprintf(stderr, "strata: the driver reports the whole card as free although this process holds %.2f GiB of it (Arc A750/i915 does this); sizing from the DRM fdinfo instead\n", (double) own / 1073741824.0); + if (!said.exchange(true)) + std::fprintf(stderr, "strata: the driver reports %.2f GiB of the card free while this process holds %.2f GiB of it (Arc A750/i915 reports it all free; xe on an A770 reports none); sizing from the DRM fdinfo instead\n", + (double) free_b / 1073741824.0, (double) own / 1073741824.0); free_b = (size_t) (total_b - own); } #if defined(__linux__) && !defined(STRATA_HIP_GFX906) // (the gfx906 compat layer has no cudaDevAttrIntegrated; that GPU is discrete) diff --git a/sycl/src/program/generate.cpp b/sycl/src/program/generate.cpp index d714f8c..9877ae1 100644 --- a/sycl/src/program/generate.cpp +++ b/sycl/src/program/generate.cpp @@ -8257,7 +8257,12 @@ int main(int argc, char **argv) try { extensions for device information which may not be supported by all compilers or runtimes. You may need to adjust the code. */ - dpct::get_current_device().get_memory_info(free_b, total_b); + // SYCL port: go through device_free_bytes(), as every other free-VRAM reading in this file does. + // A bare get_memory_info() reports 0 on the xe driver (no ext_intel_free_memory), so this check warned + // "0 MiB free ... add --vram-reserve-mib N" on every start no matter how much the reserve was raised: + // an Arc A770 could never satisfy it, and the advice chased its own tail. + free_b = strata::core::device_free_bytes(); + total_b = dpct::get_current_device().get_device_info().get_global_mem_size(); // below ~256 MiB a later allocation (a first-used window's buffers, the desktop, another program) can make // the driver page GPU memory, and a verify graph spinning on a host flag then never finishes const int64_t free_mib = (int64_t) (free_b >> 20);``` This is the diff
Author
Owner

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

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156152036 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#641
No description provided.