Recipes for running the bench-standard models fastest on Intel Arc GPUs, each backed by a bench.sh result folder in results/. tools/cookbook.py validates recipes against their runs and generates the number tables and site/index.html. All results are synthetic DEMO data so far, made by tools/demo/make_demo.py; nothing has been measured yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
4673f0afb6
151 files changed
+87304
No files matched your search
@@ -0,0 +1,81 @@
|
||||
# Recipes
|
||||
|
||||
One file per exact setup: `recipes/<model>/<gpu>/<engine>-<profile>.md`, every part
|
||||
slugged the way bench.sh names result folders (`Arc Pro B65` → `arc-pro-b65`).
|
||||
`tools/cookbook.py validate` rejects a file whose path doesn't match its front matter.
|
||||
|
||||
## Front matter
|
||||
|
||||
TOML between `+++` lines:
|
||||
|
||||
```toml
|
||||
+++
|
||||
title = "Qwen3.8-27B on Arc Pro B65 with vLLM, single user"
|
||||
summary = "One line: what makes this setup the one to pick."
|
||||
model = "Qwen3.8-27B" # a standard model in cookbook.toml
|
||||
quant = "w4a16" # as declared to bench.sh (its README, Models)
|
||||
kv = "fp16" # as declared to bench.sh
|
||||
engine = "vllm" # what bench.sh detects: vllm or llama.cpp
|
||||
gpu = "Arc Pro B65" # an Arc GPU in cookbook.toml, as bench.sh records it
|
||||
profile = "single-user" # single-user, throughput, long-context or efficiency
|
||||
spec = "mtp:5" # as declared to bench.sh
|
||||
thinking = "default" # as declared to bench.sh
|
||||
tp = 1 # optional, default 1
|
||||
pp = 1 # optional, default 1
|
||||
results = [ # result folders in results/, --full runs only
|
||||
"261022_pascal_qwen3.8-27b_vllm_1x-arc-pro-b65",
|
||||
]
|
||||
+++
|
||||
```
|
||||
|
||||
The first result is the reference run. More results are reproductions. When their
|
||||
headline metric is within `agree_pct` of the first run (5%, `cookbook.toml`) and they
|
||||
come from two or more submitters, the recipe is **verified**.
|
||||
|
||||
## Body
|
||||
|
||||
````markdown
|
||||
One paragraph: who this is for, and how it compares to the other recipes.
|
||||
|
||||
<!-- cookbook:numbers -->
|
||||
<!-- /cookbook:numbers -->
|
||||
|
||||
## Requirements
|
||||
|
||||
GPU, host setup link, how to get the standard model file and check its hash.
|
||||
|
||||
## Launch
|
||||
|
||||
```sh
|
||||
the exact command, the same as server-cmd.txt in every cited result
|
||||
```
|
||||
|
||||
## Why these flags
|
||||
|
||||
| flag | why |
|
||||
|---|---|
|
||||
|
||||
## Check it
|
||||
|
||||
A curl that proves the server answers.
|
||||
|
||||
## Pitfalls
|
||||
|
||||
What goes wrong, and how you notice.
|
||||
````
|
||||
|
||||
`tools/cookbook.py build` fills the `numbers` block: headline, the metrics of the
|
||||
reference run, all runs with links to their reports, and the bench.sh command to
|
||||
reproduce. Never type numbers into a recipe by hand.
|
||||
|
||||
## What validate checks
|
||||
|
||||
- every cited result exists, is a `--full` run of an accepted bench-standard version,
|
||||
on the standard model file
|
||||
- `quant`, `kv`, `spec`, `thinking`, `tp`, `pp`, GPU and engine match what the run
|
||||
declared and detected
|
||||
- the first `sh` block under `## Launch` is word for word the `server-cmd.txt` of every
|
||||
cited run (line breaks, spacing and comments don't count; secrets are redacted the
|
||||
way bench.sh does it)
|
||||
- a container image is pinned by digest (`image@sha256:...`)
|
||||
- demo and real results are never mixed
|
||||
@@ -0,0 +1,69 @@
|
||||
+++
|
||||
title = "Qwen3.5-9B on Arc B580 with llama.cpp, single user"
|
||||
summary = "The 9B on the 12 GB consumer card: the same command as on the B65."
|
||||
model = "Qwen3.5-9B"
|
||||
quant = "Q4_K_M"
|
||||
kv = "q8_0"
|
||||
engine = "llama.cpp"
|
||||
gpu = "Arc B580"
|
||||
profile = "single-user"
|
||||
spec = "none"
|
||||
thinking = "default"
|
||||
results = ["261024_demo_qwen3.5-9b_llama.cpp_1x-arc-b580"]
|
||||
+++
|
||||
|
||||
The 5.7 GB model plus a 32k q8_0 KV cache fit in 12 GB. Decode scales with the
|
||||
card's memory bandwidth: 456 GB/s here, 608 GB/s on the B65.
|
||||
|
||||
<!-- 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: 48.2 t/s** · one submitter · 1 run
|
||||
|
||||
| metric | first run |
|
||||
|---|---|
|
||||
| decode at batch 1 (median) | 48.2 t/s |
|
||||
| time to first token (median) | 121 ms |
|
||||
| concurrency, aggregate | 1: 47 · 2: 48 · 4: 47 · 8: 48 t/s |
|
||||
| prefill | 2k: 2,505 · 8k: 1,849 · 16k: 1,527 · 32k: 1,198 t/s |
|
||||
| memory bandwidth reached | 68% of 401 GB/s measured |
|
||||
| decode energy | 2.94 J/token at 140 W |
|
||||
|
||||
| run | submitter | date | decode at batch 1 | TTFT | report |
|
||||
|---|---|---|---|---|---|
|
||||
| `261024_demo_qwen3.5-9b_llama.cpp_1x-arc-b580` | demo | 2026-10-24 | 48.2 t/s | 121 ms | [html](../../../results/261024_demo_qwen3.5-9b_llama.cpp_1x-arc-b580/261024_demo_qwen3.5-9b_llama.cpp_1x-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.5-9b \
|
||||
--tp 1 --pp 1 --quant Q4_K_M --kv q8_0 --spec none --thinking default \
|
||||
--submitter YOUR_NAME --server-cmd-file server-cmd.txt --full
|
||||
```
|
||||
<!-- /cookbook:numbers -->
|
||||
|
||||
## Requirements
|
||||
|
||||
- An Arc B580, with the host set up as in [host setup](../../../hardware/host-setup.md)
|
||||
- Docker
|
||||
- The standard model file, as in the [B65 recipe](../arc-pro-b65/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.5-9B-Q4_K_M.gguf --alias qwen3.5-9b \
|
||||
-ngl 99 -c 32768 -np 1 -fa on -ctk q8_0 -ctv q8_0 -b 2048 -ub 512 \
|
||||
--host 0.0.0.0 --port 8080
|
||||
```
|
||||
|
||||
## Why these flags
|
||||
|
||||
Same as the [B65 recipe](../arc-pro-b65/llama.cpp-single-user.md#why-these-flags).
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- The B580 has a PCIe 4.0 x8 link. Without ReBAR it is much slower: check
|
||||
`lspci -vv` as in [host setup](../../../hardware/host-setup.md).
|
||||
@@ -0,0 +1,91 @@
|
||||
+++
|
||||
title = "Qwen3.5-9B on Arc Pro B65 with llama.cpp, single user"
|
||||
summary = "The simplest fast setup: one container, one GGUF file, no speculative decoding."
|
||||
model = "Qwen3.5-9B"
|
||||
quant = "Q4_K_M"
|
||||
kv = "q8_0"
|
||||
engine = "llama.cpp"
|
||||
gpu = "Arc Pro B65"
|
||||
profile = "single-user"
|
||||
spec = "none"
|
||||
thinking = "default"
|
||||
results = ["261019_demo_qwen3.5-9b_llama.cpp_1x-arc-pro-b65"]
|
||||
+++
|
||||
|
||||
One user, one conversation at a time, as fast as llama.cpp's SYCL backend goes on
|
||||
this card. If you can run vLLM, its recipe with speculative decoding is faster; this
|
||||
one is easier to set up and starts in seconds.
|
||||
|
||||
<!-- 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: 64.0 t/s** · one submitter · 1 run
|
||||
|
||||
| metric | first run |
|
||||
|---|---|
|
||||
| decode at batch 1 (median) | 64.0 t/s |
|
||||
| time to first token (median) | 95 ms |
|
||||
| concurrency, aggregate | 1: 63 · 2: 64 · 4: 62 · 8: 64 t/s |
|
||||
| prefill | 2k: 3,408 · 8k: 2,516 · 16k: 2,076 · 32k: 1,632 t/s |
|
||||
| memory bandwidth reached | 68% of 532 GB/s measured |
|
||||
| decode energy | 2.35 J/token at 148 W |
|
||||
|
||||
| run | submitter | date | decode at batch 1 | TTFT | report |
|
||||
|---|---|---|---|---|---|
|
||||
| `261019_demo_qwen3.5-9b_llama.cpp_1x-arc-pro-b65` | demo | 2026-10-19 | 64.0 t/s | 95 ms | [html](../../../results/261019_demo_qwen3.5-9b_llama.cpp_1x-arc-pro-b65/261019_demo_qwen3.5-9b_llama.cpp_1x-arc-pro-b65.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.5-9b \
|
||||
--tp 1 --pp 1 --quant Q4_K_M --kv q8_0 --spec none --thinking default \
|
||||
--submitter YOUR_NAME --server-cmd-file server-cmd.txt --full
|
||||
```
|
||||
<!-- /cookbook:numbers -->
|
||||
|
||||
## Requirements
|
||||
|
||||
- An Arc Pro B65, with the host set up as in [host setup](../../../hardware/host-setup.md)
|
||||
- Docker
|
||||
- The standard model file (5.7 GB):
|
||||
|
||||
```sh
|
||||
hf download unsloth/Qwen3.5-9B-GGUF Qwen3.5-9B-Q4_K_M.gguf --local-dir /models
|
||||
sha256sum /models/Qwen3.5-9B-Q4_K_M.gguf # 03b74727a860a563...
|
||||
```
|
||||
|
||||
## 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.5-9B-Q4_K_M.gguf --alias qwen3.5-9b \
|
||||
-ngl 99 -c 32768 -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 |
|
||||
|---|---|
|
||||
| `-ngl 99` | every layer on the GPU |
|
||||
| `-np 1` | one slot: the whole context belongs to one conversation |
|
||||
| `-fa on` | flash attention; llama.cpp needs it for a quantized V cache. Off is slower, see [what lost](../../../tried/qwen3.5-9b/arc-pro-b65.md) |
|
||||
| `-ctk q8_0 -ctv q8_0` | half the KV cache memory of f16 |
|
||||
| `-b 2048 -ub 512` | prompt batch sizes; they matter for prefill, not for decode |
|
||||
| `ZES_ENABLE_SYSMAN=1` | lets the SYCL backend read the free GPU memory through Level Zero |
|
||||
|
||||
## Check it
|
||||
|
||||
```sh
|
||||
curl -s localhost:8080/v1/chat/completions -H 'Content-Type: application/json' \
|
||||
-d '{"model":"qwen3.5-9b","messages":[{"role":"user","content":"Say hi"}]}'
|
||||
```
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- Without `--device /dev/dri` the container falls back to the CPU without an error. The
|
||||
server log should list the Arc GPU as a SYCL device.
|
||||
- The image tag `server-intel` moves daily. Keep the digest so you run the build that
|
||||
was measured.
|
||||
@@ -0,0 +1,90 @@
|
||||
+++
|
||||
title = "Qwen3.5-9B on Arc Pro B65 with vLLM, single user"
|
||||
summary = "vLLM on XPU with the model's own MTP head drafting 5 tokens per step."
|
||||
model = "Qwen3.5-9B"
|
||||
quant = "w4a16"
|
||||
kv = "fp16"
|
||||
engine = "vllm"
|
||||
gpu = "Arc Pro B65"
|
||||
profile = "single-user"
|
||||
spec = "mtp:5"
|
||||
thinking = "default"
|
||||
results = ["261020_demo_qwen3.5-9b_vllm_1x-arc-pro-b65"]
|
||||
+++
|
||||
|
||||
The fastest single-user setup for the 9B on this card. The RedHatAI checkpoint ships
|
||||
an MTP head, so speculative decoding needs no separate draft model.
|
||||
|
||||
<!-- 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: 118.2 t/s** · one submitter · 1 run
|
||||
|
||||
| metric | first run |
|
||||
|---|---|
|
||||
| decode at batch 1 (median) | 118.2 t/s |
|
||||
| time to first token (median) | 140 ms |
|
||||
| concurrency, aggregate | 1: 116 · 2: 116 · 4: 116 · 8: 118 t/s |
|
||||
| prefill | 2k: 4,083 · 8k: 3,027 · 16k: 2,513 · 32k: 1,973 t/s |
|
||||
| memory bandwidth reached | n/a: speculative decoding makes several tokens per pass over the weights |
|
||||
| decode energy | 1.75 J/token at 165 W |
|
||||
|
||||
| run | submitter | date | decode at batch 1 | TTFT | report |
|
||||
|---|---|---|---|---|---|
|
||||
| `261020_demo_qwen3.5-9b_vllm_1x-arc-pro-b65` | demo | 2026-10-20 | 118.2 t/s | 140 ms | [html](../../../results/261020_demo_qwen3.5-9b_vllm_1x-arc-pro-b65/261020_demo_qwen3.5-9b_vllm_1x-arc-pro-b65.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.5-9b \
|
||||
--tp 1 --pp 1 --quant w4a16 --kv fp16 --spec mtp:5 --thinking default \
|
||||
--submitter YOUR_NAME --server-cmd-file server-cmd.txt --full
|
||||
```
|
||||
<!-- /cookbook:numbers -->
|
||||
|
||||
## Requirements
|
||||
|
||||
- An Arc Pro B65, with the host set up as in [host setup](../../../hardware/host-setup.md)
|
||||
- Docker
|
||||
- The standard checkpoint (the whole repo):
|
||||
|
||||
```sh
|
||||
hf download RedHatAI/Qwen3.5-9B-quantized.w4a16 --local-dir /models/RedHatAI/Qwen3.5-9B-quantized.w4a16
|
||||
cd /models/RedHatAI/Qwen3.5-9B-quantized.w4a16 && sha256sum *.safetensors | LC_ALL=C sort -k2 | sha256sum
|
||||
# cca16f9855b9f92e...
|
||||
```
|
||||
|
||||
## Launch
|
||||
|
||||
```sh
|
||||
docker run --rm --name llm --device /dev/dri --ipc=host -v /models:/models -p 8000:8000 \
|
||||
intel/vllm:0.30.0-xpu@sha256:0000000000000000000000000000000000000000000000000000000000000000 \
|
||||
vllm serve /models/RedHatAI/Qwen3.5-9B-quantized.w4a16 --served-model-name qwen3.5-9b \
|
||||
--dtype float16 --max-model-len 32768 --max-num-seqs 1 --gpu-memory-utilization 0.9 \
|
||||
--speculative-config '{"method":"mtp","num_speculative_tokens":5}' \
|
||||
--host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
## Why these flags
|
||||
|
||||
| flag | why |
|
||||
|---|---|
|
||||
| `--speculative-config` mtp, 5 tokens | the MTP head drafts 5 tokens, the model checks them in one pass |
|
||||
| `--max-num-seqs 1` | one sequence: no memory or scheduling reserved for batches |
|
||||
| `--dtype float16` | activations and KV cache in fp16 |
|
||||
| `--max-model-len 32768` | enough for chat and code; more context costs KV memory |
|
||||
| `--ipc=host` | vLLM's processes share memory through `/dev/shm` |
|
||||
|
||||
## Check it
|
||||
|
||||
```sh
|
||||
curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
|
||||
-d '{"model":"qwen3.5-9b","messages":[{"role":"user","content":"Say hi"}]}'
|
||||
```
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- The first start compiles kernels and takes minutes. Behind llama-swap, give the
|
||||
health check enough time.
|
||||
- Speculative decoding speeds up predictable text (code, JSON) far more than free prose:
|
||||
look at the per-category numbers in the report.
|
||||
@@ -0,0 +1,89 @@
|
||||
+++
|
||||
title = "Qwen3.8-27B on Arc Pro B65 with llama.cpp, single user"
|
||||
summary = "The 27B in one GGUF file with a q8_0 KV cache, no speculative decoding."
|
||||
model = "Qwen3.8-27B"
|
||||
quant = "UD-Q4_K_M"
|
||||
kv = "q8_0"
|
||||
engine = "llama.cpp"
|
||||
gpu = "Arc Pro B65"
|
||||
profile = "single-user"
|
||||
spec = "none"
|
||||
thinking = "default"
|
||||
results = ["261021_demo_qwen3.8-27b_llama.cpp_1x-arc-pro-b65"]
|
||||
+++
|
||||
|
||||
The 27B fits the B65's 32 GB with room for a 32k context. Decode is bound by memory
|
||||
bandwidth: compare the bandwidth figure below with the card's 608 GB/s.
|
||||
|
||||
<!-- 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: 22.6 t/s** · one submitter · 1 run
|
||||
|
||||
| metric | first run |
|
||||
|---|---|
|
||||
| decode at batch 1 (median) | 22.6 t/s |
|
||||
| time to first token (median) | 210 ms |
|
||||
| concurrency, aggregate | 1: 22 · 2: 22 · 4: 24 · 8: 23 t/s |
|
||||
| prefill | 2k: 975 · 8k: 727 · 16k: 597 · 32k: 472 t/s |
|
||||
| memory bandwidth reached | 70% of 532 GB/s measured |
|
||||
| decode energy | 7.17 J/token at 160 W |
|
||||
|
||||
| run | submitter | date | decode at batch 1 | TTFT | report |
|
||||
|---|---|---|---|---|---|
|
||||
| `261021_demo_qwen3.8-27b_llama.cpp_1x-arc-pro-b65` | demo | 2026-10-21 | 22.6 t/s | 210 ms | [html](../../../results/261021_demo_qwen3.8-27b_llama.cpp_1x-arc-pro-b65/261021_demo_qwen3.8-27b_llama.cpp_1x-arc-pro-b65.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 1 --quant UD-Q4_K_M --kv q8_0 --spec none --thinking default \
|
||||
--submitter YOUR_NAME --server-cmd-file server-cmd.txt --full
|
||||
```
|
||||
<!-- /cookbook:numbers -->
|
||||
|
||||
## Requirements
|
||||
|
||||
- An Arc Pro B65, with the host set up as in [host setup](../../../hardware/host-setup.md)
|
||||
- Docker
|
||||
- The standard model file (16.5 GB). The repo has no plain Q4_K_M, only Unsloth's `UD-Q4_K_M`:
|
||||
|
||||
```sh
|
||||
hf download unsloth/Qwen3.8-27B-GGUF Qwen3.8-27B-UD-Q4_K_M.gguf --local-dir /models
|
||||
sha256sum /models/Qwen3.8-27B-UD-Q4_K_M.gguf # 322e194ff79741c7...
|
||||
```
|
||||
|
||||
## 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 -c 32768 -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 |
|
||||
|---|---|
|
||||
| `-ngl 99` | every layer on the GPU |
|
||||
| `-np 1` | one slot: the whole context belongs to one conversation |
|
||||
| `-fa on` | flash attention; needed for the quantized V cache |
|
||||
| `-ctk q8_0 -ctv q8_0` | half the KV memory of f16; f16 was no faster, see [what lost](../../../tried/qwen3.8-27b/arc-pro-b65.md) |
|
||||
| `-b 2048 -ub 512` | prompt batch sizes; `-ub 1024` only helps prefill |
|
||||
| `ZES_ENABLE_SYSMAN=1` | lets the SYCL backend read the free GPU memory through Level Zero |
|
||||
|
||||
## Check it
|
||||
|
||||
```sh
|
||||
curl -s localhost:8080/v1/chat/completions -H 'Content-Type: application/json' \
|
||||
-d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"Say hi"}]}'
|
||||
```
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- At the default power limit the card can throttle during long prefills. The report
|
||||
shows the clock over the run; record the limit you ran at.
|
||||
- The vLLM recipe for this model is much faster at batch 1 because of speculative decoding.
|
||||
@@ -0,0 +1,94 @@
|
||||
+++
|
||||
title = "Qwen3.8-27B on Arc Pro B65 with vLLM, single user"
|
||||
summary = "The fastest 27B setup for one user: INT4 weights plus MTP speculative decoding."
|
||||
model = "Qwen3.8-27B"
|
||||
quant = "w4a16"
|
||||
kv = "fp16"
|
||||
engine = "vllm"
|
||||
gpu = "Arc Pro B65"
|
||||
profile = "single-user"
|
||||
spec = "mtp:5"
|
||||
thinking = "default"
|
||||
results = [
|
||||
"261022_demo_qwen3.8-27b_vllm_1x-arc-pro-b65",
|
||||
"261026_demo-2_qwen3.8-27b_vllm_1x-arc-pro-b65",
|
||||
]
|
||||
+++
|
||||
|
||||
The INT4 checkpoint with its MTP head drafting 5 tokens per step. Two submitters ran
|
||||
it and agree within 5%, so it counts as verified. MTP 3 and 7 were both slower, see
|
||||
[what lost](../../../tried/qwen3.8-27b/arc-pro-b65.md).
|
||||
|
||||
<!-- 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: 84.5 t/s** · verified by 2 · 2 runs
|
||||
|
||||
| metric | first run |
|
||||
|---|---|
|
||||
| decode at batch 1 (median) | 84.5 t/s |
|
||||
| time to first token (median) | 191 ms |
|
||||
| concurrency, aggregate | 1: 82 · 2: 84 · 4: 85 · 8: 84 t/s |
|
||||
| prefill | 2k: 1,523 · 8k: 1,125 · 16k: 930 · 32k: 732 t/s |
|
||||
| memory bandwidth reached | n/a: speculative decoding makes several tokens per pass over the weights |
|
||||
| decode energy | 2.55 J/token at 172 W |
|
||||
|
||||
| run | submitter | date | decode at batch 1 | TTFT | report |
|
||||
|---|---|---|---|---|---|
|
||||
| `261022_demo_qwen3.8-27b_vllm_1x-arc-pro-b65` | demo | 2026-10-22 | 84.5 t/s | 191 ms | [html](../../../results/261022_demo_qwen3.8-27b_vllm_1x-arc-pro-b65/261022_demo_qwen3.8-27b_vllm_1x-arc-pro-b65.html) |
|
||||
| `261026_demo-2_qwen3.8-27b_vllm_1x-arc-pro-b65` | demo-2 | 2026-10-26 | 81.3 t/s | 196 ms | [html](../../../results/261026_demo-2_qwen3.8-27b_vllm_1x-arc-pro-b65/261026_demo-2_qwen3.8-27b_vllm_1x-arc-pro-b65.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 1 --pp 1 --quant w4a16 --kv fp16 --spec mtp:5 --thinking default \
|
||||
--submitter YOUR_NAME --server-cmd-file server-cmd.txt --full
|
||||
```
|
||||
<!-- /cookbook:numbers -->
|
||||
|
||||
## Requirements
|
||||
|
||||
- An Arc Pro B65, with the host set up as in [host setup](../../../hardware/host-setup.md)
|
||||
- Docker
|
||||
- The standard checkpoint (the whole repo, 18.9 GB):
|
||||
|
||||
```sh
|
||||
hf download RedHatAI/Qwen3.8-27B-INT4 --local-dir /models/RedHatAI/Qwen3.8-27B-INT4
|
||||
cd /models/RedHatAI/Qwen3.8-27B-INT4 && sha256sum *.safetensors | LC_ALL=C sort -k2 | sha256sum
|
||||
# bffa6b23fa11be55...
|
||||
```
|
||||
|
||||
## Launch
|
||||
|
||||
```sh
|
||||
docker run --rm --name llm --device /dev/dri --ipc=host -v /models:/models -p 8000:8000 \
|
||||
intel/vllm:0.30.0-xpu@sha256:0000000000000000000000000000000000000000000000000000000000000000 \
|
||||
vllm serve /models/RedHatAI/Qwen3.8-27B-INT4 --served-model-name qwen3.8-27b \
|
||||
--dtype float16 --max-model-len 32768 --max-num-seqs 1 --gpu-memory-utilization 0.92 \
|
||||
--speculative-config '{"method":"mtp","num_speculative_tokens":5}' \
|
||||
--host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
## Why these flags
|
||||
|
||||
| flag | why |
|
||||
|---|---|
|
||||
| `--speculative-config` mtp, 5 tokens | the sweet spot here: 3 drafts too few, 7 are rejected too often |
|
||||
| `--max-num-seqs 1` | one sequence: all KV memory and scheduling for one user |
|
||||
| `--gpu-memory-utilization 0.92` | the weights take most of the 32 GB; this leaves the KV cache enough for 32k |
|
||||
| `--dtype float16` | activations and KV cache in fp16 |
|
||||
| `--ipc=host` | vLLM's processes share memory through `/dev/shm` |
|
||||
|
||||
## Check it
|
||||
|
||||
```sh
|
||||
curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
|
||||
-d '{"model":"qwen3.8-27b","messages":[{"role":"user","content":"Say hi"}]}'
|
||||
```
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- More than one user at a time queues behind `--max-num-seqs 1`. For several users,
|
||||
take the [throughput recipe](vllm-throughput.md).
|
||||
- The first start compiles kernels and takes several minutes.
|
||||
@@ -0,0 +1,75 @@
|
||||
+++
|
||||
title = "Qwen3.8-27B on Arc Pro B65 with vLLM, several users"
|
||||
summary = "Up to 8 parallel requests; fewer speculative tokens so batches stay efficient."
|
||||
model = "Qwen3.8-27B"
|
||||
quant = "w4a16"
|
||||
kv = "fp16"
|
||||
engine = "vllm"
|
||||
gpu = "Arc Pro B65"
|
||||
profile = "throughput"
|
||||
spec = "mtp:2"
|
||||
thinking = "default"
|
||||
results = ["261023_demo_qwen3.8-27b_vllm_1x-arc-pro-b65"]
|
||||
+++
|
||||
|
||||
For a small team or an agent running parallel tool calls: the most tokens per second
|
||||
summed over all requests. A single request is slower than with the
|
||||
[single-user recipe](vllm-single-user.md).
|
||||
|
||||
<!-- cookbook:numbers -->
|
||||
> **Demo data.** These numbers are synthetic, made by `tools/demo/make_demo.py` to show the layout. Nothing here was measured.
|
||||
|
||||
**peak aggregate throughput: 294.1 t/s** · one submitter · 1 run
|
||||
|
||||
| metric | first run |
|
||||
|---|---|
|
||||
| decode at batch 1 (median) | 63.1 t/s |
|
||||
| time to first token (median) | 206 ms |
|
||||
| concurrency, aggregate | 1: 61 · 2: 118 · 4: 205 · 8: 294 t/s |
|
||||
| prefill | 2k: 1,497 · 8k: 1,109 · 16k: 915 t/s |
|
||||
| memory bandwidth reached | n/a: speculative decoding makes several tokens per pass over the weights |
|
||||
| decode energy | 3.30 J/token at 170 W |
|
||||
|
||||
| run | submitter | date | peak aggregate throughput | TTFT | report |
|
||||
|---|---|---|---|---|---|
|
||||
| `261023_demo_qwen3.8-27b_vllm_1x-arc-pro-b65` | demo | 2026-10-23 | 294.1 t/s | 206 ms | [html](../../../results/261023_demo_qwen3.8-27b_vllm_1x-arc-pro-b65/261023_demo_qwen3.8-27b_vllm_1x-arc-pro-b65.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 1 --pp 1 --quant w4a16 --kv fp16 --spec mtp:2 --thinking default \
|
||||
--submitter YOUR_NAME --server-cmd-file server-cmd.txt --full
|
||||
```
|
||||
<!-- /cookbook:numbers -->
|
||||
|
||||
## Requirements
|
||||
|
||||
Same as the [single-user recipe](vllm-single-user.md): an Arc Pro B65, Docker and the
|
||||
`RedHatAI/Qwen3.8-27B-INT4` checkpoint.
|
||||
|
||||
## Launch
|
||||
|
||||
```sh
|
||||
docker run --rm --name llm --device /dev/dri --ipc=host -v /models:/models -p 8000:8000 \
|
||||
intel/vllm:0.30.0-xpu@sha256:0000000000000000000000000000000000000000000000000000000000000000 \
|
||||
vllm serve /models/RedHatAI/Qwen3.8-27B-INT4 --served-model-name qwen3.8-27b \
|
||||
--dtype float16 --max-model-len 16384 --max-num-seqs 8 --max-num-batched-tokens 8192 \
|
||||
--gpu-memory-utilization 0.92 \
|
||||
--speculative-config '{"method":"mtp","num_speculative_tokens":2}' \
|
||||
--host 0.0.0.0 --port 8000
|
||||
```
|
||||
|
||||
## Why these flags
|
||||
|
||||
| flag | why |
|
||||
|---|---|
|
||||
| `--max-num-seqs 8` | up to 8 requests decode together |
|
||||
| `--max-model-len 16384` | 8 sequences need KV memory; a shorter context per request makes it fit |
|
||||
| `--max-num-batched-tokens 8192` | room for prefill chunks while others decode |
|
||||
| `--speculative-config` mtp, 2 tokens | in a batch, rejected drafts cost every sequence; 2 keeps the gain without the waste |
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- Single-request decode is lower than in the single-user recipe. That is the trade.
|
||||
- With more than 8 clients, requests wait in the queue: watch time to first token.
|
||||
Reference in new issue
Block a user