Multi-GPU recipes and mixed setups
ci / check (push) Successful in 11s

Several of one GPU: <gpu>/<model>/<N>x-<engine>-<profile>.md with gpus,
tp and pp (tp × pp = gpus) and a declared PCIe topology. Different GPUs:
mixed/<setup>/, named after its cards, with the same layout as a GPU
folder and a generated mixed/README.md. Runs must sit in their recipe's
setup folder. Energy, and bandwidth for pipeline parallel or mixed, are
left out where bench-standard measures one GPU only; docs/
bench-standard-gaps.md lists those gaps for the benchmarks repo. The
wanted lists take the fewest of one GPU a model fits in.

Demo: 2x Arc B580 with vLLM TP 2 and llama.cpp layer split for
Qwen3.8-27B, -sm row as what lost, and Arc Pro B60 + Arc B580 mixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-29 18:59:51 +01:00
1 parent 753bdadf7a
commit 976a8b40e5
59 files changed
+39381 -119

No files matched your search

@@ -0,0 +1,84 @@
+++
title = "Qwen3.8-27B on 2× Arc B580 with llama.cpp, single user"
summary = "Layer split over two 12 GB cards: simple, little PCIe traffic, but one card works at a time."
model = "Qwen3.8-27B"
quant = "UD-Q4_K_M"
kv = "q8_0"
engine = "llama.cpp"
gpu = "Arc B580"
gpus = 2
pp = 2
profile = "single-user"
spec = "none"
thinking = "default"
topology = ["Gen4 x8 CPU", "Gen4 x8 CPU"]
results = ["261027_demo_qwen3.8-27b_llama.cpp_2x-arc-b580"]
+++
The first half of the layers on one card, the second half on the other. Only one
small activation crosses PCIe per token, but the cards take turns, so decode runs at
about the speed of one card reading half the weights, then the other.
[`-sm row`](tried.md) was slower.
<!-- cookbook:numbers -->
> **Demo data.** These numbers are synthetic, made by `tools/demo/make_demo.py` to show the layout. Nothing here was measured.
**decode at batch 1: 15.9 t/s** · one submitter · 1 run
| metric | first run |
|---|---|
| GPUs | 2× Arc B580 · tp 1 · pp 2 |
| PCIe topology (declared) | Gen4 x8 CPU · Gen4 x8 CPU |
| decode at batch 1 (median) | 15.9 t/s |
| time to first token (median) | 330 ms |
| concurrency, aggregate | 1: 15 · 2: 16 · 4: 16 · 8: 16 t/s |
| prefill | 2k: 619 · 8k: 459 · 16k: 378 t/s |
| decode at batch 1 per GPU | 7.9 t/s |
| memory bandwidth reached | n/a: bench-standard computes it for tensor parallel over equal GPUs only |
| decode energy | n/a: bench-standard samples the power of one GPU |
| run | submitter | date | decode at batch 1 | TTFT | report |
|---|---|---|---|---|---|
| `261027_demo_qwen3.8-27b_llama.cpp_2x-arc-b580` | demo | 2026-10-27 | 15.9 t/s | 330 ms | [html](../results/261027_demo_qwen3.8-27b_llama.cpp_2x-arc-b580/261027_demo_qwen3.8-27b_llama.cpp_2x-arc-b580.html) |
Reproduce it: start the server with the launch command below, save that command as `server-cmd.txt`, then run [bench-standard](https://git.linxweiler.xyz/miga/benchmarks):
```sh
./bench.sh --endpoint http://localhost:8080/v1 --model qwen3.8-27b \
--tp 1 --pp 2 --quant UD-Q4_K_M --kv q8_0 --spec none --thinking default \
--submitter YOUR_NAME --server-cmd-file server-cmd.txt --full
```
bench.sh records PCIe and power for one GPU only: put the link of every GPU in `--special-notes`, as in the recipe's `topology`.
<!-- /cookbook:numbers -->
## Requirements
- Two Arc B580, host set up as in [host setup](../../docs/host-setup.md)
- Docker
- The standard file `Qwen3.8-27B-UD-Q4_K_M.gguf`, as in the
[B65 recipe](../../arc-pro-b65/qwen3.8-27b/llama.cpp-single-user.md)
## Launch
```sh
docker run --rm --name llm --device /dev/dri -v /models:/models -p 8080:8080 \
-e ZES_ENABLE_SYSMAN=1 \
ghcr.io/ggml-org/llama.cpp:server-intel@sha256:0000000000000000000000000000000000000000000000000000000000000000 \
-m /models/Qwen3.8-27B-UD-Q4_K_M.gguf --alias qwen3.8-27b \
-ngl 99 -sm layer -ts 1,1 -c 16384 -np 1 -fa on -ctk q8_0 -ctv q8_0 -b 2048 -ub 512 \
--host 0.0.0.0 --port 8080
```
## Why these flags
| flag | why |
|---|---|
| `-sm layer` | whole layers per GPU; declared to bench.sh as `--pp 2` |
| `-ts 1,1` | half the layers on each card |
| `-c 16384` | what fits next to the weights on 2 × 12 GB |
## Pitfalls
- Declare `--tp 1 --pp 2` for `-sm layer`, and `--tp 2 --pp 1` for `-sm row`.
- bench.sh's bandwidth figure assumes tensor parallelism, so it's left out here.
@@ -0,0 +1,90 @@
+++
title = "Qwen3.8-27B on 2× Arc B580 with vLLM, single user"
summary = "The 27B doesn't fit one 12 GB card: split it over two with tensor parallelism plus MTP."
model = "Qwen3.8-27B"
quant = "w4a16"
kv = "fp16"
engine = "vllm"
gpu = "Arc B580"
gpus = 2
tp = 2
profile = "single-user"
spec = "mtp:5"
thinking = "default"
topology = ["Gen4 x8 CPU", "Gen4 x8 CPU"]
results = ["261027_demo_qwen3.8-27b_vllm_2x-arc-b580"]
+++
Two consumer cards for the 27B: 24 GB together, enough for the INT4 weights and a
short context. Each card holds half of every layer, and they exchange activations over
PCIe after every layer, so the link to the CPU decides how well this scales.
<!-- cookbook:numbers -->
> **Demo data.** These numbers are synthetic, made by `tools/demo/make_demo.py` to show the layout. Nothing here was measured.
**decode at batch 1: 51.3 t/s** · one submitter · 1 run
| metric | first run |
|---|---|
| GPUs | 2× Arc B580 · tp 2 · pp 1 |
| PCIe topology (declared) | Gen4 x8 CPU · Gen4 x8 CPU |
| decode at batch 1 (median) | 51.3 t/s |
| time to first token (median) | 261 ms |
| concurrency, aggregate | 1: 51 · 2: 51 · 4: 52 · 8: 53 t/s |
| prefill | 2k: 1,657 t/s |
| decode at batch 1 per GPU | 25.7 t/s |
| memory bandwidth reached | n/a: speculative decoding makes several tokens per pass over the weights |
| decode energy | n/a: bench-standard samples the power of one GPU |
| run | submitter | date | decode at batch 1 | TTFT | report |
|---|---|---|---|---|---|
| `261027_demo_qwen3.8-27b_vllm_2x-arc-b580` | demo | 2026-10-27 | 51.3 t/s | 261 ms | [html](../results/261027_demo_qwen3.8-27b_vllm_2x-arc-b580/261027_demo_qwen3.8-27b_vllm_2x-arc-b580.html) |
Reproduce it: start the server with the launch command below, save that command as `server-cmd.txt`, then run [bench-standard](https://git.linxweiler.xyz/miga/benchmarks):
```sh
./bench.sh --endpoint http://localhost:8000/v1 --model qwen3.8-27b \
--tp 2 --pp 1 --quant w4a16 --kv fp16 --spec mtp:5 --thinking default \
--submitter YOUR_NAME --server-cmd-file server-cmd.txt --full
```
bench.sh records PCIe and power for one GPU only: put the link of every GPU in `--special-notes`, as in the recipe's `topology`.
<!-- /cookbook:numbers -->
## Requirements
- Two Arc B580, both in slots wired to the CPU (see Pitfalls), host set up as in
[host setup](../../docs/host-setup.md)
- Docker
- The `RedHatAI/Qwen3.8-27B-INT4` checkpoint, as in the
[B65 recipe](../../arc-pro-b65/qwen3.8-27b/vllm-single-user.md)
## Launch
```sh
docker run --rm --name llm --device /dev/dri --ipc=host -v /models:/models -p 8000:8000 \
-e ZE_AFFINITY_MASK=0,1 \
intel/vllm:0.30.0-xpu@sha256:0000000000000000000000000000000000000000000000000000000000000000 \
vllm serve /models/RedHatAI/Qwen3.8-27B-INT4 --served-model-name qwen3.8-27b \
--tensor-parallel-size 2 --dtype float16 --max-model-len 8192 --max-num-seqs 1 \
--gpu-memory-utilization 0.95 \
--speculative-config '{"method":"mtp","num_speculative_tokens":5}' \
--host 0.0.0.0 --port 8000
```
## Why these flags
| flag | why |
|---|---|
| `--tensor-parallel-size 2` | each GPU holds half of every layer |
| `ZE_AFFINITY_MASK=0,1` | the two B580s, as Level Zero numbers them; check with `xpu-smi discovery` |
| `--max-model-len 8192` | after the weights, little memory is left per card for the KV cache |
| `--gpu-memory-utilization 0.95` | the weights fill most of the 2 × 12 GB |
| `--speculative-config` mtp, 5 tokens | as on one card: drafts are checked in one pass |
## Pitfalls
- A slot wired to the chipset (often the second x16 slot, electrically x4) slows every
layer. `lspci -vv` shows the link width of each card. Declare both in the run's
`--special-notes`: bench.sh reads only the first card.
- Two cards draw twice the power, but bench.sh samples one. The energy figure is left out.
+22
View File
@@ -0,0 +1,22 @@
+++
model = "Qwen3.8-27B"
gpu = "Arc B580"
[[tried]]
recipe = "arc-b580/qwen3.8-27b/2x-llama.cpp-single-user"
change = "`-sm row` instead of `-sm layer`"
result = "261027_demo_qwen3.8-27b_llama.cpp_2x-arc-b580_quick"
note = "splits every layer: PCIe traffic per layer outweighs both cards working"
+++
# Qwen3.8-27B on Arc B580: what lost
<!-- cookbook:tried -->
Quick runs unless marked full: good for a direction, not for exact numbers.
| change | decode t/s | TTFT | peak t/s | vs. the recipe | run |
|---|---|---|---|---|---|
| `-sm row` instead of `-sm layer` — splits every layer: PCIe traffic per layer outweighs both cards working | 11.8 | 407 ms | 12 | -26% decode at batch 1 vs [2x-llama.cpp-single-user](2x-llama.cpp-single-user.md) | [2026-10-27](../results/261027_demo_qwen3.8-27b_llama.cpp_2x-arc-b580_quick/261027_demo_qwen3.8-27b_llama.cpp_2x-arc-b580_quick.html) |
> **Demo data.** These runs are synthetic. Nothing here was measured.
<!-- /cookbook:tried -->