From 22356a6f79aa8569a1c2ac4d604a5d4229222cc4 Mon Sep 17 00:00:00 2001 From: Pascal Linxweiler Date: Wed, 18 Nov 2026 09:42:59 +0100 Subject: [PATCH] More --- README.md | 18 +++++++-- docs/{ => _coming}/benchmarks.md | 0 docs/{ => _coming}/cookbooks.md | 0 docs/{ => _coming}/hardware.md | 0 docs/{ => _coming}/image-models.md | 0 docs/{ => _coming}/resources.md | 0 docs/{ => _coming}/setup.md | 0 docs/{ => _coming}/troubleshooting.md | 0 docs/optimization.md | 47 +----------------------- docs/{runtimes.md => runtimes/README.md} | 8 +++- 10 files changed, 21 insertions(+), 52 deletions(-) rename docs/{ => _coming}/benchmarks.md (100%) rename docs/{ => _coming}/cookbooks.md (100%) rename docs/{ => _coming}/hardware.md (100%) rename docs/{ => _coming}/image-models.md (100%) rename docs/{ => _coming}/resources.md (100%) rename docs/{ => _coming}/setup.md (100%) rename docs/{ => _coming}/troubleshooting.md (100%) rename docs/{runtimes.md => runtimes/README.md} (96%) diff --git a/README.md b/README.md index af17bd9..473b828 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file diff --git a/docs/benchmarks.md b/docs/_coming/benchmarks.md similarity index 100% rename from docs/benchmarks.md rename to docs/_coming/benchmarks.md diff --git a/docs/cookbooks.md b/docs/_coming/cookbooks.md similarity index 100% rename from docs/cookbooks.md rename to docs/_coming/cookbooks.md diff --git a/docs/hardware.md b/docs/_coming/hardware.md similarity index 100% rename from docs/hardware.md rename to docs/_coming/hardware.md diff --git a/docs/image-models.md b/docs/_coming/image-models.md similarity index 100% rename from docs/image-models.md rename to docs/_coming/image-models.md diff --git a/docs/resources.md b/docs/_coming/resources.md similarity index 100% rename from docs/resources.md rename to docs/_coming/resources.md diff --git a/docs/setup.md b/docs/_coming/setup.md similarity index 100% rename from docs/setup.md rename to docs/_coming/setup.md diff --git a/docs/troubleshooting.md b/docs/_coming/troubleshooting.md similarity index 100% rename from docs/troubleshooting.md rename to docs/_coming/troubleshooting.md diff --git a/docs/optimization.md b/docs/optimization.md index 678e4aa..b6265a5 100644 --- a/docs/optimization.md +++ b/docs/optimization.md @@ -2,55 +2,10 @@ [← 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. +- Linux: `pcie_aspm=force` / `pcie_aspm.policy=powersupersave` kernel parameter (test carefully). \ No newline at end of file diff --git a/docs/runtimes.md b/docs/runtimes/README.md similarity index 96% rename from docs/runtimes.md rename to docs/runtimes/README.md index df7452c..03a18c5 100644 --- a/docs/runtimes.md +++ b/docs/runtimes/README.md @@ -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