ci / check (push) Successful in 10s
Recipes, tried logs and result folders move under <gpu>/: recipes at <gpu>/<model>/<engine>-<profile>.md, tried logs at <gpu>/<model>/tried.md, runs at <gpu>/results/<run>/. build generates a README for every GPU in cookbook.toml and the GPU table in README.md. validate checks that a run sits in the folder of the GPU it ran on and warns about stray top-level folders. Format docs and host setup move to docs/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
56 lines
1.6 KiB
Markdown
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.
|