ci / check (push) Successful in 10s
Recipes, tried logs and result folders move under <gpu>/: recipes at <gpu>/<model>/<engine>-<profile>.md, tried logs at <gpu>/<model>/tried.md, runs at <gpu>/results/<run>/. build generates a README for every GPU in cookbook.toml and the GPU table in README.md. validate checks that a run sits in the folder of the GPU it ran on and warns about stray top-level folders. Format docs and host setup move to docs/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
91 lines
3.5 KiB
Markdown
91 lines
3.5 KiB
Markdown
+++
|
|
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](../../docs/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.
|