All posts
5 min read

Qwen4-35B-A3B on Radeon on day one: only llama.cpp runs it, 53.8 tok/s on one W7900

ModelQwen4-35B-A3BR9700Strix HaloW7900llama.cpp

On release day we tried llama.cpp, vLLM, SGLang and Strata with Qwen4-35B-A3B on Strix Halo, W7900 and R9700. Only llama.cpp ran it; it had merged Qwen4 support the day before.

For one request, one W7900 with UD-Q4_K_M delivered 53.8 tok/s, two R9700s 52.9 and Strix Halo 35.2.

The other engines on day one

Strata: the latest release does not support Qwen4 yet.

vLLM: the official ROCm image loads the FP8 weights on Strix Halo, then fails after compilation with device kernel image is invalid; some kernels in the image have no gfx1151 build. The image notes only cover Instinct MI350X/MI355X, so we did not try W7900 or R9700.

SGLang: the official AMD image is for MI350X/MI355X only.

8-bit costs little, and one W7900 is enough

On Strix Halo, Q8_0 delivered 33.0 tok/s for one request and UD-Q4_K_M 35.2; at 32 requests the totals were 118 and 129 tok/s. Only about 3B parameters are active per token, so bit width barely moves speed. These runs did not test answer quality.

One W7900 with UD-Q4_K_M delivered 53.8 tok/s for one request; two with Q8_0 delivered 49.9. At 32 requests two cards reached 236 in total and one card 211. For a single user, one card is enough.

Each R9700 has 32GB, so Q8_0 needs four cards: 50.8 tok/s for one request and 176 in total at 32.

What we have not explained yet

Two R9700s delivered 145 tok/s in total at 32 requests, less than 186 at 16. The R9700 test machine is shared with other teams and other jobs were running on it during this run, so the number may be low. Two reruns also hit heavy load from other jobs; we will measure again when the machine is idle.

Measured results

Bold rows have the highest single-request throughput on each device. The 32-request column is total throughput; TTFT is time to first token for one request.

DeviceEngineWeightsGPUs1 req tok/s32 req tok/sTTFT msDate
R9700llama.cppUD-Q4_K_M252.9145287Dec 2026
R9700llama.cppQ8_0450.8176314Dec 2026
Strix Halollama.cppQ8_0133.0118618Dec 2026
Strix Halollama.cppUD-Q4_K_M135.2129561Dec 2026
W7900llama.cppUD-Q4_K_M153.8211311Dec 2026
W7900llama.cppQ8_0249.9236329Dec 2026

Run it in three steps on Radeon PRO W7900

This reproduces one row of the board exactly: W7900, llama.cpp, UD-Q4_K_M. You need a Linux machine with the ROCm driver and Docker, and your user must be able to open /dev/kfd and /dev/dri (usually by joining the video and render groups).

Step 1: download the weights

pipx install huggingface_hub  # or pip install -U huggingface_hub inside a venv
# optional mirror: export HF_ENDPOINT=https://hf-mirror.com
hf download unsloth/Qwen4-35B-A3B-GGUF --include "UD-Q4_K_M/*" --local-dir ~/models/Qwen4-35B-A3B

Step 2: start the server

The image is pinned to the version we measured, and the flags are the same:

docker run -d --name qwen4-35b-a3b \
  --device /dev/kfd --device /dev/dri --group-add video --group-add render \
  --security-opt seccomp=unconfined --ipc host \
  -v ~/models:/models -p 8000:8000 \
  -e HIP_VISIBLE_DEVICES=0 -e LD_LIBRARY_PATH=/app:/opt/rocm/lib -e HSA_NO_SCRATCH_RECLAIM=1 -e HIP_FORCE_DEV_KERNARG=1 \
  --entrypoint /bin/bash ghcr.io/radeon-arena/halo-llamacpp@sha256:bb98c00c8e1cdbf2a9b6d563d2964e5bcbf2852762610e3ea64b6643cdb56ab2 \
  -lc "exec llama-server \
    -m /models/Qwen4-35B-A3B/UD-Q4_K_M/Qwen4-35B-A3B-UD-Q4_K_M-00001-of-00002.gguf \
    -ngl 999 -fa on --host 0.0.0.0 --port 8000 -c 32768 -np 32 --cache-ram 0"

Watch docker logs -f qwen4-35b-a3b; the server is up when it prints “server is listening”.

Step 3: send a request

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "local", "messages": [{"role": "user", "content": "Introduce yourself in one sentence."}], "max_tokens": 128}'

The answer is in choices[0].message.content. The endpoint is OpenAI-compatible, so Open WebUI, Cherry Studio or any agent framework works once you point it at http://localhost:8000/v1.

On other cards

These are the fastest single-request setups with reproduction steps on the other devices. Follow the matching recipe for each engine's weights and image.

Radeon AI PRO R9700: R9700 x2, llama.cpp, UD-Q4_K_M, 52.9 tok/s for one request, 145 tok/s at 32.

# build once
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git checkout 59b716523f1b
HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" \
  cmake -S . -B build -DGGML_HIP=ON -DGPU_TARGETS=gfx1201 -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j

HIP_VISIBLE_DEVICES=0,1 ./build/bin/llama-server \
  -m ~/models/Qwen4-35B-A3B/UD-Q4_K_M/Qwen4-35B-A3B-UD-Q4_K_M-00001-of-00002.gguf \
  -ngl 999 -fa on --host 0.0.0.0 --port 8000 -c 32768 -np 32 --cache-ram 0

Strix Halo (Radeon 8060S): Strix Halo, llama.cpp, UD-Q4_K_M, 35.2 tok/s for one request, 129 tok/s at 32.

# build once
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git checkout 59b716523f1b
HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" \
  cmake -S . -B build -DGGML_HIP=ON -DGPU_TARGETS=gfx1151 -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release -j

./build/bin/llama-server \
  -m ~/models/Qwen4-35B-A3B/UD-Q4_K_M/Qwen4-35B-A3B-UD-Q4_K_M-00001-of-00002.gguf \
  -ngl 999 -fa on --host 0.0.0.0 --port 8000 -c 32768 -np 32

Things to watch

  • llama.cpp needs a build that includes Qwen4 support; we used commit 59b7165.
  • Multi-card setups need every card visible: set HIP_VISIBLE_DEVICES to 0,1 or 0,1,2,3 to match the card count.
  • If you get a permission error on /dev/kfd, add your user to the render and video groups and log in again.

Next steps

Every measured row's image and full command is on the Recipes pages; copy from there for other models and cards:

Deploying with a coding agent such as Claude Code or Codex? Have it call the AMD GPU Support Agent first.

How we measured

How we measure: llama-benchy sends streaming requests with a 512-token prompt and 128 generated tokens to the server's OpenAI-compatible endpoint, at 1, 4, 16 and 32 concurrent requests. Each point is the median of three runs after a warm-up. Prompts are text only.

Both throughput columns divide the total output tokens by elapsed wall time, including the wait for the first token. At 32 requests this is the total across all users, not a per-user streaming rate. TTFT is time to first token for one request. Some July 2026 runs used an earlier prompt policy, so their TTFT is not shown.

The leaderboard links each result to its device, weights and launch recipe. Compare like configurations; a change in both engine and quantization does not isolate the effect of either one.