Intel GPUs page; run metadata and GPU telemetry in Benchmarks
1 parent
e6aff67fd6
commit
153b0381a7
4 files changed
+97
-3
No files matched your search
+23
-2
@@ -90,8 +90,29 @@ Every run (single, A/B, sweep variant) records, every 2 seconds:
|
||||
|
||||
- **CPU**: cores used, average and peak, per container.
|
||||
- **RAM**: average and peak, against the container's memory limit.
|
||||
- **GPU** (NVIDIA): VRAM average and peak, utilization, power draw, per GPU, from `nvidia-smi`.
|
||||
These are whole-GPU figures, not per process.
|
||||
- **GPU**: VRAM average and peak, utilization, power draw and temperature, per GPU. NVIDIA from
|
||||
`nvidia-smi`; AMD from sysfs; Intel power/temperature from hwmon and VRAM/utilization from the
|
||||
processes' DRM fdinfo (see [[Intel GPUs]]). These are whole-GPU figures, not per process.
|
||||
- **PCIe link**: the fastest link seen during the run (GPUs slow their link down when idle).
|
||||
|
||||
## What a run records
|
||||
|
||||
When a run starts (single, A/B, every sweep variant), Kaname records what it measures:
|
||||
|
||||
- **GPUs**: count, name, VRAM; PCIe link, current (under load) and maximum, e.g. "Gen4 x8 of Gen5
|
||||
x16", at the card's upstream port; peer-to-peer between GPUs ("n/a" with one); Resizable BAR.
|
||||
- **Runtime**: image, tag and registry digest; the engine version the server reports (llama.cpp
|
||||
build, vLLM version) and, for forks, the runtime's engine name.
|
||||
- **Model**: quant and KV cache type, context length and concurrency (llama.cpp slots, vLLM max
|
||||
sequences).
|
||||
- **System summary**: CPU, RAM, the disk holding the models, OS and kernel, GPU driver, VM or bare
|
||||
metal with GPU passthrough, Kaname version. Never the hostname, IP addresses, users or paths.
|
||||
- A **description** you write (when starting the run or later on its page).
|
||||
|
||||
All of it is on the run page, in compare views and in sweep tables (shared values above, differing
|
||||
ones as columns). It goes to BetterBench as `--note`s (in `results.json` and its report) and into the
|
||||
launch80 preview as page sections. What detection can't see (a VM's PCIe link, a GPU missing from
|
||||
the PCI ID list) can be entered in **Settings → Hardware**.
|
||||
|
||||
## Comparing runs
|
||||
|
||||
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
# Intel GPUs
|
||||
|
||||
Kaname runs models on Intel Arc GPUs (A-series, B-series, Arc Pro) with llama.cpp (SYCL or Vulkan)
|
||||
and vLLM (XPU). The GPU is passed into the model containers as `/dev/dri`; all GPU libraries (oneAPI /
|
||||
Level Zero, Vulkan) come with the runtime images. The host only needs the kernel driver.
|
||||
|
||||
## Host prerequisites
|
||||
|
||||
On the Docker host (or the VM that has the GPU):
|
||||
|
||||
- **Kernel driver**: `xe` for Battlemage (B-series, Arc Pro B60/B65), `i915` or `xe` for Alchemist.
|
||||
New cards need a recent kernel; if the GPU has no driver (`lspci -k` shows none) or `/dev/dri` is
|
||||
missing, update the kernel.
|
||||
- **Firmware**: the distribution's `linux-firmware` package must include the GuC/HuC files for the
|
||||
card (the `xe` driver doesn't bind without them; `dmesg | grep -i xe` tells).
|
||||
- **`/dev/dri`** exists with `card*` and `renderD*` nodes. Nothing else is needed for Docker: no
|
||||
Intel container toolkit, no compute runtime on the host.
|
||||
- **Groups**: you don't have to add anyone to `render`/`video`. Kaname reads the group IDs of the
|
||||
device nodes and adds them to the model containers, so images that don't run as root can open the
|
||||
GPU too.
|
||||
|
||||
### In a Proxmox VM
|
||||
|
||||
- Enable IOMMU on the host (`intel_iommu=on` or AMD's equivalent, `iommu=pt`) and pass the GPU
|
||||
through as a PCIe device (machine type q35, "PCI-Express" ticked, all functions).
|
||||
- **Resizable BAR**: enable "Above 4G decoding" and "Resizable BAR" in the host's firmware. Whether
|
||||
the VM sees the full BAR depends on the host kernel and QEMU; check inside the VM in Settings →
|
||||
Hardware ("Largest BAR" should be about the VRAM size) or with `sudo lspci -vvv`.
|
||||
- **PCIe link**: inside a VM, the link speed and width are what the VM's virtual PCIe port reports,
|
||||
not necessarily the physical slot. Enter the real values in Settings → Hardware if they differ;
|
||||
benchmark runs record those.
|
||||
|
||||
### Check the host
|
||||
|
||||
`scripts/intel-probe.sh` (in the repository) prints, read-only, what Kaname can use on this host:
|
||||
the GPU and its driver, the PCIe link per level, BAR sizes, hwmon sensors, the `/dev/dri` groups and
|
||||
whether per-process GPU stats (DRM fdinfo) are readable.
|
||||
|
||||
```bash
|
||||
bash scripts/intel-probe.sh
|
||||
sudo bash scripts/intel-probe.sh # adds lspci's link and Resizable BAR details
|
||||
```
|
||||
|
||||
## Runtimes
|
||||
|
||||
Settings → Runtimes has presets for Intel; the llama.cpp ones are added automatically the first time
|
||||
an Intel GPU is detected (pull the image before deploying):
|
||||
|
||||
| Preset | Image | Notes |
|
||||
| --- | --- | --- |
|
||||
| llama.cpp (Intel SYCL) | `ghcr.io/ggml-org/llama.cpp:server-intel` | oneAPI/SYCL. `ZES_ENABLE_SYSMAN=1` is set so llama.cpp sees free VRAM (`-ngl auto` needs it). |
|
||||
| llama.cpp (Vulkan) | `ghcr.io/ggml-org/llama.cpp:server-vulkan` | Often close to SYCL; worth comparing with an A/B. |
|
||||
| vLLM (Intel XPU) | `vllm/vllm-openai-xpu:v0.31.0` | Safetensors models. Reserves `--gpu-memory-utilization` (0.9) of the VRAM up front; 8 GiB shared memory. |
|
||||
|
||||
The deployment form shows the GPU and a rough **VRAM estimate** (weights + KV cache + compute buffers
|
||||
for llama.cpp with all layers on the GPU; the reserved share for vLLM) against the card's VRAM.
|
||||
|
||||
## Telemetry during benchmarks
|
||||
|
||||
The Intel driver has no whole-GPU "VRAM used" or "utilization" file; both are reported per process
|
||||
(DRM fdinfo, as `intel_gpu_top` and `nvtop` read them). During a benchmark Kaname reads:
|
||||
|
||||
- **Power and temperature** from the GPU's hwmon sensors in sysfs (no privileges needed).
|
||||
- **VRAM in use and utilization** by summing every process's DRM fdinfo, through a small probe
|
||||
container started from Kaname's own image for the duration of the run. To read other containers'
|
||||
`/proc/<pid>/fdinfo` it runs in the host's PID namespace with two capabilities
|
||||
(`SYS_PTRACE`, `DAC_READ_SEARCH`), everything else dropped, no network, read-only filesystem,
|
||||
`no-new-privileges`. It only reads and prints those files; it is removed when the run ends.
|
||||
|
||||
Utilization is the busiest engine (render or compute) over each 2-second interval, like
|
||||
`intel_gpu_top`'s headline. If the probe can't run, power and temperature are still recorded.
|
||||
+2
-1
@@ -68,7 +68,8 @@ GPU launch options: llama.cpp GPU layers (`-ngl`), split mode and tensor split a
|
||||
MoE experts on the CPU; vLLM tensor parallelism and GPU memory share.
|
||||
|
||||
**Intel / AMD**: the runtime's hardware setting passes `/dev/dri` (and `/dev/kfd` for ROCm) through;
|
||||
the device nodes must exist on the Docker host.
|
||||
the device nodes must exist on the Docker host. Kaname adds the device nodes' group IDs (render,
|
||||
video) to the container. Intel setup, presets and telemetry: [[Intel GPUs]].
|
||||
|
||||
## API keys
|
||||
|
||||
|
||||
+1
@@ -2,6 +2,7 @@
|
||||
- [[Configuration]]
|
||||
- [[Importing existing models]]
|
||||
- [[Runtimes]]
|
||||
- [[Intel GPUs]]
|
||||
- [[Benchmarks]]
|
||||
- [[Storing models on a NAS]]
|
||||
- [README / Install](https://git.linxweiler.xyz/pascallinxweiler/Kaname)
|
||||
Reference in new issue
Block a user