Skip to content

LLMs, VLAs and speech-to-text on NPU

End-to-end inference of decoder-only LLMs, with text or image + text input, vision-language-action (VLA) policies and speech-to-text models on the AMD NPU2 via MLIR-AIR, with bf16 and 4-bit (Q4NX, Q4_0) weights. Models with an FLM link reimplement AMD NPU LLM designs originally developed by the FastFlowLM team, using the higher-level abstractions of the MLIR-AIR dialect; the link points to the original FastFlowLM code. Coverage and performance below are refreshed nightly. Per-model details and source are in programming_examples/llms/.

Nightly LLM Benchmark (NPU2)

End-to-end LLM inference performance on NPU2. Each row names the hardware it was measured on: the benchmark runner's rows are refreshed nightly, rows from other machines are measured offline. TTFT is time to first token (prefill latency); Decode is steady-state generation throughput.

Hardware

  • Krackan Point: AMD Ryzen AI 5 PRO 340 / Ryzen AI 7 PRO 350, NPU2
  • Strix Halo: AMD Ryzen AI Max+ 395, NPU2
  • Strix Point: AMD Ryzen AI 9 HX 370, NPU2

Verify (make verify): pass fail skipped.   — not measured.

Decode throughput vs context (tok/s)

Steady-state decode throughput at increasing KV-cache depth.

Model Hardware Weights 2k 8k 32k 128k KLD GSM8K MMLU Verify
gemma-3-4b-it (FLM, HF) Krackan Point Q4NX 21.01 15.56 7.53 2.41 0.0925 71 / 80 62 / 63
gemma-4-E2B-it (FLM, HF) Krackan Point Q4NX 35.91 33.66 27.09 14.98 66 / 68 61 / 61
gemma-4-E4B-it (FLM, HF) Krackan Point Q4NX 17.40 15.60 11.20 5.24 80 / 78 72 / 72
gpt-oss-20b (FLM, HF) Strix Point Q4NX, MXFP4 experts 16.58 13.68 8.02 3.02
Granite-3.3-2B (HF) Krackan Point Affine Q4 31.87 19.80 7.93 2.33 0.0397 61 / 55 55 / 58
LFM2-1.2B (FLM, HF) Krackan Point Q4_0 64.78 47.79 23.37 7.68 0.0011 53 / 67 55 / 56
Llama-3.1-8B-Instruct (FLM, HF) Krackan Point Q4NX 13.41 11.05 6.30 2.33 0.0137 80 / 81 68 / 69
Llama-3.2-1B (HF) Krackan Point bf16 7.70 3.94 1.01 0.16 0.0056 39 / 41 48 / 49
Llama-3.2-1B-Instruct (FLM, HF) Krackan Point Q4NX 66.72 48.76 23.48 7.68 0.0107 37 / 41 48 / 49
Llama-3.2-3B (HF) Krackan Point bf16 3.37 1.34 0.20 — 0.0031 75 / 76 65 / 65
Llama-3.2-3B-Instruct (FLM, HF) Krackan Point Q4NX 26.64 17.71 7.58 2.31 0.0109 72 / 77 64 / 65
Mistral-7B-Instruct-v0.3 (HF) Strix Halo Affine Q4 11.17 8.88 4.87 — 0.0115 46 / 51 58 / 61
OLMo2-1B (HF) Krackan Point Affine Q4 26.23 — — — 0.0152 56 / 63 42 / 42
OpenELM-1.1B (HF) Krackan Point Affine Q4 34.48 — — —
Phi-2 (HF) Krackan Point Affine Q4 6.78 — — — 0.0246 56 / 60 61 / 61
Phi-4-mini-instruct (FLM, HF) Krackan Point Q4NX 22.28 15.03 6.56 2.01 0.0274 81 / 81 68 / 68
Qwen2.5-0.5B (HF) Krackan Point bf16 9.45 4.99 1.56 0.24 0.0030 35 / 41 49 / 48
Qwen2.5-1.5B (HF) Krackan Point bf16 5.30 3.19 0.73 0.15 0.0019 69 / 62 63 / 63
Qwen2.5-3B (HF) Krackan Point bf16 3.60 1.82 0.45 0.09 0.0108 68 / 56 67 / 69
Qwen2.5-3B-Instruct (FLM, HF) Krackan Point Q4_0 21.22 15.58 7.57 2.49 0.0262 59 / 56 69 / 69
Qwen2.5-7B-Instruct (FLM, HF) Krackan Point Q4NX 12.81 10.21 5.64 2.02 0.0183 69 / 76 73 / 74
Qwen2.5-7B-Instruct (FLM, HF) Strix Halo Q4NX 11.02 8.66 4.69 1.55 0.0183 69 / 76 73 / 74
Qwen3.5-0.8B (FLM, HF) Krackan Point Q4NX 50.99 44.98 30.10 — 30 / 54 49 / 50
Qwen3.6-35B-A3B (FLM, HF) Strix Point Q4NX, Q4_K experts 18.27 16.51 11.84 5.56
Qwen3-0.6B (HF) Krackan Point bf16 4.92 1.90 0.36 — 0.0121 42 / 44 44 / 42
Qwen3-1.7B (HF) Krackan Point bf16 4.50 1.91 0.36 — 0.0120 63 / 67 59 / 59
Qwen3-4B (HF) Krackan Point bf16 2.47 1.10 0.21 — 0.0043 78 / 75 72 / 73
Qwen3-4B (FLM, HF) Krackan Point Q4NX 19.70 13.01 5.56 1.69 0.0306 80 / 75 72 / 73
Qwen3-8B (FLM, HF) Krackan Point Q4NX 12.06 9.17 4.70 1.59 0.0189 87 / 86 77 / 76
Qwen3-8B (FLM, HF) Strix Halo Q4NX 10.16 8.02 4.38 1.55 0.0189 87 / 86 77 / 76
Qwen3-Coder-30B-A3B-Instruct (HF) Strix Point Q4_K 20.17 14.27 6.54 2.07
SmolLM2-1.7B (HF) Krackan Point bf16 4.27 1.25 — — 0.0061 42 / 42 51 / 51
SmolLM3-3B (HF) Krackan Point Affine Q4 26.05 16.97 7.12 — 0.0236 70 / 71 60 / 63

