All posts
4 min read

Running a diffusion language model on AMD Radeon: DiffusionGemma measured and deployed

ModelDiffusionGemma-26B-A4BStrix HaloW7900vLLM (main)

Most language models emit one token after another. DiffusionGemma refines a whole block of tokens over several passes, much like an image diffusion model removes noise.

We ran it on Strix Halo and W7900 with vLLM's main branch. On W7900 a single request decodes 31.2 tok/s, but the first token takes 4.1 seconds.

Why the first token is slow

Streaming has to wait for the first block to finish refining before any token appears, so time to first token is far above a normal model. After that a whole block arrives at once, and average speed is fine.

It suits generating a complete passage, such as rewriting or summarizing, not chat that must answer instantly.

Why concurrency stalls

Beyond 4 concurrent requests, total throughput barely grows: 35 tok/s at 32 on W7900. The W7900 server was started with at most 4 sequences, a conservative setting for the current implementation.

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
Strix HalovLLM (main)AWQ-INT418.712—Jul 2026
Strix HalovLLM (main)BF1617.713—Jul 2026
W7900vLLM (main)AWQ-INT4131.2354,100Nov 2026

Run it in three steps on Strix Halo (Radeon 8060S)

This reproduces one row of the board exactly: Strix Halo, vLLM (main), AWQ-INT4. 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 cyankiwi/diffusiongemma-26B-A4B-it-AWQ-INT4 --local-dir ~/models/diffusiongemma-26B-A4B-it-AWQ-INT4

Step 2: start the server

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

docker run -d --name diffusiongemma-26b-a4b \
  --device /dev/kfd --device /dev/dri --group-add video --group-add render \
  --security-opt seccomp=unconfined --ipc host \
  -v ~/models:/models -p 8000:8000 \
  --entrypoint /bin/bash ghcr.io/inferstation/vllm-rocm-halo-main:commit-92221485aaaa \
  -lc "exec vllm serve /models/diffusiongemma-26B-A4B-it-AWQ-INT4 \
    --served-model-name diffawq --host 0.0.0.0 --port 8000 --max-model-len 896 \
    --max-num-seqs 4 --gpu-memory-utilization 0.6 --generation-config vllm \
    --hf-overrides '{\"diffusion_sampler\":\"entropy_bound\",\"diffusion_entropy_bound\":0.1}' \
    --diffusion-config '{\"canvas_length\":256}'"

Watch docker logs -f diffusiongemma-26b-a4b; the server is up when it prints “Application startup complete”.

Step 3: send a request

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "diffawq", "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 PRO W7900: W7900, vLLM (main), AWQ-INT4, 31.2 tok/s for one request, 35 tok/s at 32.

docker run -d --name diffusiongemma-26b-a4b \
  --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 \
  --entrypoint /bin/bash ghcr.io/inferstation/vllm-rocm-w7900-main:commit-9740f70413d3 \
  -lc "exec vllm serve /models/diffusiongemma-26B-A4B-it-AWQ-INT4 \
    --served-model-name diffawq --host 0.0.0.0 --port 8000 --max-model-len 896 \
    --max-num-seqs 4 --gpu-memory-utilization 0.6 --generation-config vllm \
    --hf-overrides '{\"diffusion_sampler\":\"entropy_bound\",\"diffusion_entropy_bound\":0.1}' \
    --diffusion-config '{\"canvas_length\":256}'"

Things to watch

  • It needs vLLM's main branch; release vLLM images cannot run it. The images we measured on both devices are public on InferStation; the command below uses the exact image we tested.
  • --max-model-len 896 in the vLLM command fits our test load only. Raise it for real use; memory use grows with it.
  • 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.