Files
cookbook/hardware/host-setup.md
T
ClaudeandClaude Opus 5.5 4673f0afb6
ci / check (push) Successful in 32s
Arc LLM Cookbook: recipes, validator, site, demo content
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>
2026-10-29 15:34:00 +01:00

56 lines
1.6 KiB
Markdown

# 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.