Initial skeleton for Intel Arc local AI home

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-11-03 20:58:01 +01:00
commit 75691af2bf
10 files changed
+342

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
# Intel Arc AI Home
A home for everything about running **local LLMs and image models on Intel Arc GPUs**:
which runtimes to use, where the cookbooks live, how to set up drivers, and how to tune
the cards (power, clocks, memory).
> Status: early skeleton. Pages contain starting points and notes — verify versions and
> links before relying on them, this ecosystem moves fast.
## Contents
| Page | What's in it |
| --- | --- |
| [Hardware](docs/hardware.md) | Arc cards (Alchemist, Battlemage, Arc Pro), VRAM, what fits where |
| [Setup](docs/setup.md) | Drivers, oneAPI, Level Zero, ReBAR, Linux vs. Windows |
| [Runtimes](docs/runtimes.md) | llama.cpp, Ollama, OpenVINO, vLLM, PyTorch XPU, … compared |
| [Image models](docs/image-models.md) | ComfyUI, SD.Next, diffusers on XPU |
| [Optimization](docs/optimization.md) | Power limits, idle power, clocks, quantization, memory |
| [Cookbooks](docs/cookbooks.md) | Official and community recipes / notebooks |
| [Resources](docs/resources.md) | Docs, repos, forums, communities |
| [Benchmarks](docs/benchmarks.md) | Own measurements, template for adding results |
| [Troubleshooting](docs/troubleshooting.md) | Common errors and fixes |
## Conventions
- One topic per file under `docs/`.
- Note **date + versions** (driver, runtime, kernel) when writing down anything that can go stale.
- Benchmarks always include card, power limit, model, quant, context length, and runtime version.
+19
View File
@@ -0,0 +1,19 @@
# Benchmarks
[← Home](../README.md)
Own measurements. Always fill in every column so results stay comparable.
## LLM
| Date | Card | Power limit | Driver | Runtime + version | Model | Quant | Context | PP t/s | TG t/s | Notes |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| | | | | | | | | | | |
PP = prompt processing, TG = token generation. For llama.cpp use `llama-bench`.
## Image
| Date | Card | Power limit | Tool + version | Model | Resolution | Steps | s/image | it/s | Notes |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| | | | | | | | | | |
+25
View File
@@ -0,0 +1,25 @@
# Cookbooks
[← Home](../README.md)
Collections of ready-made recipes, notebooks and examples.
## Official (Intel)
| Name | Link | Content |
| --- | --- | --- |
| OpenVINO Notebooks | https://github.com/openvinotoolkit/openvino_notebooks | Hundreds of Jupyter notebooks: LLMs, diffusion, speech, vision |
| OpenVINO GenAI samples | https://github.com/openvinotoolkit/openvino.genai | LLM / image generation samples (C++ / Python) |
| IPEX-LLM quickstarts | https://github.com/intel/ipex-llm | Guides for Ollama, llama.cpp, vLLM, WebUI on Arc |
| AI PC Notebooks | https://github.com/intel/AI-PC-Samples | Samples for Intel AI PCs (iGPU/NPU) |
| LLM Scaler | https://github.com/intel/llm-scaler | vLLM-based serving for Arc Pro |
TODO: verify links and maintenance status.
## Community
TODO: blog posts, gists, Reddit guides worth keeping.
## Own recipes
TODO: add our own tested step-by-step guides here (or as separate files under `docs/recipes/`).
+39
View File
@@ -0,0 +1,39 @@
# Hardware
[← Home](../README.md)
## Card overview
| Card | Generation | VRAM | Notes |
| --- | --- | --- | --- |
| Arc A380 | Alchemist (Xe-HPG) | 6 GB | Entry level, small models only |
| Arc A580 | Alchemist | 8 GB | |
| Arc A750 | Alchemist | 8 GB | |
| Arc A770 | Alchemist | 8 / 16 GB | 16 GB version is the classic budget LLM card |
| Arc B570 | Battlemage (Xe2) | 10 GB | |
| Arc B580 | Battlemage | 12 GB | |
| Arc Pro B50 | Battlemage | 16 GB | Low power, workstation |
| Arc Pro B60 | Battlemage | 24 GB | Multi-GPU setups, Intel's LLM Scaler stack |
| Integrated Arc (Meteor/Lunar/Arrow Lake) | Xe-LPG / Xe2 | shared RAM | Uses system memory, good for small models |
TODO: verify specs, add memory bandwidth, TDP, XMX units.
## What fits in VRAM? (rule of thumb)
Weights ≈ `parameters × bits_per_weight / 8`, plus KV cache and runtime overhead (~1–2 GB).
| VRAM | LLM (Q4) | Image models |
| --- | --- | --- |
| 8 GB | ~7–8B | SD 1.5, SDXL (tight) |
| 12 GB | ~12–14B | SDXL, Flux (quantized) |
| 16 GB | ~14–20B | SDXL, Flux (FP8/GGUF) |
| 24 GB | ~30B | Flux, larger video models (quantized) |
## Multi-GPU
TODO: tensor/pipeline parallel options, PCIe lane considerations, mixed cards.
## Requirements
- **Resizable BAR (ReBAR)** must be enabled — performance drops heavily without it.
- See [Setup](setup.md).
+31
View File
@@ -0,0 +1,31 @@
# Image models
[← Home](../README.md)
## Tools
| Tool | Backend | Notes |
| --- | --- | --- |
| ComfyUI | PyTorch XPU | Node-based, broadest model support |
| SD.Next | PyTorch XPU / OpenVINO | Good Intel support historically |
| Intel AI Playground | IPEX / OpenVINO | Intel's Windows app for image + chat |
| diffusers | PyTorch XPU / OpenVINO (optimum-intel) | Scripting |
## Models
| Model | Min. VRAM (approx.) | Notes |
| --- | --- | --- |
| SD 1.5 | 4–6 GB | |
| SDXL | 8–12 GB | |
| Flux.1 (dev/schnell) | 12–16 GB quantized | GGUF / FP8 variants |
TODO: video models, upscalers, LoRA training on Arc.
## ComfyUI on Arc
```bash
# install PyTorch with XPU support (check pytorch.org for current index URL)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu
```
TODO: launch flags, attention options, known issues.
+56
View File
@@ -0,0 +1,56 @@
# Optimization
[← Home](../README.md)
## Power tweaking
LLM token generation is mostly **memory-bandwidth bound**, so lowering the power limit often costs
little speed while saving a lot of watts and heat. Prompt processing and image generation are more
compute bound and react more to power limits.
### Linux
Power limits are exposed via hwmon (values in microwatts):
```bash
# find the card's hwmon
ls /sys/class/drm/card*/device/hwmon/
cat /sys/class/drm/card0/device/hwmon/hwmon*/power1_max # current limit
echo 150000000 | sudo tee /sys/class/drm/card0/device/hwmon/hwmon*/power1_max # 150 W
```
- Attribute names differ between `i915` and `xe` drivers — TODO: document both.
- `xpu-smi` can also set limits on supported cards.
### Windows
- Intel Graphics Software / Arc Control: power limit slider, voltage, frequency offset.
### Measurements
TODO: tokens/s vs. power limit curve per card (see [Benchmarks](benchmarks.md)).
## Idle power
Arc cards are known for high idle draw. Mitigations:
- Enable **PCIe ASPM** (L1) in BIOS.
- Linux: `pcie_aspm=force` / `pcie_aspm.policy=powersupersave` kernel parameter (test carefully).
- Windows: Power plan → PCI Express → Link State Power Management → Maximum power savings.
TODO: measured idle values before/after.
## Clocks & fans
TODO: frequency limits (`/sys/class/drm/card*/gt_max_freq_mhz` on i915), fan curves.
## Memory / model side
- Pick a quantization that fits fully in VRAM — offloading to CPU kills performance.
- KV-cache quantization (e.g. llama.cpp `--cache-type-k q8_0`) to fit longer contexts.
- Flash attention where supported.
- Reduce context length to what you need.
## Runtime-specific tuning
TODO: llama.cpp SYCL env vars, OpenVINO hints (`PERFORMANCE_HINT`, `KV_CACHE_PRECISION`), vLLM settings.
+30
View File
@@ -0,0 +1,30 @@
# Resources
[← Home](../README.md)
## Documentation
- Intel GPU driver docs (Linux): https://dgpu-docs.intel.com
- oneAPI Base Toolkit: https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit.html
- PyTorch on Intel GPU: https://docs.pytorch.org/docs/stable/notes/get_start_xpu.html
- OpenVINO docs: https://docs.openvino.ai
- llama.cpp SYCL backend: https://github.com/ggml-org/llama.cpp/blob/master/docs/backend/SYCL.md
## Repositories
- https://github.com/intel/compute-runtime — Level Zero / OpenCL runtime
- https://github.com/intel/xpumanager — `xpu-smi`
- https://github.com/intel/AI-Playground — Intel AI Playground
## Communities
- r/IntelArc, r/LocalLLaMA
- Intel Insiders / Intel community forums
- TODO: Discord servers
## Hugging Face
- https://huggingface.co/OpenVINO — pre-converted OpenVINO models
- https://huggingface.co/Intel
TODO: verify all links.
+52
View File
@@ -0,0 +1,52 @@
# Runtimes
[← Home](../README.md)
Overview of inference runtimes that work on Intel Arc. Status and versions change often —
note the date when updating.
## At a glance
| Runtime | Backend on Arc | Good for | OS |
| --- | --- | --- | --- |
| llama.cpp | SYCL, Vulkan | GGUF models, single user, flexible | Linux, Windows |
| Ollama | via llama.cpp (Vulkan / Intel builds) | Easy model management | Linux, Windows |
| LM Studio | Vulkan (llama.cpp) | GUI, beginners | Windows, Linux |
| OpenVINO / OpenVINO GenAI | GPU plugin | Optimized Intel path, INT4/INT8 | Linux, Windows |
| OpenVINO Model Server (OVMS) | OpenVINO | OpenAI-compatible serving | Linux, Windows |
| vLLM (XPU) | PyTorch XPU | Multi-user serving, batching | Linux |
| LLM Scaler (Intel) | vLLM-based | Battlemage / Arc Pro B60 serving | Linux |
| PyTorch XPU (native) | Level Zero | Custom code, training, HF transformers | Linux, Windows |
| IPEX-LLM | PyTorch / llama.cpp | Was the go-to Intel stack; check maintenance status | Linux, Windows |
## llama.cpp
- **SYCL backend**: built with oneAPI, usually fastest on Arc for prompt processing.
- **Vulkan backend**: no oneAPI needed, easy, sometimes faster on token generation.
- Repo: https://github.com/ggml-org/llama.cpp — see `docs/backend/SYCL.md`.
TODO: build commands, recommended flags (`-ngl`, `-fa`, split mode), SYCL vs. Vulkan comparison.
## Ollama
TODO: which builds support Arc (Vulkan, Intel portable builds), env vars.
## OpenVINO
- Convert models with `optimum-intel` (`optimum-cli export openvino ...`) or use pre-converted models from the Hugging Face `OpenVINO` org.
- GenAI API for simple LLM pipelines, OVMS for serving.
TODO: example conversion + serving.
## vLLM on XPU
TODO: install path, docker images, supported models, multi-GPU.
## PyTorch XPU
- Upstream PyTorch has native `xpu` device support (`torch.xpu.is_available()`).
- Intel Extension for PyTorch (IPEX) features are being upstreamed — check whether you still need it.
## Which one should I use?
TODO: decision guide (casual chat → Ollama/LM Studio; max perf single user → llama.cpp SYCL or OpenVINO; serving → vLLM/OVMS).
+42
View File
@@ -0,0 +1,42 @@
# Setup
[← Home](../README.md)
## BIOS
- Enable **Above 4G Decoding** and **Resizable BAR**.
- Optional: enable PCIe ASPM for lower idle power (see [Optimization](optimization.md)).
## Linux
- Kernel driver: `i915` (Alchemist) or `xe` (Battlemage, and optionally Alchemist on newer kernels).
- User-space: Intel compute runtime (Level Zero + OpenCL), oneAPI Base Toolkit if building SYCL apps.
- Check the device is visible:
```bash
clinfo | grep "Device Name"
sycl-ls # from oneAPI
```
TODO: distro-specific steps (Ubuntu, Fedora, Arch), kernel version recommendations.
## Windows
- Install the latest Intel Arc graphics driver.
- Many runtimes ship portable builds (llama.cpp, Ollama portable, AI Playground).
TODO: WSL2 notes.
## Docker
- Pass the GPU with `--device /dev/dri`.
- Intel publishes containers for several runtimes (see [Runtimes](runtimes.md)).
## Monitoring tools
| Tool | Platform | Use |
| --- | --- | --- |
| `intel_gpu_top` | Linux | Engine usage, frequency, power |
| `xpu-smi` | Linux | Telemetry, power limits, data center + some client cards |
| `nvtop` | Linux | Overview incl. Intel GPUs |
| Intel Graphics Software / Arc Control | Windows | Telemetry, power slider |
+20
View File
@@ -0,0 +1,20 @@
# Troubleshooting
[← Home](../README.md)
Format: symptom → cause → fix.
## GPU not detected
- Check `sycl-ls` / `clinfo`. If empty: compute runtime missing or user not in `render` group (`sudo usermod -aG render $USER`).
## Very slow performance
- ReBAR disabled? Check BIOS / `lspci -vv` for "Resizable BAR".
- Model partially offloaded to CPU? Check runtime logs for layers on GPU.
## Out of memory
- Use a smaller quant, shorter context, or KV-cache quantization (see [Optimization](optimization.md)).
TODO: add errors as we hit them.