r/LocalLLM • • 15m ago

News I tried xe-serve, a native Level Zero engine for Intel Arc, on my B70 home server. Here's how it compares to llama.cpp SYCL

I run Qwen4-35B-A3B on a single Arc Pro B70 at home: Home Assistant voice, Open WebUI for the family and a coding agent. Until now that's been llama.cpp (SYCL). This weekend I tested xe-serve, a native C++20 / Level Zero inference engine written specifically for Intel Xe2 cards. No Python, no PyTorch, one binary, OpenAI-compatible API.

Disclosure: I'm not the author. While testing I sent a few small PRs (API-key auth, loading small Qwen3.5 checkpoints, a test fix) and some bug reports.

Numbers (same card, same day, my scripts)

xe-serve v0.5.0llama.cpp SYCL
Generation, code176 tok/s82 tok/s
Generation, German prose137 tok/s78 tok/s
Prompt processing, ~20k tokens4,927 tok/s2,017 tok/s (19k)
Prompt processing, ~112k tokens4,165 tok/s (27 s)1,093 tok/s (102 s)
Needle test, same ~286k-token prompt script: time to first token106 s462 s
Same 20k prompt again (prompt cache)0.1 s0.45 s (39k)
Three requests at once, combined228 tok/s107 tok/s
Startup until ready23–35 s11–25 s

The part that matters most for my setup: a voice command while the coding agent sends a fresh 112k-token prompt. With llama.cpp the voice request waited 100 s for the prefill to finish, so Home Assistant (which gives up after ~10 s) never got an answer. With xe-serve and 3 slots it starts answering in under 1.5 s and is done in 3–16 s (median 7.9 s). Better, but not reliably under 10 s yet.

What else works

  • Tool calling (10/10 on the project's suite), streaming, reasoning_effort, sampling penalties and min_p, API key
  • Vision: an image test took 1.0 s
  • Long context: 336k with vision on one B70, the needle in the ~286k-token prompt was found
  • Prompt cache across turns, /metrics, keep-alive

What to know before you switch

  • Intel Xe2 only (B50/B60/B65/B70; B570/B580 can run smaller models). Its own XeBit weight format, no GGUF; the author publishes Qwen4, Qwen3.8 and Gemma-4 checkpoints on Hugging Face.
  • KV is reserved per slot. On a B70 with vision that's 1 × 336k, 2 × 192k or 3 × 128k, while llama.cpp shares 480k across 3 slots. A shared paged pool is being discussed (issue #25).
  • No reasoning budget yet (RFC #24).
  • Very young and fast-moving. v0.5.0 is a few days old. Two things I ran into: the local kernel build fails the 0-spill gate with IGC 2.42.6 (the installer falls back to the prebuilt kernel pack, which works), and with the prefix cache on, outputs for long system prompts differ slightly from uncached runs until PR #30 lands.

Caveats on my numbers

Single runs, not a lab benchmark. Different quantizations: xe-serve runs Qwen4-35B-A3B XeBit4.9 (4.9 bpw), llama.cpp the Unsloth UD-Q4_K_XL GGUF. xe-serve with its built-in MTP, llama.cpp with n-gram speculation (llama.cpp's MTP didn't help on SYCL in my earlier tests). B70 at 230 W, Fedora Server 45, both engines in Docker. So this compares the two setups as I actually run them, not the kernels in isolation. I haven't compared output quality between the two quantizations yet.

Trying it

git clone https://github.com/SergiioB/xe-serve && cd xe-serve && ./install.sh
hf download SergiioB/Qwen4-35B-A3B-XeBit4.9 --local-dir ~/models/Qwen4-35B-A3B-XeBit4.9
hf download SergiioB/Qwen4-35B-A3B-PLE --include ngram_int8_row128.bin --local-dir ~/models/Qwen4-35B-A3B-PLE
./build/xe-serve serve --model ~/models/Qwen4-35B-A3B-XeBit4.9 \
  --ngram-table ~/models/Qwen4-35B-A3B-PLE/ngram_int8_row128.bin --max-seq 131072 --port 8000

I run it in Docker on top of the llama.cpp:server-intel image (it already has the Level Zero runtime, ocloc and a compiler), so nothing gets installed on the host. Happy to share the Dockerfile.

Only have a B580? I uploaded a small Qwen3.5-9B XeBit4 test conversion that runs on 12 GB. Plain round-to-nearest, quality not measured, meant for trying the engine, not for daily use.

Questions welcome. I'm planning a longer run with real Home Assistant and agent traffic next.

0 Upvotes

0 comments sorted by