All posts
6 min read

Running LLMs with llama.cpp on AMD Radeon: 32 models, 229 measured setups, and how to pick a quantization

Enginellama.cppR9700Strix HaloW7900

llama.cpp is the simplest way to run local models on AMD GPUs: one GGUF file, one command, anything from 2-bit to BF16, and models too large for one card can be split across several.

The board has 229 measured llama.cpp setups covering 32 models (per device: R9700 64; Strix Halo 80; W7900 85). On a Strix Halo mini PC, for example, Qwen3-30B-A3B Q4_K_M decodes 67.5 tok/s for one request. Commands first, then quantization.

Run it in three steps: Qwen3-30B-A3B as the example

This reproduces one row of the board exactly: Strix Halo, 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 unsloth/Qwen3-30B-A3B-GGUF Qwen3-30B-A3B-Q4_K_M.gguf --local-dir ~/models/Qwen3-30B-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 engine-llamacpp \
  --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/llama-rocm-halo:commit-fe7c8b2414bb \
  -lc "exec llama-server -m /models/Qwen3-30B-A3B/Qwen3-30B-A3B-Q4_K_M.gguf -ngl 999 \
    -fa on --host 0.0.0.0 --port 8000 -c 32768 -np 32"

Watch docker logs -f engine-llamacpp; 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.

How we run it

llama.cpp runs GGUF on all three devices with the ROCm/HIP backend. Some recipes request full GPU offload with -ngl 999; others keep expert weights in system RAM. Strata also supports GGUF, so the file format alone does not identify the engine.

Every result is tied to a pinned image, never a moving tag. The Strix Halo models measured in July used an older llama.cpp build than the models added in November, so compare across those two groups with care. Each row's image and command are on the device's Recipes page.

What we see

  • Different GGUF quantizations run with the same server. For a model that exceeds available VRAM, check the recipe's weight placement and allow for system RAM.
  • Single-request speed follows the size of the weights, so quantization pays off directly. The table below shows the single-request decode rate of BF16 (or F16), Q8_0 and the 4-bit build for models that have all three on one card.
  • Total throughput at 32 requests grows less than with vLLM, and in some setups it falls after a peak at 4 or 16 requests; the model posts list those cases.

Quantization on one card

Single-request decode tok/s. The last column is the 4-bit build against BF16 or F16.

ModelDeviceBF16/F16Q8_04-bit4-bit format4-bit vs 16-bit
Qwen3-4BStrix Halo25.344.866.7Q4_K_M2.6x
Qwen3-4BW790067.892.0125.0Q4_K_M1.8x
Qwen3-8BStrix Halo11.925.540.1Q4_K_M3.4x
Qwen3-8BW790041.066.587.2Q4_K_M2.1x
Qwen3-14BStrix Halo7.714.423.5Q4_K_M3.0x
Qwen3-14BW790024.239.055.7Q4_K_M2.3x
Qwen3-32BStrix Halo3.46.510.8Q4_K_M3.2x
Qwen3-30B-A3BStrix Halo24.550.167.5Q4_K_M2.8x
Qwen3.6-27BStrix Halo4.27.611.9Q4_K_M2.9x
Qwen3.6-35B-A3BStrix Halo22.044.349.3UD-Q4_K_M2.2x
Qwen3.8-27BStrix Halo3.86.910.7UD-Q4_K_M2.8x
Gemma-4-26B-A4BStrix Halo21.639.643.3UD-Q4_K_M2.0x
Granite 4.2 8BR970030.945.778.2Q4_K_M2.5x
Granite 4.2 8BStrix Halo10.721.433.4Q4_K_M3.1x
Granite 4.2 8BW790037.258.376.6Q4_K_M2.1x
Granite 4.2 30BStrix Halo3.26.310.2Q4_K_M3.2x
LFM2.5-24B-A2BStrix Halo26.957.077.0UD-Q4_K_XL2.9x
LFM3-1.7BR9700115.2158.9210.1Q4_K_M1.8x
LFM3-1.7BStrix Halo45.688.5124.2Q4_K_M2.7x
LFM3-1.7BW7900115.7166.2191.1Q4_K_M1.7x
Ling-3.0-tinyR970092.5123.2135.4Q4_K_M1.5x
Ling-3.0-tinyStrix Halo52.086.0108.7Q4_K_M2.1x
Ling-3.0-tinyW790091.9103.9127.2Q4_K_M1.4x
MiMo-V2.6-Distill-Qwen-9BR970032.847.671.7Q4_K_M2.2x
MiMo-V2.6-Distill-Qwen-9BStrix Halo11.122.231.8Q4_K_M2.9x
MiMo-V2.6-Distill-Qwen-9BW790037.158.771.5Q4_K_M1.9x
Nemotron 3.5 Bolt E4BR970046.065.586.2UD-Q4_K_XL1.9x
Nemotron 3.5 Bolt E4BStrix Halo20.535.546.5UD-Q4_K_XL2.3x
Nemotron 3.5 Bolt E4BW790052.769.684.9UD-Q4_K_XL1.6x
Nemotron 3.5 Lightning 30B-A3BStrix Halo24.942.350.3Q4_02.0x
MiniCPM-V 4.7 1BR9700150.9191.2211.5Q4_K_M1.4x
MiniCPM-V 4.7 1BStrix Halo87.2143.9175.2Q4_K_M2.0x
MiniCPM-V 4.7 1BW7900163.7174.1183.8Q4_K_M1.1x
MiniCPM-V 4.7 35B-A3BStrix Halo20.340.052.4Q4_K_M2.6x
MiniCPM5-2BR970084.9112.0144.9Q4_K_M1.7x
MiniCPM5-2BStrix Halo32.967.293.5Q4_K_M2.8x
MiniCPM5-2BW790098.1130.8149.9Q4_K_M1.5x

