Compare commits

...
2 Commits
14 changed files with 88 additions and 52 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
* text=auto eol=lf
+9
View File
@@ -0,0 +1,9 @@
# OS
.DS_Store
Thumbs.db
# Editor
*.swp
*~
.vscode/
.idea/
+32
View File
@@ -0,0 +1,32 @@
# AGENTS.md — start (Intel Arc local-AI "home")
Knowledge base / hub for a local Intel Arc AI setup. This is the "front door"
that points at the sibling repos where the real work lives.
## Layout
- `README.md` — index of all docs + the house conventions.
- `docs/` — one file per topic: `setup`, `hardware`, `runtimes`,
`benchmarks`, `image-models`, `optimization`, `cookbooks`, `resources`,
`troubleshooting`.
## Conventions
- **Date + version** on any stale-prone fact (driver, runtime, model, GPU).
Facts rot; always say when it was true.
- Benchmark tables use the standard columns (see `docs/benchmarks.md`).
- `TODO:` markers flag known gaps — leave them until resolved.
- Title Case for document titles (e.g. "Image Models", not "Image models").
- Each `docs/*.md` starts with a `[← Home](../README.md)` backlink.
## Sibling repos (the real content lives here)
- Raw benchmark data + harness: https://git.linxweiler.xyz/miga/benchmarks
- GPU / ISA reference: https://git.linxweiler.xyz/miga/instructionsets
- Runnable recipes: https://git.linxweiler.xyz/miga/cookbook
- vLLM XPU model ports: https://git.linxweiler.xyz/miga/xpu-llm-ports
## Note
For current GPU, driver, and runtime information you may use the internet —
this is a fast-moving space and the docs here are point-in-time.
+21
View File
@@ -0,0 +1,21 @@
Copyright (c) 2026 Pascal Linxweiler
This work is licensed under the Creative Commons Attribution 4.0
International License (CC-BY-4.0).
You are free to:
Share — copy and redistribute the material in any medium or format.
Adapt — remix, transform, and build upon the material for any purpose,
even commercially.
Under the following term:
Attribution — you must give appropriate credit, provide a link to the
license, and indicate if changes were made. You may do so
in any reasonable manner, but not in a way that suggests
the licensor endorses you or your use.
No additional restrictions may be applied that legally restrict others from
doing anything the license permits.
To view a copy of the license, visit:
https://creativecommons.org/licenses/by/4.0/
+14 -4
View File
@@ -11,14 +11,22 @@ the cards (power, clocks, memory).
| Page | What's in it | | Page | What's in it |
| --- | --- | | --- | --- |
| [Optimization](docs/optimization.md) | Power limits, idle power, clocks, quantization, memory |
| [Runtimes](docs/runtimes.md) | llama.cpp, Ollama, OpenVINO, vLLM, PyTorch XPU, … compared |
Coming Soon
| Page | What's in it |
| --- | --- |
| [Benchmarks](docs/benchmarks.md) | Own measurements, template for adding results |
| [Cookbooks](docs/cookbooks.md) | Official and community recipes / notebooks |
| [Instructionsets](docs/cookbooks.md) | Instruction Sets |
| [Image models](docs/image-models.md) | ComfyUI, SD.Next, diffusers on XPU |
| [Hardware](docs/hardware.md) | Arc cards (Alchemist, Battlemage, Arc Pro), VRAM, what fits where | | [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 | | [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 | | [Cookbooks](docs/cookbooks.md) | Official and community recipes / notebooks |
| [Resources](docs/resources.md) | Docs, repos, forums, communities | | [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 | | [Troubleshooting](docs/troubleshooting.md) | Common errors and fixes |
## Conventions ## Conventions
@@ -26,3 +34,5 @@ the cards (power, clocks, memory).
- One topic per file under `docs/`. - One topic per file under `docs/`.
- Note **date + versions** (driver, runtime, kernel) when writing down anything that can go stale. - 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. - Benchmarks always include card, power limit, model, quant, context length, and runtime version.
## Helping Hands
@@ -4,6 +4,8 @@
Own measurements. Always fill in every column so results stay comparable. Own measurements. Always fill in every column so results stay comparable.
Raw results and the benchmarking harness live in the [benchmarks](https://git.linxweiler.xyz/miga/benchmarks) repo.
## LLM ## LLM
| Date | Card | Power limit | Driver | Runtime + version | Model | Quant | Context | PP t/s | TG t/s | Notes | | Date | Card | Power limit | Driver | Runtime + version | Model | Quant | Context | PP t/s | TG t/s | Notes |
File renamed without changes.
@@ -18,6 +18,8 @@
TODO: verify specs, add memory bandwidth, TDP, XMX units. TODO: verify specs, add memory bandwidth, TDP, XMX units.
Detailed per-GPU compute and ISA specs: [instructionsets](https://git.linxweiler.xyz/miga/instructionsets).
## What fits in VRAM? (rule of thumb) ## What fits in VRAM? (rule of thumb)
Weights ≈ `parameters × bits_per_weight / 8`, plus KV cache and runtime overhead (~1–2 GB). Weights ≈ `parameters × bits_per_weight / 8`, plus KV cache and runtime overhead (~1–2 GB).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -46
View File
@@ -2,55 +2,10 @@
[← Home](../README.md) [← 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 ## Idle power
Arc cards are known for high idle draw. Mitigations: Arc cards are known for high idle draw. Mitigations:
- Enable **PCIe ASPM** (L1) in BIOS. - Enable **PCIe ASPM** (L1) in BIOS.
- Linux: `pcie_aspm=force` / `pcie_aspm.policy=powersupersave` kernel parameter (test carefully). - 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.
+6 -2
View File
@@ -10,13 +10,17 @@ note the date when updating.
| Runtime | Backend on Arc | Good for | OS | | Runtime | Backend on Arc | Good for | OS |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| llama.cpp | SYCL, Vulkan | GGUF models, single user, flexible | Linux, Windows | | llama.cpp | SYCL, Vulkan | GGUF models, single user, flexible | Linux, Windows |
| vLLM (XPU) | PyTorch XPU | Multi-user serving, batching | Linux |
| LLM Scaler (Intel) | vLLM-based | Battlemage / Arc Pro B60 serving | Linux |
| Ollama | via llama.cpp (Vulkan / Intel builds) | Easy model management | Linux, Windows | | Ollama | via llama.cpp (Vulkan / Intel builds) | Easy model management | Linux, Windows |
| LM Studio | Vulkan (llama.cpp) | GUI, beginners | Windows, Linux | | LM Studio | Vulkan (llama.cpp) | GUI, beginners | Windows, Linux |
| OpenVINO / OpenVINO GenAI | GPU plugin | Optimized Intel path, INT4/INT8 | Linux, Windows | | OpenVINO / OpenVINO GenAI | GPU plugin | Optimized Intel path, INT4/INT8 | Linux, Windows |
| OpenVINO Model Server (OVMS) | OpenVINO | OpenAI-compatible serving | 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 | | PyTorch XPU (native) | Level Zero | Custom code, training, HF transformers | Linux, Windows |
### Deprecated
| Runtime | Backend on Arc | Good for | OS |
| --- | --- | --- | --- |
| IPEX-LLM | PyTorch / llama.cpp | Was the go-to Intel stack; check maintenance status | Linux, Windows | | IPEX-LLM | PyTorch / llama.cpp | Was the go-to Intel stack; check maintenance status | Linux, Windows |
## llama.cpp ## llama.cpp