okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-clean-3 (321794636): docs and history (cleanup step 3, items 3.0-3.10); release manifest and capability table with checks, history/ with pointers, link check, tools/ split, bench index; owner OK'd the wording 11-082b36e8a02

main
15.3 KiB204 linesraw

Intel Arc on Linux

Strata runs on Intel Arc cards on Linux through its own engine ported to SYCL (Intel oneAPI). This page is for people with an Arc A-series (Alchemist) or B-series (Battlemage) card. It covers the released Terminal route, what you need, how to build the engine from source, and which cards were tested. The port's workflow and measurements are in INTEL.md.

maxfridbe wrote the port in #423. The code is in sycl/. Intel Arc is an official platform since 0.1.40.2. The maintainers test on an Arc Pro B70 (32 GB, xe driver) and an Arc A750 (8 GB, i915 driver); results from other cards are community reports. The Mac and Windows builds have no Intel engine.

Quick start

Install the Terminal, then point strata launch at the folder that holds the model's .gguf files (the Qwen3.8-Flash-Next files from ISTA-DASLab, for example IQ3_S or IQ2_XS):

strata launch --model-path /path/to/the/gguf/folder --plan    # shows what would happen, changes nothing
strata launch --model-path /path/to/the/gguf/folder

The first launch does everything itself: it downloads the Intel engine package linux-x86_64-sycl from the signed feed, builds the pack for your model from the GGUF files (a few minutes, once; it fetches llama.cpp's gguf-py helper from GitHub by itself, so it needs internet that one time), writes the run settings and starts the server. Nothing is installed by hand.

  • A PC with an NVIDIA or AMD card as well uses that card by default, and --plan says the Intel cards exist. To use the Intel cards add --backend intel once: the choice is remembered (in the settings file) for the next launch, strata update and the app's engine check. strata launch --backend auto goes back to the PC's own choice. Nothing is refused either way.
  • Models are not downloaded for Intel cards yet. Give the folder with --model-path; Strata does not touch your files.
  • The draft layer (MTP) is not built for Intel cards, so answers are a little slower than on a card with the full setup. An existing mtp/rt folder in the data folder is used.
  • strata doctor --live checks the driver, the render group and the card, and strata update --check shows the engine package.

On Linux, strata update (Terminal) and Settings > Update (app) download the Intel engine package for a PC whose graphics card is made by Intel. One package serves Alchemist and Battlemage: the GPU code is compiled from SPIR-V at the first start, because the A-series cards have no FP64 units. The package carries oneAPI's runtime libraries. The Level Zero loader and the compute runtime stay the PC's own (see What you need), and your user must be in the render group (strata doctor says so). It was tested on an Arc A750 and, in 0.2.10, on two Arc Pro B65 cards. The package is built by packaging/build_sycl_linux.sh.

The source and container workflow (INTEL.md) still exists for building the engine yourself; the Terminal does not need it.

Docker: the ready-made image is ghcr.io/niko1221/strata:0.2.3-sycl, published only for a release that carries a Linux Intel engine package. Otherwise build the image yourself. The image needs prepared model files (Docker: Intel Arc).

What you need

  • Linux, for example Ubuntu 24.04, with Intel's GPU driver: the xe or i915 kernel driver plus the compute runtime and Level Zero. On Ubuntu: intel-opencl-icd libze1 libze-intel-gpu1, or follow Intel's client GPU guide.
  • The CPU and the model folder. The CPU does not need AVX-512. A Ryzen 3000-5000 or an Intel Core 12th-14th generation runs the experts that do not fit on the card with AVX2 (measured on an A750 with a Ryzen 5 5600X, INTEL.md). This applies to model folders that contain native_experts.txt (IQ3_XXS, IQ3_S, NVFP4, Unsloth). An older Q2_0 folder has no such file, and its CPU kernel needs AVX-512. With that folder the engine stops with "this CPU cannot run the expert kernel", and strata doctor warns about it before the start. Building the model folder again with strata setup (or tools/iq_pack.py) fixes it.
  • For a source build without Docker: Intel oneAPI with the DPC++ compiler (icpx, 2026.1 or newer; 2025.3 does not build the engine) and oneMKL (about 5 GB), cmake 3.24+, ninja, git, Python 3. The build fetches ggml unless you point STRATA_GGML_DIR at a llama.cpp checkout.
  • For ./setup.sh --backend sycl: Docker and the GPU driver, nothing else from the list above. sycl/setup_intel.py builds and runs the engine in the strata-sycl-dev image from sycl/tools/Dockerfile, which starts from a community llama.cpp SYCL image (ghcr.io/snailium/...), not an Intel or Strata image. On Ubuntu: sudo apt install docker.io git, then sudo usermod -aG docker,render $USER and log in again.
  • VRAM: the port keeps the experts on the card (--stream-experts). A 32 GB card holds the Coder IQ1_M or IQ2_XS. Smaller cards mirror part of the experts in RAM and are slower. Under the wrapper's STRATA_VERIFY_NO_HOST=1 there is no SSD expert tier on xe: every expert must be in VRAM or in the pinned RAM mirror (STRATA_MIRROR_MIB), and the engine refuses to start when the two do not cover the model. Size the RAM accordingly, or lower --max-context.

Build with Docker (what setup --backend sycl uses)

About 10 minutes the first time. From the checkout, called Strata here:

cd Strata
docker build --pull -t strata-sycl-dev sycl/tools     # once: about 6 minutes, a 13 GB image
H=$(basename "$PWD")
# Arc B-series: bmg-g31 (Pro B70), bmg-g21 (B580, B570, Pro B60). Arc A-series (Alchemist): leave out AOT (JIT) and use build-sycl
docker run --rm -u $(id -u):$(id -g) -v "$PWD/..:/work" -e AOT=bmg-g31 -e REPO=/work/$H \
    -e BUILD_DIR=/work/$H/build-sycl-aot strata-sycl-dev "cd /work/$H && bash sycl/tools/build.sh strata"

--pull matters: INTEL.md says why. Then run ./setup.sh --backend sycl. Do not run python3 sycl/setup_intel.py by hand: on Ubuntu it fails with externally-managed-environment; setup.sh runs it in its own .venv.

Build without Docker

This builds the engine for running it by hand (INTEL.md). setup itself uses the Docker build. Install oneAPI from Intel's apt repository:

wget -qO- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
  | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" \
  | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mkl-devel ninja-build cmake git

Build the engine through the top-level CMake option or by configuring the sycl/ project directly:

source /opt/intel/oneapi/setvars.sh
cmake -S . -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DSTRATA_ENABLE_SYCL=ON
#   or: cmake -S sycl -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx
cmake --build build-sycl --target strata
OptionEffect
-DSTRATA_SYCL_AOT=bmg-g31Compile ahead of time for Arc Pro B70. Needs ocloc (Intel's intel-ocloc package). Without it the first start JIT-compiles every kernel (about 47 s).
-DSTRATA_SYCL_AOT=bmg-g21The same for B580, B570 and Pro B60
-DSTRATA_SYCL_PARITY=OFFSkip the kernel tests (on by default). Run them with ctest --test-dir build-sycl on the card.

setup_intel.py looks for build-sycl-aot/strata or build-sycl/strata in the checkout. With the top-level option the engine is at build-sycl/sycl/strata, so use -S sycl or set STRATA_SYCL_BIN.

Setup and running

./setup.sh --backend sycl [setup's usual options, e.g. --model IQ2_XS --context 32768]

Setup continues with sycl/setup_intel.py, which finds the Arc in sysfs, uses the SYCL engine you built, and writes the config and run-<model>.sh. On a card under 12 GB or an i915 card (the A-series) it writes the small-card config (INTEL.md). It downloads and packs the model the usual way. Windows has no path: setup --backend sycl on Windows stops and points here.

Things that matter on an Arc (details in INTEL.md):

  • Do not ask for more VRAM than the card has. On the xe driver an allocation past VRAM can push buffers into RAM until the machine runs out of memory and stalls. Leave about 1.5 GB free.
  • SYCL_CACHE_PERSISTENT=0: the persistent JIT cache crashed on Xe2 during the first compile.
  • Two cards: ONEAPI_DEVICE_SELECTOR=level_zero:* (the image pins level_zero:0; strata-sycl.sh passes the variable through) and --layer-split.
  • --layer-split auto on two equal cards takes the split that leaves the fullest card the most VRAM to spare, within 0.2% of the best predicted time (STRATA_SPLIT_HEADROOM_TOL). STRATA_SPLIT_HEADROOM=0 turns that off. A full card under xe moves buffers to system memory instead of failing. The startup line names both splits when the choice moves.
  • Two Arc B-series cards decode faster by default. With exactly two B-series cards (B50, B60, B65, B70, B570, B580) in a layer split, the first card starts the next window while the second still checks this one (--pipeline-windows 2), and setup writes --spec 2 for the pair. On 2x Arc Pro B65 this decodes 17% to 23% faster than the old serial --spec 4 setup, 5 pairs out of 5: chat 71-74 tok/s against 60-63, JSON 80-83 against 67-68, code 72-78 against 59-65, plain text 67-68 against 56-57. The answers are those of a serial --spec 2 run (100 of 100 agent requests); a serial --spec 4 run differs in a rare near-tie (3 of 100). One card, an A-series card, a mixed pair and three or more cards run as before. --pipeline-windows 0 turns it off, and a --spec of your own, put in the config's user_args, is kept.
  • Arc Pro B60: PCI id 8086:e211 (lspci -nn), sycl-ls prints Intel(R) Arc(TM) Pro B60 Graphics 20.1.0, so -DSTRATA_SYCL_AOT=bmg-g21 is the right target. setup_intel.py knows both B60 ids, e211 and e221. On a --layer-split the startup line "N experts are neither in VRAM nor mirrored" counts the other card's layers; read the following 100% of the experts resident lines. Set STRATA_MIRROR_MIB=0 there, or the pinned mirror is allocated and not used.
  • setvars.sh and set -u: source /opt/intel/oneapi/setvars.sh in a shell with set -u stops at OCL_ICD_FILENAMES: unbound variable (oneAPI 2026.1.1). Source it before set -u.
  • Without Docker: sycl/serve/strata-sycl.sh needs Docker. Natively, source setvars.sh, export SYCL_CACHE_PERSISTENT=0, ZES_ENABLE_SYSMAN=1 and STRATA_VERIFY_DEVICE_PLAN=1, then run build-sycl-aot/strata or sycl/serve/server_intel.py with an exe that does this. A normal user is not in the render group on Ubuntu, and then sycl-ls shows only the CPU.
  • STRATA_VERIFY_NO_HOST=1 (set by strata-sycl.sh unless the config's "env" says otherwise) is needed on xe cards when part of the experts is not in VRAM, and is left off on the i915 A-series (INTEL.md). The config's "env" block and any STRATA_*, ONEAPI_*, UR_*, IGC_*, SYCL_* or ZES_* variable of the server's environment reach the engine through strata-sycl.sh.

Tested cards

Measured on: the hardware in each row, Linux. Versions are the engine version of that report, not the current release.

WhoHardwareResultReported in
Port authorArc Pro B70 32 GB, Ubuntu 24.04, 0.1.31-syclCoder IQ1_M: 70-78 tok/s decode, about 790 tok/s prompt; IQ2_XS: 51-64 tok/s; 256K context#423, INTEL.md
Community2x Arc Pro B70, --layer-splitFlash-Next IQ3_XXS 66 tok/s decode, 394 tok/s prompt#423
CommunityArc Pro B50 16 GBCoder IQ1_M about 23 tok/s, IQ2_XS about 25-27 tok/s, up to 128K#423
CommunityArc B580 12 GB, WSL2IQ2_XS about 21 tok/s, Coder about 15 tok/s; device loss also seen#423
Community2x Arc Pro B60 24 GB, --layer-split, Ryzen 5 5600, 64 GB, PCIe 3.0 x8 per cardCoder 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 contextreport
CommunityOne Arc Pro B60 24 GBCoder IQ1_M with 4,042 of 12,288 experts mirrored in RAM: 11.9 tok/s decodesame
MaintainersArc Pro B70 32 GB (xe), 0.1.40.2 and laterFlash-Next IQ3_S 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/sINTEL.md
MaintainersArc A750 8 GB (i915)Flash-Next IQ3_XXS about 10-19 tok/s decodeINTEL.md
Maintainers2x Arc Pro B65 32 GB (xe), 0.2.8Flash-Next IQ3_S, every expert in VRAM, the JIT package build: decode 71-83 tok/s (chat, JSON, code), prompts 1,261 / 1,511 / 1,628 tok/s at 4K / 8K / 16Kthe bullet above

Two cards on xe (2x Arc Pro B70, IQ3_S, 0.1.44): --layer-split auto picked a split at about 11 tok/s where --layer-split 30 ran about 54. The auto choice now prefers the split with the most VRAM headroom (above).

Not tested by anyone: Windows (no native build path), Arc on WSL2 with the current engine, integrated Arc GPUs (the B390 / Panther Lake in #515; shared-memory planning does not exist), and pictures on a Battlemage card with a GPU reader. Pictures work on the A750 (on by default, read on the CPU). See INTEL.md.

Windows

There is no Windows path. setup --backend sycl on Windows stops and points here. oneAPI exists for Windows, but sycl/CMakeLists.txt uses GCC-style flags (-mavx512f, -fp-model=precise, -qmkl) and the runner is a bash/Docker script. Nobody has tried a native build. WSL2 with an Arc was used by one tester (the B580 row above), but setup cannot detect the card there, because it reads /sys/class/drm, which WSL2 does not have.

Reporting a problem

Open an issue with the card, the driver version, the sycl-ls output, the oneAPI version, the model and flags, and the engine's stderr. Results from real cards are what move more cards from tested to validated.

History / older measurements

The first port (0.1.39) compiled with 0 errors on Ubuntu 24.04 (WSL2) with oneAPI DPC++ 2026.1.1 and oneMKL 2026.1: the strata engine plus 157 targets, as SPIR-V (JIT). Kernel parity tests on a CPU (ONEAPI_DEVICE_SELECTOR=opencl:cpu, Ryzen 5 7600) passed 14 of 25, the same set as the 0.1.38 port; the failures were tight float tolerances, missing model fixtures and two CPU timeouts. That was a compile-and-compute check, not a test of an Arc. The CUDA engine's greedy output stayed byte-identical.

The two B60 rows ran commit 6f32ec0 plus two small sycl/ fixes, AOT bmg-g21, Ubuntu 24.04, xe, Level Zero V2, NEO 26.09.37435.12 and oneAPI 2026.1.1, without Docker. No one ran an unpatched 0.1.39 port on an Arc; the other rows were measured on earlier versions.

1# Intel Arc on Linux
2
3Strata runs on Intel Arc cards on Linux through its own engine ported to SYCL (Intel oneAPI). This page is for people with
4an Arc A-series (Alchemist) or B-series (Battlemage) card. It covers the released Terminal route, what you need, how to
5build the engine from source, and which cards were tested. The port's workflow and measurements are in [INTEL.md](INTEL.md).
6
7maxfridbe wrote the port in [#423](https://github.com/Niko1221/Strata/pull/423). The code is in `sycl/`. Intel Arc is an
8official platform since 0.1.40.2. The maintainers test on an Arc Pro B70 (32 GB, `xe` driver) and an Arc A750 (8 GB, `i915`
9driver); results from other cards are community reports. The Mac and Windows builds have no Intel engine.
10
11## Quick start
12
13Install the [Terminal](INSTALL.md#the-terminal), then point `strata launch` at the folder that holds the model's `.gguf` files
14(the Qwen3.8-Flash-Next files from ISTA-DASLab, for example IQ3_S or IQ2_XS):
15
16```sh
17strata launch --model-path /path/to/the/gguf/folder --plan    # shows what would happen, changes nothing
18strata launch --model-path /path/to/the/gguf/folder
19```
20
21The first launch does everything itself: it downloads the Intel engine package `linux-x86_64-sycl` from the signed feed, builds the
22pack for your model from the GGUF files (a few minutes, once; it fetches llama.cpp's `gguf-py` helper from GitHub by itself, so it needs
23internet that one time), writes the run settings and starts the server. Nothing is installed by hand.
24
25- **A PC with an NVIDIA or AMD card as well** uses that card by default, and `--plan` says the Intel cards exist. To use the Intel cards
26  add `--backend intel` once: the choice is remembered (in the settings file) for the next launch, `strata update` and the app's engine
27  check. `strata launch --backend auto` goes back to the PC's own choice. Nothing is refused either way.
28- **Models are not downloaded for Intel cards yet.** Give the folder with `--model-path`; Strata does not touch your files.
29- **The draft layer (MTP) is not built for Intel cards**, so answers are a little slower than on a card with the full setup. An
30  existing `mtp/rt` folder in the data folder is used.
31- `strata doctor --live` checks the driver, the render group and the card, and `strata update --check` shows the engine package.
32
33On Linux, `strata update` (Terminal) and Settings > Update (app) download the Intel engine package for a PC
34whose graphics card is made by Intel. One package serves Alchemist and Battlemage: the GPU code is compiled from SPIR-V at the
35first start, because the A-series cards have no FP64 units. The package carries oneAPI's runtime libraries. The Level Zero
36loader and the compute runtime stay the PC's own (see [What you need](#what-you-need)), and your user must be in the `render`
37group (`strata doctor` says so). It was tested on an Arc A750 and, in 0.2.10, on two Arc Pro B65 cards. The package is built by
38`packaging/build_sycl_linux.sh`.
39
40The source and container workflow ([INTEL.md](INTEL.md#setup)) still exists for building the engine yourself; the Terminal does not need it.
41
42Docker: the ready-made image is `ghcr.io/niko1221/strata:0.2.3-sycl`, published only for a release that carries a Linux Intel
43engine package. Otherwise [build the image yourself](DOCKER.md#build-it-yourself). The image needs prepared model files
44([Docker: Intel Arc](DOCKER.md#intel-arc)).
45
46## What you need
47
48- **Linux**, for example Ubuntu 24.04, with Intel's GPU driver: the `xe` or `i915` kernel driver plus the compute runtime and
49  Level Zero. On Ubuntu: `intel-opencl-icd libze1 libze-intel-gpu1`, or follow Intel's
50  [client GPU guide](https://dgpu-docs.intel.com/driver/client/overview.html).
51- **The CPU and the model folder.** The CPU does not need AVX-512. A Ryzen 3000-5000 or an Intel Core 12th-14th generation runs the
52  experts that do not fit on the card with AVX2 (measured on an A750 with a Ryzen 5 5600X, [INTEL.md](INTEL.md)). This applies to
53  model folders that contain `native_experts.txt` (IQ3_XXS, IQ3_S, NVFP4, Unsloth). An older Q2_0 folder has no such file, and its
54  CPU kernel needs AVX-512. With that folder the engine stops with "this CPU cannot run the expert kernel", and `strata doctor`
55  warns about it before the start. Building the model folder again with `strata setup` (or `tools/iq_pack.py`) fixes it.
56- For a source build without Docker: **Intel oneAPI** with the DPC++ compiler (`icpx`, **2026.1 or newer**; 2025.3 does not build the engine) and **oneMKL**
57  (about 5 GB), `cmake` 3.24+, `ninja`, `git`, Python 3. The build fetches ggml unless you point `STRATA_GGML_DIR` at a
58  llama.cpp checkout.
59- For `./setup.sh --backend sycl`: **Docker** and the GPU driver, nothing else from the list above. `sycl/setup_intel.py`
60  builds and runs the engine in the `strata-sycl-dev` image from `sycl/tools/Dockerfile`, which starts from a community
61  llama.cpp SYCL image (`ghcr.io/snailium/...`), not an Intel or Strata image. On Ubuntu:
62  `sudo apt install docker.io git`, then `sudo usermod -aG docker,render $USER` and log in again.
63- VRAM: the port keeps the experts on the card (`--stream-experts`). A 32 GB card holds the Coder IQ1_M or IQ2_XS. Smaller
64  cards mirror part of the experts in RAM and are slower.
65  Under the wrapper's `STRATA_VERIFY_NO_HOST=1` there is no SSD expert tier on `xe`: every expert must
66  be in VRAM or in the pinned RAM mirror (`STRATA_MIRROR_MIB`), and the engine refuses to start when
67  the two do not cover the model. Size the RAM accordingly, or lower `--max-context`.
68
69## Build with Docker (what `setup --backend sycl` uses)
70
71About 10 minutes the first time. From the checkout, called `Strata` here:
72
73```sh
74cd Strata
75docker build --pull -t strata-sycl-dev sycl/tools     # once: about 6 minutes, a 13 GB image
76H=$(basename "$PWD")
77# Arc B-series: bmg-g31 (Pro B70), bmg-g21 (B580, B570, Pro B60). Arc A-series (Alchemist): leave out AOT (JIT) and use build-sycl
78docker run --rm -u $(id -u):$(id -g) -v "$PWD/..:/work" -e AOT=bmg-g31 -e REPO=/work/$H \
79    -e BUILD_DIR=/work/$H/build-sycl-aot strata-sycl-dev "cd /work/$H && bash sycl/tools/build.sh strata"
80```
81
82`--pull` matters: [INTEL.md](INTEL.md#how-to-build-it) says why. Then run `./setup.sh --backend sycl`. Do not run
83`python3 sycl/setup_intel.py` by hand: on Ubuntu it fails with `externally-managed-environment`; `setup.sh` runs it in its own
84`.venv`.
85
86## Build without Docker
87
88This builds the engine for running it by hand ([INTEL.md](INTEL.md#how-to-run-it-by-hand)). `setup` itself uses the Docker build.
89Install oneAPI from Intel's apt repository:
90
91```sh
92wget -qO- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
93  | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
94echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" \
95  | sudo tee /etc/apt/sources.list.d/oneAPI.list
96sudo apt update
97sudo apt install intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mkl-devel ninja-build cmake git
98```
99
100Build the engine through the top-level CMake option or by configuring the `sycl/` project directly:
101
102```sh
103source /opt/intel/oneapi/setvars.sh
104cmake -S . -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DSTRATA_ENABLE_SYCL=ON
105#   or: cmake -S sycl -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx
106cmake --build build-sycl --target strata
107```
108
109| Option | Effect |
110| --- | --- |
111| `-DSTRATA_SYCL_AOT=bmg-g31` | Compile ahead of time for Arc Pro B70. Needs `ocloc` (Intel's `intel-ocloc` package). Without it the first start JIT-compiles every kernel (about 47 s). |
112| `-DSTRATA_SYCL_AOT=bmg-g21` | The same for B580, B570 and Pro B60 |
113| `-DSTRATA_SYCL_PARITY=OFF` | Skip the kernel tests (on by default). Run them with `ctest --test-dir build-sycl` on the card. |
114
115`setup_intel.py` looks for `build-sycl-aot/strata` or `build-sycl/strata` in the checkout. With the top-level option the
116engine is at `build-sycl/sycl/strata`, so use `-S sycl` or set `STRATA_SYCL_BIN`.
117
118## Setup and running
119
120```sh
121./setup.sh --backend sycl [setup's usual options, e.g. --model IQ2_XS --context 32768]
122```
123
124Setup continues with `sycl/setup_intel.py`, which finds the Arc in sysfs, uses the SYCL engine you built, and writes the
125config and `run-<model>.sh`. On a card under 12 GB or an `i915` card (the A-series) it writes the small-card config
126([INTEL.md](INTEL.md#arc-a750-and-the-other-alchemist-cards)). It downloads and packs the model the usual way. Windows has no
127path: `setup --backend sycl` on Windows stops and points here.
128
129Things that matter on an Arc (details in [INTEL.md](INTEL.md)):
130
131- **Do not ask for more VRAM than the card has.** On the `xe` driver an allocation past VRAM can push buffers into RAM until
132  the machine runs out of memory and stalls. Leave about 1.5 GB free.
133- `SYCL_CACHE_PERSISTENT=0`: the persistent JIT cache crashed on Xe2 during the first compile.
134- Two cards: `ONEAPI_DEVICE_SELECTOR=level_zero:*` (the image pins `level_zero:0`; `strata-sycl.sh` passes the variable
135  through) and `--layer-split`.
136- `--layer-split auto` on two equal cards takes the split that leaves the fullest card the most VRAM to spare, within 0.2% of
137  the best predicted time (`STRATA_SPLIT_HEADROOM_TOL`). `STRATA_SPLIT_HEADROOM=0` turns that off. A full card under `xe` moves
138  buffers to system memory instead of failing. The startup line names both splits when the choice moves.
139- **Two Arc B-series cards decode faster by default.** With exactly two B-series cards (B50, B60, B65, B70, B570, B580) in a layer
140  split, the first card starts the next window while the second still checks this one (`--pipeline-windows 2`), and setup writes
141  `--spec 2` for the pair. On 2x Arc Pro B65 this decodes 17% to 23% faster than the old serial `--spec 4` setup, 5 pairs out of 5:
142  chat 71-74 tok/s against 60-63, JSON 80-83 against 67-68, code 72-78 against 59-65, plain text 67-68 against 56-57. The answers are
143  those of a serial `--spec 2` run (100 of 100 agent requests); a serial `--spec 4` run differs in a rare near-tie (3 of 100).
144  One card, an A-series card, a mixed pair and three or more cards run as before. `--pipeline-windows 0` turns it off, and a
145  `--spec` of your own, put in the config's `user_args`, is kept.
146- **Arc Pro B60:** PCI id `8086:e211` (`lspci -nn`), `sycl-ls` prints `Intel(R) Arc(TM) Pro B60 Graphics 20.1.0`, so
147  `-DSTRATA_SYCL_AOT=bmg-g21` is the right target. `setup_intel.py` knows both B60 ids, `e211` and `e221`. On a `--layer-split`
148  the startup line "N experts are neither in VRAM nor mirrored" counts the other card's layers; read the following
149  `100% of the experts resident` lines. Set `STRATA_MIRROR_MIB=0` there, or the pinned mirror is allocated and not used.
150- **`setvars.sh` and `set -u`:** `source /opt/intel/oneapi/setvars.sh` in a shell with `set -u` stops at
151  `OCL_ICD_FILENAMES: unbound variable` (oneAPI 2026.1.1). Source it before `set -u`.
152- **Without Docker:** `sycl/serve/strata-sycl.sh` needs Docker. Natively, `source setvars.sh`, export `SYCL_CACHE_PERSISTENT=0`,
153  `ZES_ENABLE_SYSMAN=1` and `STRATA_VERIFY_DEVICE_PLAN=1`, then run `build-sycl-aot/strata` or `sycl/serve/server_intel.py`
154  with an `exe` that does this. A normal user is not in the `render` group on Ubuntu, and then `sycl-ls` shows only the CPU.
155- `STRATA_VERIFY_NO_HOST=1` (set by `strata-sycl.sh` unless the config's `"env"` says otherwise) is needed on `xe` cards when part
156  of the experts is not in VRAM, and is left off on the `i915` A-series ([INTEL.md](INTEL.md)). The config's `"env"` block and
157  any `STRATA_*`, `ONEAPI_*`, `UR_*`, `IGC_*`, `SYCL_*` or `ZES_*` variable of the server's environment reach the engine
158  through `strata-sycl.sh`.
159
160## Tested cards
161
162> **Measured on:** the hardware in each row, Linux. Versions are the engine version of that report, not the current release.
163
164| Who | Hardware | Result | Reported in |
165| --- | --- | --- | --- |
166| Port author | Arc Pro B70 32 GB, Ubuntu 24.04, 0.1.31-sycl | Coder IQ1_M: 70-78 tok/s decode, about 790 tok/s prompt; IQ2_XS: 51-64 tok/s; 256K context | #423, [INTEL.md](INTEL.md) |
167| Community | 2x Arc Pro B70, `--layer-split` | Flash-Next IQ3_XXS 66 tok/s decode, 394 tok/s prompt | #423 |
168| Community | Arc Pro B50 16 GB | Coder IQ1_M about 23 tok/s, IQ2_XS about 25-27 tok/s, up to 128K | #423 |
169| Community | Arc B580 12 GB, WSL2 | IQ2_XS about 21 tok/s, Coder about 15 tok/s; device loss also seen | #423 |
170| Community | 2x Arc Pro B60 24 GB, `--layer-split`, Ryzen 5 5600, 64 GB, PCIe 3.0 x8 per card | 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 | [report](../bench/results/2026-10-04-community-2x-arc-pro-b60/README.md) |
171| 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 | same |
172| Maintainers | Arc Pro B70 32 GB (xe), 0.1.40.2 and later | Flash-Next IQ3_S 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 | [INTEL.md](INTEL.md#arc-pro-b70-with-a-model-that-does-not-fit-flash-next-iq3_s) |
173| Maintainers | Arc A750 8 GB (i915) | Flash-Next IQ3_XXS about 10-19 tok/s decode | [INTEL.md](INTEL.md#arc-a750-and-the-other-alchemist-cards) |
174| Maintainers | 2x Arc Pro B65 32 GB (xe), 0.2.8 | Flash-Next IQ3_S, every expert in VRAM, the JIT package build: decode 71-83 tok/s (chat, JSON, code), prompts 1,261 / 1,511 / 1,628 tok/s at 4K / 8K / 16K | the bullet above |
175
176Two cards on `xe` (2x Arc Pro B70, IQ3_S, 0.1.44): `--layer-split auto` picked a split at about 11 tok/s where
177`--layer-split 30` ran about 54. The auto choice now prefers the split with the most VRAM headroom (above).
178
179**Not tested by anyone:** Windows (no native build path), Arc on WSL2 with the current engine, integrated Arc GPUs (the B390 /
180Panther Lake in #515; shared-memory planning does not exist), and pictures on a Battlemage card with a GPU reader. Pictures work
181on the A750 (on by default, read on the CPU). See [INTEL.md](INTEL.md#pictures-on-an-arc).
182
183## Windows
184
185There is no Windows path. `setup --backend sycl` on Windows stops and points here. oneAPI exists for Windows, but
186`sycl/CMakeLists.txt` uses GCC-style flags (`-mavx512f`, `-fp-model=precise`, `-qmkl`) and the runner is a bash/Docker script.
187Nobody has tried a native build. WSL2 with an Arc was used by one tester (the B580 row above), but setup cannot detect the card
188there, because it reads `/sys/class/drm`, which WSL2 does not have.
189
190## Reporting a problem
191
192Open an issue with the card, the driver version, the `sycl-ls` output, the oneAPI version, the model and flags, and the engine's
193stderr. Results from real cards are what move more cards from tested to validated.
194
195## History / older measurements
196
197The first port (0.1.39) compiled with 0 errors on Ubuntu 24.04 (WSL2) with oneAPI DPC++ 2026.1.1 and oneMKL 2026.1: the
198`strata` engine plus 157 targets, as SPIR-V (JIT). Kernel parity tests on a CPU (`ONEAPI_DEVICE_SELECTOR=opencl:cpu`, Ryzen 5
1997600) passed 14 of 25, the same set as the 0.1.38 port; the failures were tight float tolerances, missing model fixtures and two
200CPU timeouts. That was a compile-and-compute check, not a test of an Arc. The CUDA engine's greedy output stayed byte-identical.
201
202The two B60 rows ran commit `6f32ec0` plus two small `sycl/` fixes, AOT `bmg-g21`, Ubuntu 24.04, `xe`, Level Zero V2, NEO
20326.09.37435.12 and oneAPI 2026.1.1, without Docker. No one ran an unpatched 0.1.39 port on an Arc; the other rows were measured on
204earlier versions.