Every llama.cpp result

Each model has its own post with all of its deployments on every engine.

ModelDeviceWeightsGPUs1 req tok/s32 req tok/s
DeepSeek-V4-Flash-0731R9700UD-Q2_K_XL419.676
DeepSeek-V4-Flash-0731Strix HaloUD-Q2_K_XL111.532
DeepSeek-V4-Flash-0731W7900UD-Q2_K_XL418.954
GLM-5.3-FlashR9700UD-IQ2_XXS421.958
GLM-5.3-FlashW7900UD-IQ2_XXS421.767
Gemma-4-26B-A4BStrix HaloBF16121.6144
Gemma-4-26B-A4BStrix HaloQ8_0139.6160
Gemma-4-26B-A4BStrix HaloUD-Q4_K_M143.3207
Gemma-4-26B-A4BW7900Q8_0163.7247
Gemma-4-26B-A4BW7900UD-Q4_K_M168.1261
Gemma-4-26B-A4BW7900BF16246.4185
Granite 4.2 30BR9700Q4_K_M126.7122
Granite 4.2 30BR9700Q8_0214.984
Granite 4.2 30BR9700BF1649.7118
Granite 4.2 30BStrix HaloBF1613.224
Granite 4.2 30BStrix HaloQ4_K_M110.247
Granite 4.2 30BStrix HaloQ8_016.342
Granite 4.2 30BW7900Q4_K_M127.7106
Granite 4.2 30BW7900Q8_0120.394
Granite 4.2 30BW7900BF16212.181
Granite 4.2 8BR9700BF16130.9303
Granite 4.2 8BR9700Q4_K_M178.2351
Granite 4.2 8BR9700Q8_0145.7185
Granite 4.2 8BStrix HaloBF16110.785
Granite 4.2 8BStrix HaloQ4_K_M133.4160
Granite 4.2 8BStrix HaloQ8_0121.4143
Granite 4.2 8BW7900BF16137.2254
Granite 4.2 8BW7900Q4_K_M176.6310
Granite 4.2 8BW7900Q8_0158.3295
LFM2.5-24B-A2BR9700Q8_01113.6396
LFM2.5-24B-A2BR9700UD-Q4_K_XL1132.3475
LFM2.5-24B-A2BR9700BF16272.0280
LFM2.5-24B-A2BStrix HaloBF16126.982
LFM2.5-24B-A2BStrix HaloQ8_0157.0217
LFM2.5-24B-A2BStrix HaloUD-Q4_K_XL177.0282
LFM2.5-24B-A2BW7900Q8_01108.7394
LFM2.5-24B-A2BW7900UD-Q4_K_XL1115.0453
LFM2.5-24B-A2BW7900BF16274.6248
LFM3-1.7BR9700BF161115.2690
LFM3-1.7BR9700Q4_K_M1210.1756
LFM3-1.7BR9700Q8_01158.9567
LFM3-1.7BStrix HaloBF16145.6257
LFM3-1.7BStrix HaloQ4_K_M1124.2559
LFM3-1.7BStrix HaloQ8_0188.5494
LFM3-1.7BW7900BF161115.7575
LFM3-1.7BW7900Q4_K_M1191.1748
LFM3-1.7BW7900Q8_01166.2695
Ling-3.0-flashR9700Q4_K_M444.3105
Ling-3.0-flashStrix HaloQ4_K_M130.083
Ling-3.0-flashW7900Q4_K_M247.0157
Ling-3.0-tinyR9700BF16192.5303
Ling-3.0-tinyR9700Q4_K_M1135.4560
Ling-3.0-tinyR9700Q8_01123.2497
Ling-3.0-tinyStrix HaloBF16152.0216
Ling-3.0-tinyStrix HaloQ4_K_M1108.7348
Ling-3.0-tinyStrix HaloQ8_0186.0309
Ling-3.0-tinyW7900BF16191.9401
Ling-3.0-tinyW7900Q4_K_M1127.2532
Ling-3.0-tinyW7900Q8_01103.9496
Llama-3.1-8B-InstructStrix HaloBF16112.1190
Llama-3.1-8B-InstructStrix HaloQ4_K_M141.1454
Llama-3.1-8B-InstructW7900BF16143.1295
Llama-3.1-8B-InstructW7900Q4_K_M192.5361
MiMo-V2.5Strix HaloUD-Q2_K_XL119.239
MiMo-V2.6-Distill-Qwen-9BR9700BF16132.8156
MiMo-V2.6-Distill-Qwen-9BR9700Q4_K_M171.7225
MiMo-V2.6-Distill-Qwen-9BR9700Q8_0147.6177
MiMo-V2.6-Distill-Qwen-9BStrix HaloBF16111.176
MiMo-V2.6-Distill-Qwen-9BStrix HaloQ4_K_M131.8132
MiMo-V2.6-Distill-Qwen-9BStrix HaloQ8_0122.2123
MiMo-V2.6-Distill-Qwen-9BW7900BF16137.1199
MiMo-V2.6-Distill-Qwen-9BW7900Q4_K_M171.5232
MiMo-V2.6-Distill-Qwen-9BW7900Q8_0158.7234
MiMo-V2.6-FlashR9700IQ2_XS_M416.424
MiMo-V2.6-FlashW7900IQ2_XS_M425.137
MiniCPM-V 4.7 1BR9700F161150.9812
MiniCPM-V 4.7 1BR9700Q4_K_M1211.5731
MiniCPM-V 4.7 1BR9700Q8_01191.2711
MiniCPM-V 4.7 1BStrix HaloF16187.2416
MiniCPM-V 4.7 1BStrix HaloQ4_K_M1175.2587
MiniCPM-V 4.7 1BStrix HaloQ8_01143.9541
MiniCPM-V 4.7 1BW7900F161163.7729
MiniCPM-V 4.7 1BW7900Q4_K_M1183.8842
MiniCPM-V 4.7 1BW7900Q8_01174.1788
MiniCPM-V 4.7 35B-A3BR9700Q4_K_M182.8257
MiniCPM-V 4.7 35B-A3BR9700Q8_0266.0188
MiniCPM-V 4.7 35B-A3BR9700F16447.3143
MiniCPM-V 4.7 35B-A3BStrix HaloF16120.369
MiniCPM-V 4.7 35B-A3BStrix HaloQ4_K_M152.4148
MiniCPM-V 4.7 35B-A3BStrix HaloQ8_0140.0131
MiniCPM-V 4.7 35B-A3BW7900Q4_K_M180.2257
MiniCPM-V 4.7 35B-A3BW7900Q8_0169.6252
MiniCPM-V 4.7 35B-A3BW7900F16250.8181
MiniCPM5-2BR9700F16184.9704
MiniCPM5-2BR9700Q4_K_M1144.9760
MiniCPM5-2BR9700Q8_01112.0507
MiniCPM5-2BStrix HaloF16132.9211
MiniCPM5-2BStrix HaloQ4_K_M193.5441
MiniCPM5-2BStrix HaloQ8_0167.2412
MiniCPM5-2BW7900F16198.1576
MiniCPM5-2BW7900Q4_K_M1149.9713
MiniCPM5-2BW7900Q8_01130.8641
Nemotron 3.5 Bolt 74B-A9BR9700UD-Q4_K_XL234.6102
Nemotron 3.5 Bolt 74B-A9BR9700Q8_0429.884
Nemotron 3.5 Bolt 74B-A9BStrix HaloQ8_0116.144
Nemotron 3.5 Bolt 74B-A9BStrix HaloUD-Q4_K_XL118.344
Nemotron 3.5 Bolt 74B-A9BW7900Q8_0235.3113
Nemotron 3.5 Bolt 74B-A9BW7900UD-Q4_K_XL239.0117
Nemotron 3.5 Bolt E4BR9700BF16146.0438
Nemotron 3.5 Bolt E4BR9700Q8_0165.5340
Nemotron 3.5 Bolt E4BR9700UD-Q4_K_XL186.2433
Nemotron 3.5 Bolt E4BStrix HaloBF16120.5184
Nemotron 3.5 Bolt E4BStrix HaloQ8_0135.5256
Nemotron 3.5 Bolt E4BStrix HaloUD-Q4_K_XL146.5294
Nemotron 3.5 Bolt E4BW7900BF16152.7402
Nemotron 3.5 Bolt E4BW7900Q8_0169.6415
Nemotron 3.5 Bolt E4BW7900UD-Q4_K_XL184.9455
Nemotron 3.5 Lightning 30B-A3BR9700Q4_0193.2186
Nemotron 3.5 Lightning 30B-A3BR9700Q8_0281.3274
Nemotron 3.5 Lightning 30B-A3BR9700BF16457.2227
Nemotron 3.5 Lightning 30B-A3BStrix HaloBF16124.996
Nemotron 3.5 Lightning 30B-A3BStrix HaloQ4_0150.3139
Nemotron 3.5 Lightning 30B-A3BStrix HaloQ8_0142.3121
Nemotron 3.5 Lightning 30B-A3BW7900Q4_0190.4261
Nemotron 3.5 Lightning 30B-A3BW7900Q8_0184.6244
Nemotron 3.5 Lightning 30B-A3BW7900BF16260.0218
Nemotron 3.5 Super VL 120B-A12BR9700UD-Q4_K_XL427.277
Nemotron 3.5 Super VL 120B-A12BStrix HaloUD-Q4_K_XL114.134
Nemotron 3.5 Super VL 120B-A12BW7900UD-Q4_K_XL432.296
Ornith-1.5-35B-A3BR9700Q4_K_M171.8197
Qwen3-14BStrix HaloBF1617.7135
Qwen3-14BStrix HaloQ4_K_M123.5252
Qwen3-14BStrix HaloQ8_0114.4173
Qwen3-14BW7900BF16124.2166
Qwen3-14BW7900Q4_K_M155.7213
Qwen3-14BW7900Q8_0139.0200
Qwen3-30B-A3BStrix HaloBF16124.5148
Qwen3-30B-A3BStrix HaloQ4_K_M167.5387
Qwen3-30B-A3BStrix HaloQ8_0150.1264
Qwen3-30B-A3BW7900Q4_K_M1100.5392
Qwen3-30B-A3BW7900Q8_0180.9366
Qwen3-30B-A3BW7900BF16257.9255
Qwen3-32BStrix HaloBF1613.463
Qwen3-32BStrix HaloQ4_K_M110.8132
Qwen3-32BStrix HaloQ8_016.586
Qwen3-32BW7900Q4_K_M126.3102
Qwen3-32BW7900Q8_0118.595
Qwen3-32BW7900BF16211.094
Qwen3-4BR9700Q4_K_M1123.8565
Qwen3-4BStrix HaloBF16125.3331
Qwen3-4BStrix HaloQ4_K_M166.7552
Qwen3-4BStrix HaloQ8_0144.8413
Qwen3-4BW7900BF16167.8438
Qwen3-4BW7900Q4_K_M1125.0491
Qwen3-4BW7900Q8_0192.0430
Qwen3-8BStrix HaloBF16111.9176
Qwen3-8BStrix HaloQ4_K_M140.1413
Qwen3-8BStrix HaloQ8_0125.5304
Qwen3-8BW7900BF16141.0268
Qwen3-8BW7900Q4_K_M187.2342
Qwen3-8BW7900Q8_0166.5322
Qwen3.6-27BR9700Q4_K_M124.169
Qwen3.6-27BR9700BF16210.644
Qwen3.6-27BR9700Q8_0215.452
Qwen3.6-27BStrix HaloBF1614.223
Qwen3.6-27BStrix HaloQ4_K_M111.942
Qwen3.6-27BStrix HaloQ8_017.637
Qwen3.6-27BW7900Q4_K_M126.184
Qwen3.6-27BW7900Q8_0120.084
Qwen3.6-27BW7900BF16212.483
Qwen3.6-35B-A3BR9700UD-Q4_K_M166.1174
Qwen3.6-35B-A3BR9700UD-Q4_K_XL165.1178
Qwen3.6-35B-A3BR9700Q8_0257.5153
Qwen3.6-35B-A3BR9700BF16443.599
Qwen3.6-35B-A3BStrix HaloBF16122.094
Qwen3.6-35B-A3BStrix HaloQ8_0144.3142
Qwen3.6-35B-A3BStrix HaloUD-Q4_K_M149.3165
Qwen3.6-35B-A3BW7900Q8_0167.6246
Qwen3.6-35B-A3BW7900UD-Q4_K_M176.3259
Qwen3.6-35B-A3BW7900BF16249.5170
Qwen3.8-27BR9700UD-Q4_K_M123.058
Qwen3.8-27BR9700BF16210.647
Qwen3.8-27BR9700Q8_0215.350
Qwen3.8-27BStrix HaloBF1613.815
Qwen3.8-27BStrix HaloQ8_016.922
Qwen3.8-27BStrix HaloUD-Q4_K_M110.725
Qwen3.8-27BW7900Q8_0120.185
Qwen3.8-27BW7900UD-Q4_K_M127.681
Qwen3.8-27BW7900BF16212.484
Qwen3.8-Flash-NextR9700UD-IQ1_M (Unsloth Dynamic v3.1)111.223
Qwen3.8-Flash-NextR9700UD-IQ2_XS (Unsloth Dynamic v3.1)19.920
Qwen3.8-Flash-NextR9700UD-IQ4_XS17.810
Qwen3.8-Flash-NextR9700UD-IQ4_XS (Unsloth Dynamic v3.1)18.311
Qwen3.8-Flash-NextR9700UD-Q2_0 (Unsloth Dynamic v3.1)113.224
Qwen3.8-Flash-NextR9700UD-Q2_K_XL (Unsloth Dynamic v3.1)16.912
Qwen3.8-Flash-NextR9700UD-Q5_K_XL17.815
Qwen3.8-Flash-NextR9700UD-Q6_K_XL15.415
Qwen3.8-Flash-NextR9700UD-Q3_K_XL229.475
Qwen3.8-Flash-NextR9700UD-Q3_K_XL430.463
Qwen3.8-Flash-NextStrix HaloUD-IQ1_M (Unsloth Dynamic v3.1)121.451
Qwen3.8-Flash-NextStrix HaloUD-IQ2_XS (Unsloth Dynamic v3.1)120.349
Qwen3.8-Flash-NextStrix HaloUD-IQ3_XXS (Unsloth Dynamic v3.1)120.947
Qwen3.8-Flash-NextStrix HaloUD-IQ4_XS119.848
Qwen3.8-Flash-NextStrix HaloUD-IQ4_XS (Unsloth Dynamic v3.1)120.648
Qwen3.8-Flash-NextStrix HaloUD-Q2_0 (Unsloth Dynamic v3.1)121.251
Qwen3.8-Flash-NextStrix HaloUD-Q2_K_XL (Unsloth Dynamic v3.1)120.651
Qwen3.8-Flash-NextStrix HaloUD-Q3_K_XL120.848
Qwen3.8-Flash-NextStrix HaloUD-Q3_K_XL (Unsloth Dynamic v3.1)120.848
Qwen3.8-Flash-NextW7900Q8_015.815
Qwen3.8-Flash-NextW7900UD-IQ1_M (Unsloth Dynamic v3.1)110.035
Qwen3.8-Flash-NextW7900UD-IQ2_XS (Unsloth Dynamic v3.1)19.428
Qwen3.8-Flash-NextW7900UD-IQ3_XXS (Unsloth Dynamic v3.1)19.226
Qwen3.8-Flash-NextW7900UD-IQ4_XS18.222
Qwen3.8-Flash-NextW7900UD-IQ4_XS (Unsloth Dynamic v3.1)18.423
Qwen3.8-Flash-NextW7900UD-Q2_0 (Unsloth Dynamic v3.1)110.232
Qwen3.8-Flash-NextW7900UD-Q2_K_XL (Unsloth Dynamic v3.1)19.329
Qwen3.8-Flash-NextW7900UD-Q3_K_XL (Unsloth Dynamic v3.1)18.724
Qwen3.8-Flash-NextW7900UD-Q4_K_XL17.020
Qwen3.8-Flash-NextW7900UD-Q5_K_XL16.418
Qwen3.8-Flash-NextW7900UD-Q6_K_XL16.216
Qwen3.8-Flash-NextW7900UD-Q3_K_XL430.3111
Qwen3.8-Flash-NextW7900UD-Q4_K_XL429.0109
Qwen4-35B-A3BR9700UD-Q4_K_M252.9145
Qwen4-35B-A3BR9700Q8_0450.8176
Qwen4-35B-A3BStrix HaloQ8_0133.0118
Qwen4-35B-A3BStrix HaloUD-Q4_K_M135.2129
Qwen4-35B-A3BW7900UD-Q4_K_M153.8211
Qwen4-35B-A3BW7900Q8_0249.9236
Step-3.5-FlashStrix HaloQ4_K_S123.5118

Model posts

Method

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.