More
This commit is contained in:
1 parent
13b68e3e3c
commit
22356a6f79
10 files changed
+20
-51
No files matched your search
@@ -11,14 +11,22 @@ the cards (power, clocks, memory).
|
||||
|
||||
| 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 |
|
||||
| [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
|
||||
@@ -26,3 +34,5 @@ the cards (power, clocks, memory).
|
||||
- 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.
|
||||
|
||||
## Helping Hands
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -2,33 +2,6 @@
|
||||
|
||||
[← 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
|
||||
|
||||
@@ -36,21 +9,3 @@ 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.
|
||||
@@ -10,13 +10,17 @@ note the date when updating.
|
||||
| Runtime | Backend on Arc | Good for | OS |
|
||||
| --- | --- | --- | --- |
|
||||
| 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 |
|
||||
| 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 |
|
||||
|
||||
### Deprecated
|
||||
| Runtime | Backend on Arc | Good for | OS |
|
||||
| --- | --- | --- | --- |
|
||||
| IPEX-LLM | PyTorch / llama.cpp | Was the go-to Intel stack; check maintenance status | Linux, Windows |
|
||||
|
||||
## llama.cpp
|
||||
Reference in new issue
Block a user