— not swept at this context, or an expected failure.

Accuracy (the decode table's KLD, GSM8K and MMLU; the prefill table's KLD). The NPU is compared with the same model on the CPU (PyTorch): on wikitext-2 the way llama.cpp's llama-perplexity --kl-divergence does, and on benchmark questions. Measured offline; the NPU gives the same accuracy on every NPU2 machine. Hover over a number for its details.

  • KLD: KL divergence of the NPU's next-token distribution from the CPU's with the same weights (4-bit weights dequantized on the CPU); 0 means identical. It measures the NPU implementation alone.
  • GSM8K / MMLU: % correct, NPU / original bf16 checkpoint on the CPU, on the same questions (GSM8K 100, MMLU 570). For 4-bit models this includes the cost of the 4-bit weights.

Prefill latency vs prefill length (TTFT, ms)

Time to first token at increasing prefill length. A model with a fused prefill is timed on a prompt of exactly that many tokens, one build serving every length. A per-op prefill pads the prompt to the length its ELFs were built for, so each of its columns is a separate build and TTFT tracks that length rather than the number of real prompt tokens.

Model Hardware Weights 512 1k 2k 4k 8k 32k KLD Verify
d3-edge (FLM, HF) Krackan Point bf16 82 155 324 734 — —
d3-lite (FLM, HF) Krackan Point Q4NX 150 291 606 1286 — —
gemma-3-4b-it (FLM, HF) Krackan Point Q4NX 320 579 1169 2496 5272 25772 0.0255
gemma-4-E2B-it (FLM, HF) Krackan Point Q4NX 298 575 1215 2660 6107 43031
gemma-4-E4B-it (FLM, HF) Krackan Point Q4NX 492 895 1903 4107 8977 54668
gpt-oss-20b (FLM, HF) Strix Point Q4NX, MXFP4 experts 992 1464 2578 5695 — —
Granite-3.3-2B (HF) Krackan Point Affine Q4 286 575 1442 3920 — — 0.0048
LFM2-1.2B (FLM, HF) Krackan Point Q4_0 138 250 540 1250 3080 25982 0.0027
Llama-3.1-8B-Instruct (FLM, HF) Krackan Point Q4NX 576 1170 2594 6292 18681 178050 0.0021
Llama-3.2-1B (HF) Krackan Point bf16 255 478 883 1796 — — 0.0052
Llama-3.2-1B-Instruct (FLM, HF) Krackan Point Q4NX 123 238 583 1572 4688 55274 0.0035
Llama-3.2-3B (HF) Krackan Point bf16 613 1065 2175 4904 — — 0.0054
Llama-3.2-3B-Instruct (FLM, HF) Krackan Point Q4NX 282 554 1276 3358 9781 110759 0.0024
Mistral-7B-Instruct-v0.3 (HF) Strix Halo Affine Q4 1442 2746 5436 16494 — — 0.0055
OLMo2-1B (HF) Krackan Point Affine Q4 173 316 664 — — — 0.0038
OpenELM-1.1B (HF) Krackan Point Affine Q4 199 399 981 — — —
Phi-2 (HF) Krackan Point Affine Q4 364 705 1685 — — — 0.0257
Phi-4-mini-instruct (FLM, HF) Krackan Point Q4NX 323 638 1462 3851 11167 126644 0.0103
Qwen2.5-0.5B (HF) Krackan Point bf16 330 492 838 1498 — — 0.0071
Qwen2.5-1.5B (HF) Krackan Point bf16 641 1141 2146 4377 — — 0.0048
Qwen2.5-3B (HF) Krackan Point bf16 1201 2081 4062 8254 — — 0.0351
Qwen2.5-3B-Instruct (FLM, HF) Krackan Point Q4_0 290 540 1230 2993 7834 73957 0.0035
Qwen2.5-7B-Instruct (FLM, HF) Krackan Point Q4NX 565 1096 2197 4961 12383 107506 0.0472
Qwen2.5-7B-Instruct (FLM, HF) Strix Halo Q4NX 582 1046 2192 4970 12350 107296 0.0472
Qwen3.5-0.8B (FLM, HF) Krackan Point Q4NX 1556 2844 6067 12602 — —
Qwen3.6-35B-A3B (FLM, HF) Strix Point Q4NX, Q4_K experts 1256 1993 4242 8401 — —
Qwen3-0.6B (HF) Krackan Point bf16 383 673 1262 2682 — — 0.0130
Qwen3-1.7B (HF) Krackan Point bf16 508 925 1810 3735 — — 0.0170
Qwen3-4B (HF) Krackan Point bf16 1232 2409 4762 10205 — — 0.0161
Qwen3-4B (FLM, HF) Krackan Point Q4NX 375 762 1843 5089 15382 184479 0.0033
Qwen3-8B (FLM, HF) Krackan Point Q4NX 571 1187 2660 6570 18318 196089 0.0030
Qwen3-8B (FLM, HF) Strix Halo Q4NX 570 1183 2658 6588 18258 195830 0.0030
Qwen3-Coder-30B-A3B-Instruct (HF) Strix Point Q4_K 1100 1846 3454 8272 — —
SmolLM2-1.7B (HF) Krackan Point bf16 408 750 1489 3046 — — 0.0047
SmolLM3-3B (HF) Krackan Point Affine Q4 309 549 1228 2980 — — 0.0043

