Should you quantize MiniCPM5-2B? On R9700, F16 and Q4_K_M are close under load
A 2B model in F16 is only a few GB, so memory is no issue. Do you still quantize?
It depends on use. On R9700 one request runs at 144.9 tok/s with Q4_K_M and 84.9 with F16; at 32 requests, 760 against 704, nearly the same.
The short answer: what to run on each card
- R9700: for one user, llama.cpp Q4_K_M at 144.9 tok/s; it also leads at 32 requests, 760 tok/s.
- Strix Halo: for one user, llama.cpp Q4_K_M at 93.5 tok/s; it also leads at 32 requests, 441 tok/s.
- W7900: for one user, llama.cpp Q4_K_M at 149.9 tok/s; it also leads at 32 requests, 713 tok/s.
Quantize for one user, keep the original for many
Single-request speed depends on weight bytes per token, so quantization pays off clearly.
Under heavy load the limit shifts from reading weights to compute and scheduling, and the gain shrinks. F16 then keeps full quality at nearly the same throughput.
W7900 agrees: for one request Q4_K_M 149.9 against F16 98.1; at 32, 713 against 576.
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.
| Device | Engine | Weights | GPUs | 1 req tok/s | 32 req tok/s | TTFT ms | Date |
|---|---|---|---|---|---|---|---|
| R9700 | llama.cpp | F16 | 1 | 84.9 | 704 | 72 | Nov 2026 |
| R9700 | llama.cpp | Q4_K_M | 1 | 144.9 | 760 | 67 | Nov 2026 |
| R9700 | llama.cpp | Q8_0 | 1 | 112.0 | 507 | 182 | Nov 2026 |
| Strix Halo | llama.cpp | F16 | 1 | 32.9 | 211 | 285 | Nov 2026 |
| Strix Halo | llama.cpp | Q4_K_M | 1 | 93.5 | 441 | 179 | Nov 2026 |
| Strix Halo | llama.cpp | Q8_0 | 1 | 67.2 | 412 | 169 | Nov 2026 |
| W7900 | llama.cpp | F16 | 1 | 98.1 | 576 | 99 | Nov 2026 |
| W7900 | llama.cpp | Q4_K_M | 1 | 149.9 | 713 | 85 | Nov 2026 |
| W7900 | llama.cpp | Q8_0 | 1 | 130.8 | 641 | 82 | Nov 2026 |
Run it in three steps on Radeon AI PRO R9700
This reproduces one row of the board exactly: R9700, llama.cpp, 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 openbmb/MiniCPM5-2B-GGUF MiniCPM5-2B-Q4_K_M.gguf --local-dir ~/models/MiniCPM5-2BStep 2: start the server
The image is pinned to the version we measured, and the flags are the same:
docker run -d --name minicpm5-2b \
--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 \
--entrypoint /bin/bash ghcr.io/inferstation/llama-rocm-r9700@sha256:3aca429eea682400c8b6539d6839cd1706bd7c5aa3d2d4bbd6b036cd7bbd559b \
-lc "exec llama-server -m /models/MiniCPM5-2B/MiniCPM5-2B-Q4_K_M.gguf -ngl 999 \
-fa on --host 0.0.0.0 --port 8000 -c 32768 -np 32 --cache-ram 0"Watch docker logs -f minicpm5-2b; 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.
Another way: R9700, llama.cpp, F16
This reproduces one row of the board exactly: R9700, llama.cpp, F16. 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).
Both setups use port 8000; stop the first one before switching (docker rm -f minicpm5-2b).
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 openbmb/MiniCPM5-2B-GGUF MiniCPM5-2B-F16.gguf --local-dir ~/models/MiniCPM5-2BStep 2: start the server
The image is pinned to the version we measured, and the flags are the same:
docker run -d --name minicpm5-2b-2 \
--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 \
--entrypoint /bin/bash ghcr.io/inferstation/llama-rocm-r9700@sha256:3aca429eea682400c8b6539d6839cd1706bd7c5aa3d2d4bbd6b036cd7bbd559b \
-lc "exec llama-server -m /models/MiniCPM5-2B/MiniCPM5-2B-F16.gguf -ngl 999 -fa on \
--host 0.0.0.0 --port 8000 -c 32768 -np 32 --cache-ram 0"Watch docker logs -f minicpm5-2b-2; 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.
Strix Halo (Radeon 8060S): Strix Halo, llama.cpp, Q4_K_M, 93.5 tok/s for one request, 441 tok/s at 32.
docker run -d --name minicpm5-2b \
--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 LD_LIBRARY_PATH=/app:/opt/rocm/lib \
--entrypoint /bin/bash ghcr.io/inferstation/llama-rocm-halo@sha256:00bbff0cae14fd6020294c01e6091b49f5b7e7fa2718e89be0a02ed40548a8ca \
-lc "exec llama-server -m /models/MiniCPM5-2B/MiniCPM5-2B-Q4_K_M.gguf -ngl 999 \
-fa on --host 0.0.0.0 --port 8000 -c 32768 -np 32"Radeon PRO W7900: W7900, llama.cpp, Q4_K_M, 149.9 tok/s for one request, 713 tok/s at 32.
docker run -d --name minicpm5-2b \
--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/inferstation/llama-rocm-w7900:commit-29b52d398b29 \
-lc "exec llama-server -m /models/MiniCPM5-2B/MiniCPM5-2B-Q4_K_M.gguf -ngl 999 \
-fa on --host 0.0.0.0 --port 8000 -c 32768 -np 32 --cache-ram 0"Things to watch
- 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.