- Level Zero V2 is chosen by a pre-start check for an Intel Battlemage GPU (PCI device 0xE2xx: sysfs on Linux, DXGI on Windows); other Intel GPUs keep V1 as before. - --turbo / STRATA_INK_B70_TURBO turn the Arc fast set, the Q8_ROW trunk compaction and the tail skip on for Battlemage only; other Arc cards keep the 0.2.25 behaviour (no effect, answers exact). - 33 new STRATA_INK_* settings in terminal/data/settings-register.json (status and note each), docs/SETTINGS.md regenerated. - --turbo help line and docs/INKLING_TURBO.md say that Battlemage has it.
22 KiB
Intel Arc on Linux and Windows
Strata runs on Intel Arc cards on Linux (and natively on Windows for strata-inkling) through its SYCL (Intel oneAPI) backends. 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/ and engine/src/inkling2/sycl/. Intel Arc is an
official platform since 0.1.40.2. The maintainers test on an Arc Pro B70 (32 GB), two Arc Pro B65 cards, and an Arc A750 (8 GB);
results from other cards are community reports. The Mac build has no Intel engine; see Windows (strata-inkling) for native Windows builds.
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), 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
--plansays the Intel cards exist. To use the Intel cards add--backend intelonce: the choice is remembered (in the settings file) for the next launch,strata updateand the app's engine check.strata launch --backend autogoes 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/rtfolder in the data folder is used. strata doctor --livechecks the driver, the render group and the card, andstrata update --checkshows 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
tools/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
xeori915kernel 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", andstrata doctorwarns about it before the start. Building the model folder again withstrata setup(orterminal/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),cmake3.24+,ninja,git, Python 3. - For
./setup.sh --backend sycl: Docker and the GPU driver, nothing else from the list above.engine/sycl/setup_intel.pybuilds and runs the engine in thestrata-sycl-devimage fromengine/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, thensudo usermod -aG docker,render $USERand 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'sSTRATA_VERIFY_NO_HOST=1there is no SSD expert tier onxe: 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 engine/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 engine/sycl/tools/build.sh strata"
--pull matters: INTEL.md says why. Then run ./setup.sh --backend sycl. Do not run
python3 engine/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 engine -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DSTRATA_ENABLE_SYCL=ON
# or: cmake -S engine/sycl -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx
cmake --build build-sycl --target strata
| Option | Effect |
|---|---|
-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). |
-DSTRATA_SYCL_AOT=bmg-g21 |
The same for B580, B570 and Pro B60 |
-DSTRATA_SYCL_PARITY=OFF |
Skip 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 engine/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
xedriver 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 pinslevel_zero:0;strata-sycl.shpasses the variable through) and--layer-split. --layer-split autoon 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=0turns that off. A full card underxemoves 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 2for the pair. On 2x Arc Pro B65 this decodes 17% to 23% faster than the old serial--spec 4setup, 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 2run (100 of 100 agent requests); a serial--spec 4run 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 0turns it off, and a--specof your own, put in the config'suser_args, is kept. - Arc Pro B60: PCI id
8086:e211(lspci -nn),sycl-lsprintsIntel(R) Arc(TM) Pro B60 Graphics 20.1.0, so-DSTRATA_SYCL_AOT=bmg-g21is the right target.setup_intel.pyknows both B60 ids,e211ande221. On a--layer-splitthe startup line "N experts are neither in VRAM nor mirrored" counts the other card's layers; read the following100% of the experts residentlines. SetSTRATA_MIRROR_MIB=0there, or the pinned mirror is allocated and not used. setvars.shandset -u:source /opt/intel/oneapi/setvars.shin a shell withset -ustops atOCL_ICD_FILENAMES: unbound variable(oneAPI 2026.1.1). Source it beforeset -u.- Without Docker:
engine/sycl/serve/strata-sycl.shneeds Docker. Natively,source setvars.sh, exportSYCL_CACHE_PERSISTENT=0,ZES_ENABLE_SYSMAN=1andSTRATA_VERIFY_DEVICE_PLAN=1, then runbuild-sycl-aot/strataorengine/sycl/serve/server_intel.pywith anexethat does this. A normal user is not in therendergroup on Ubuntu, and thensycl-lsshows only the CPU. STRATA_VERIFY_NO_HOST=1(set bystrata-sycl.shunless the config's"env"says otherwise) is needed onxecards when part of the experts is not in VRAM, and is left off on thei915A-series (INTEL.md). The config's"env"block and anySTRATA_*,ONEAPI_*,UR_*,IGC_*,SYCL_*orZES_*variable of the server's environment reach the engine throughstrata-sycl.sh.
Tested cards
Measured on: the hardware in each row, Linux. Versions are the engine version of that report, not the current release.
| Who | Hardware | Result | Reported in |
|---|---|---|---|
| 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 |
| Community | 2x Arc Pro B70, --layer-split |
Flash-Next IQ3_XXS 66 tok/s decode, 394 tok/s prompt | #423 |
| Community | Arc Pro B50 16 GB | Coder IQ1_M about 23 tok/s, IQ2_XS about 25-27 tok/s, up to 128K | #423 |
| Community | Arc B580 12 GB, WSL2 | IQ2_XS about 21 tok/s, Coder about 15 tok/s; device loss also seen | #423 |
| 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 |
| 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 |
| 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 |
| Maintainers | Arc A750 8 GB (i915) | Flash-Next IQ3_XXS about 10-19 tok/s decode | INTEL.md |
| 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 |
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: engine/sycl (strata Qwen engine) natively on Windows, Arc on WSL2 with the current engine, integrated Intel GPUs other than
the Arc B390 (see Integrated Arc GPUs), 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.
Integrated Arc GPUs: the B390 (Panther Lake)
A GPU built into the processor, such as Panther Lake's Arc B390, has no memory of its own: what the engine calls VRAM is the PC's RAM. On Linux the engine plans such a GPU as one pool of memory with the system (#6448). Discrete cards are not affected.
- The cache is sized from the RAM. The room is
MemAvailable, plus the pages the GPU driver keeps pooled from an earlier load (GPUReclaimin/proc/meminfo; a kernel that reports 0 there, as 7.0 did in #2412, adds nothing), less a headroom left for the rest of the system (STRATA_UMA_HEADROOM_GIB, 6 GiB unless set). The start prints these figures in one line. Level Zero's own free figure is not used on such a GPU. - No second copy in the same RAM. With
--expert-cache autothere is no pinned mirror: the experts the cache cannot hold are read from the file by the host (or, withSTRATA_VERIFY_NO_HOST, refused, below). The prompt loan's mirror is off (STRATA_LEND_MIRROR=Nturns it on, withSTRATA_MIRROR_MIBfor its room when the cache is automatic). With a cache size you give, the mirror gets the rest of the pool less--vram-reserve-mib. KV streaming is not turned on by itself. - A model that does not fit is refused at once. With
--stream-expertsandSTRATA_VERIFY_NO_HOST, an automatic cache that cannot hold every expert ends the start as soon as it is sized, with how many experts and GiB are short, instead of after the fill. STRATA_UMA=0plans the GPU as a card, as before;STRATA_UMA=1plans any GPU as one that shares the RAM.
./setup.sh --backend sycl still stops at built-in graphics, so such a GPU runs from a run config written by hand.
Measured on: Arc Pro B390 (Panther Lake, 8086:b086, xe), Core Ultra X9 388H, 62 GiB LPDDR5X shared, Linux 7.2, compute runtime 26.35, Swift 1.5 IQ3_XXS with
--expert-cache auto --stream-expertsat a 128K context. At each of three starts all 24,576 experts were in one 39.97 GiB cache with no mirror, and at least 6.2 GiB of RAM stayed available. Decode: 26.3 tok/s on a code prompt and 20.4 on the answer to a 6K prompt (19.1 and 13.3 before this planning, with a cache of 8,400-13,400 slots and a 19-25 GiB mirror). A 6K prompt is read at about 335 tok/s, against about 394 before.
Windows
strata-inkling (engine/src/inkling2) builds and runs natively on Windows 11 with Visual Studio 2022 Build Tools and the Intel oneAPI DPC++ compiler (icx 2026.1 or newer, plus ocloc for Battlemage AOT targets). No oneMKL installation is needed (-DSTRATA_SYCL_NO_ONEMKL=ON): all dense, MoE (.strata SQ-20 and GGUF IQ3_S / GSQ-RCO / UD-Q4_K_XL), FlashPrefill, Split-K FlashDecoding, and VNNI joint_matrix XMX kernels are native SG16 / SG32 SYCL.
From a Developer Command Prompt with oneAPI setvars.bat initialized:
cmake -S engine\src\inkling2 -B build-sycl-win -G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx ^
-DSTRATA_ENABLE_SYCL=ON -DSTRATA_SYCL_NO_ONEMKL=ON ^
"-DSTRATA_SYCL_TARGETS=spir64,intel_gpu_bmg_g21,intel_gpu_bmg_g31"
cmake --build build-sycl-win --target strata-inkling
Running on Windows:
- Always set
ONEAPI_DEVICE_SELECTOR=level_zero:gpuso SYCL selects the discrete Arc GPU over Level Zero. - In zero-oneMKL builds on a machine with an Arc Battlemage GPU (checked before the runtime starts),
UR_LOADER_USE_LEVEL_ZERO_V2=1(immediate command lists) and SYCLcommand_graphdecode replay are enabled automatically unless overridden. - For DFlash 2 speculative decoding, set
STRATA_INK_DRAFTER=dflash2and pass--draft dflash2(or--draft on). - Default mode is 100% lossless/exact (
chunk=4096for single-slot<=128K, register-directBK=64XMX FlashAttention-2,BN=128contiguous-h_actXMX MoE including 2-termBK=16exact GGUF MoE, 2-term BF16 XMX dense/controller GEMMs, 16B-alignedSG32GGUF MoE decode/verify, 2,048-entry SWA ring, and 0-ULP speculative tree + linear verify parity); pass--turbo(STRATA_INK_INTELARC=1+STRATA_INK_TAIL_SKIP=turbo) to opt intoQ8_ROWtrunk/unembed compaction, load-timeMX8 -> SF4and GGUFQ8_0 -> SF4Coda transcoding, Hybrid KV (40lossless FP16 SWA visits +8FP8_E4M3global visits), Quest Block-TopK (128prefill /96decode blocks), VNNIjoint_matrixINT8/FP16 XMX prefill & decode, and router tail-skip. - Every prefill and long-context attention launch is sub-chunked well below the ~2 s Windows GPU TDR limit so long contexts run without device resets or host spill.
- Measured on one Arc Pro B70 32 GB (Windows 11,
--max-context 131072,--draft dflash2, all 3,072 experts in VRAM, zero spill across 4K–128K):Inkling-2-Mini SQ-20 v2(.strata):- Lossless Default (
dflash2):1,812.5 tok/sprompt /178.9 tok/sgen (96.7non-repeating prose) at 4K;1,582.0/97.1 tok/s(151.8prose) at 32K;1,382.2/121.5 tok/sat 64K;1,097.1/97.1 tok/s(123.9prose) at 128K (0-ULP--spec-check 64,--ring-check 128ok,25.91 GiBpeak VRAM,0.06 GiBshared). - Opt-in
--turbo(dflash2):2,549.6 tok/sprompt /211.7 tok/sgen (92.7prose) at 4K;2,333.0/199.1 tok/s(136.8synthetic) at 32K;2,313.7/163.8 tok/sat 64K;2,293.6(2,254.6prose) /165.7 tok/sat 128K (21.24 GiBpeak VRAM,9.96 GiBfree headroom,0.07 GiBshared).
- Lossless Default (
Inkling-2-Mini GSQ-RCO IQ3_S(.gguf,10.64 GiB):- Lossless Default (
dflash2):1,382.9 tok/sprompt (1,682.91-term) /157.6–158.8 tok/sgen at 4K;1,243.0(1,483.51-term) /134.3 tok/sprose (83.7–87.3synthetic) at 32K;1,114.6(1,303.61-term) /138.8 tok/sat 64K;837.5(957.01-term) /110.6 tok/sprose (84.6–85.9synthetic) at 128K (0-ULP--spec-check 64,--ring-check 128ok,6/7prompts bit-identical to scalar FP32 includinglong4k,19.84 GiBpeak VRAM,0.07 GiBshared). - Opt-in
--turbo(dflash2):2,273.5 tok/sprompt /175.1 tok/sgen at 4K;2,105.5–2,109.1/159.8 tok/sprose (103.5synthetic) at 32K;2,090.3/178.9 tok/sat 64K;1,823.9(1,804.7prose) /158.2 tok/sprose (133.3synthetic) at 128K (16.88 GiBpeak VRAM,14.3 GiBfree headroom,0.07 GiBshared).
- Lossless Default (
Inkling-2-Mini UD-Q4_K_XL(.gguf,16.42 GiB):- Lossless Default (
dflash2):1,780.9–1,817.6 tok/sprompt /174.4–175.8 tok/sgen at 4K;1,546.4–1,588.9/151.0 tok/sprose (96.1synthetic) at 32K;1,383.9/149.1 tok/sat 64K;994.4–1,006.4/122.9 tok/sprose (86.2–86.4synthetic) at 128K (0-ULP--spec-check 64,--ring-check 128ok,25.68 GiBpeak VRAM,0.07 GiBshared). - Opt-in
--turbo(dflash2):2,536.7 tok/sprompt /198.9 tok/sgen at 4K;2,335.4(2,306.0prose) /188.1 tok/sprose (118.1synthetic) at 32K;2,315.9/202.2 tok/sat 64K;2,035.7(1,977.6prose) /186.2 tok/sprose (92.5synthetic) at 128K (20.86 GiBpeak VRAM,10.3 GiBfree headroom,0.08 GiBshared).
- Lossless Default (
Note: setup --backend sycl and the older engine/sycl (strata) target still only support Linux. WSL2 with an Arc was used by one tester (the B580 row above), though setup cannot detect /sys/class/drm inside WSL2.
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.