— not swept at this length, or an expected failure.

Image + text: time to first token vs image tokens (ms)

One image and the prompt "Describe this image.". Each budget column is the number of image tokens the image may take; the cell is the time to first token, which is the vision encoder plus the prefill. Decode is generation after the image, the range over the budgets.

ModelHardwareWeightsNumber of image tokensDecode (tok/s)MeasuredVerify
701402805601120
gemma-4-E2B-it (FLM, HF)Krackan PointQ4NX, bf16 vision3184858181620338434.5–35.72026-11-27
gemma-4-E4B-it (FLM, HF)Krackan PointQ4NX, bf16 vision4055819551833381517.3–18.22026-11-27

Speculative decoding

A draft model proposes a block of tokens and the target model verifies the block in one pass. Target only is the same target model decoding one token per pass. Both decode the same 20 prompts, 4 from each of gsm8k, math500, humaneval, mbpp, mt-bench, greedy, up to 2048 new tokens, prefill excluded. Prompts are 18–305 tokens. Throughput is each engine's total generated tokens divided by its total decode time over the requests in the row. The two engines use different matrix arithmetic (single-token GEMV vs batched verification), so their greedy outputs diverge and the generated token counts differ.

ModelHardwareDatasetTarget only (tok/s)Speculative (tok/s)SpeedupTokens / passAcceptanceVerify
Llama-3.1-8B-Instruct (HF)
draft: LLaMA3.1-8B-Instruct-DFlash-UltraChat, block 8
Krackan Pointgsm8k11.6027.232.35×4.180.45
math5009.6121.932.28×3.390.34
humaneval9.5731.103.25×4.960.57
mbpp9.6130.153.14×4.620.52
mt-bench9.6117.831.86×2.760.25
all 2010.0224.292.42×3.770.40
Llama-3.1-8B-Instruct (HF)
draft: LLaMA3.1-8B-Instruct-DFlash-UltraChat, block 16
Krackan Pointgsm8k12.0021.361.78×4.070.20
math5009.7218.111.86×3.480.17
humaneval9.4727.422.90×5.460.30
mbpp9.4024.822.64×4.720.25
mt-bench9.2914.081.52×2.710.11
all 2010.0119.931.99×3.850.19
Qwen3-4B (HF)
draft: Qwen3-4B-DFlash-b16, block 8
Krackan Pointgsm8k17.9680.884.50×5.270.61
math50017.8590.675.08×6.090.73
humaneval17.8877.654.34×5.210.61
mbpp17.9872.324.02×4.720.54
mt-bench17.9432.301.80×2.130.16
all 2017.9065.153.64×4.320.48
Qwen3-4B (HF)
draft: Qwen3-4B-DFlash-b16, block 16
Krackan Pointgsm8k17.9281.144.53×7.040.41
math50017.91100.755.63×9.040.54
humaneval17.9777.254.30×6.850.39
mbpp18.0373.694.09×6.280.35
mt-bench17.8627.711.55×2.370.09
all 2017.9363.363.53×5.520.30
Qwen3-8B (HF)
draft: Qwen3-8B-DFlash-b16, block 8
Krackan Pointgsm8k11.4133.772.96×5.690.67
math50010.1833.763.32×5.890.70
humaneval9.5029.613.12×5.130.59
mbpp9.4227.142.88×4.520.51
mt-bench9.5513.341.40×2.260.18
all 209.9725.992.61×4.450.49
Qwen3-8B (HF)
draft: Qwen3-8B-DFlash-b16, block 16
Krackan Pointgsm8k11.3533.652.96×7.320.42
math5009.9737.823.79×8.600.51
humaneval9.2531.073.36×7.030.40
mbpp9.3827.142.89×5.850.33
mt-bench9.3610.881.16×2.380.09
all 209.7925.252.58×5.600.31
Qwen3-Coder-30B-A3B-Instruct (HF)
draft: Qwen3-Coder-30B-A3B-DFlash, block 8
Strix Pointgsm8k21.8932.991.51×4.080.44
math50021.6938.121.76×4.580.51
humaneval21.4843.432.02×5.860.69
mbpp21.3441.631.95×5.810.69
mt-bench21.9212.560.57×1.440.06
all 2021.5435.291.64×4.530.50

Vision-Language-Action policies

Not autoregressive: these emit one action chunk per observation rather than a token stream, so there is no decode throughput and no context to sweep. Action chunk is the latency to the model's first usable output. Prefix is the token count the backbone attends over.

Model Hardware Prefix Action chunk (ms) Measured Verify
smolvla_base (HF) Krackan Point 241 614.3 2026-11-27
smolvla_base, all stages on NPU (HF) Krackan Point 241 374.8 2026-11-27

Speech-to-text

Each request transcribes one audio clip of at most 30 s. TTFT is from the audio to the first token; Decode is the generation throughput after it; Real-time factor is the request's time over the audio's duration (lower is faster).

Model Hardware TTFT (ms) Decode (tok/s) Real-time factor Measured Verify
whisper-large-v3-turbo (FLM, HF) Krackan Point 554.9 77.07 0.09 2026-11-27

📈 Performance history over time — per-nightly TTFT and decode throughput plotted per model.

Last updated 2026-11-27 · mlir-air 5f5683d · mlir-aie 07da5bc · llvm-aie 22.0.0.2026102001+4f5df13d