llamaperf

Qwen3 4B

on M4 16GB · llama.cpp

Apple hardware
Nov 22, 2026
Throughput
33.4 t/s gen · 355.8 tokens/s prompt processing (prefill)Prompt processing is how fast the input is read, not how long you wait for the first word. How to measure time to first token.
Quant
Q4_K_M (GGUF)
System RAM
16 GB

Summary

User reports Qwen3-4B at 33.40 t/s generation and 355.79 t/s prompt processing on an M4 16GB MacBook Air. Setup is llama.cpp build 11960 with Q4_K_M GGUF, all layers on the Metal GPU, flash attention auto, 4 threads, 5 repetitions. llama-bench run with pp512 and tg128; the 2.32 GiB model ran on a fanless machine with one request and no speculative decoding.

Download this model

Qwen3 4B on Hugging Face in the quant this report ran, Q4_K_M. The report doesn't say whose upload it used, so these are the most downloaded ones.

Compare this run

Medians of plain runs: one device, one request, no speculative decoding, the whole model in the device's memory. The report above is one setup, so read it beside them and not as one of them.

Qwen3 4B at 4-bit by hardware

Bars are medians on one scale, 0 to 186.0 tokens/s. Each dot is one run and opens its report. Press ▶ to watch text arrive at a row's speed.

Models most run on the M4 16GB

Bars are medians on one scale, 0 to 64.0 tokens/s. Each dot is one run and opens its report. Press ▶ to watch text arrive at a row's speed.

Everything reported on the M4 16GB →Every Qwen3 report →Estimate Qwen3 on this card →