Arc LLM Cookbook: recipes, validator, site, demo content
ci / check (push) Successful in 32s

Recipes for running the bench-standard models fastest on Intel Arc GPUs,
each backed by a bench.sh result folder in results/. tools/cookbook.py
validates recipes against their runs and generates the number tables
and site/index.html. All results are synthetic DEMO data so far, made by
tools/demo/make_demo.py; nothing has been measured yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-29 15:34:00 +01:00
commit 4673f0afb6
151 files changed
+87304

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
# Intel Arc GPUs
The cookbook covers Intel Arc only. The list is in [`cookbook.toml`](../cookbook.toml);
a recipe for a card that isn't listed fails validation, so add the card there first.
| GPU | VRAM | memory bandwidth (spec) | architecture | standard models that fit |
|---|---|---|---|---|
| Arc Pro B65 | 32 GB | 608 GB/s | Xe2 (Battlemage) | Qwen3.5-9B, Qwen3.8-27B |
| Arc Pro B60 | 24 GB | 456 GB/s | Xe2 (Battlemage) | Qwen3.5-9B, Qwen3.8-27B (short context) |
| Arc Pro B50 | 16 GB | 224 GB/s | Xe2 (Battlemage) | Qwen3.5-9B |
| Arc B580 | 12 GB | 456 GB/s | Xe2 (Battlemage) | Qwen3.5-9B |
| Arc B570 | 10 GB | 380 GB/s | Xe2 (Battlemage) | Qwen3.5-9B (short context) |
| Arc A770 | 16 GB | 560 GB/s | Xe-HPG (Alchemist) | Qwen3.5-9B |
## What decides the speed
- **Decode at batch 1 is bound by memory bandwidth.** Every token reads all weights
once, so decode t/s × weight size ≈ the bandwidth reached. bench.sh measures the
real bandwidth and reports the share decode reaches. With speculative decoding the
share can pass 100%, because one pass over the weights yields several tokens.
- **Prefill is bound by compute** and by the power limit: a lower limit lowers the
clock in long prefills. Record the limit you ran at; bench.sh reads it.
- **PCIe and ReBAR** matter for loading and for the B580/B570's x8 link. Without
ReBAR, Arc is much slower. Check it as in [host setup](host-setup.md).
Spec figures are the manufacturer's. A recipe's numbers always come from the
measured run.
+55
View File
@@ -0,0 +1,55 @@
# Host setup for Intel Arc
What every recipe assumes on the host. The engines (llama.cpp SYCL, vLLM XPU) bring
their own oneAPI and Level Zero runtimes in their containers. The host needs the
kernel driver, device access and Docker.
## 1. Kernel driver
Battlemage (B-series) needs the `xe` driver, which ships with current kernels. Check
that the card is there:
```sh
ls /dev/dri/ # card* and renderD* entries
lspci -k | grep -A3 -i 'vga\|display' | grep -i 'driver in use' # xe (or i915 on Alchemist)
```
## 2. Device access
Your user needs the `render` group, or containers started by your user can't open
the GPU:
```sh
sudo usermod -aG render,video "$USER" # log out and in again
```
Every recipe passes `--device /dev/dri` to Docker.
## 3. Resizable BAR
ReBAR must be on (BIOS: "Above 4G decoding" and "Resizable BAR"). Without it, Arc
loses a lot of speed:
```sh
sudo lspci -vv -s "$(lspci | awk '/VGA.*Intel/ {print $1; exit}')" | grep -i -A2 'resizable bar'
```
bench.sh records ReBAR in the `pcie` note of every run.
## 4. Power limit and telemetry
`xpu-smi` reads power and energy during a benchmark, and sets the power limit:
```sh
xpu-smi discovery
xpu-smi stats -d 0 # power, clock, memory
sudo xpu-smi config -d 0 --powerlimit 200
```
The power limit changes prefill and concurrency numbers. bench.sh records it. If you
change it, say so in the result (`--special-notes`).
## 5. Models
The recipes mount `/models` into the container. Download the standard files there,
as each recipe shows, and check the hash: bench.sh rejects any other file.