llamaperf

llama.cpp benchmarks

The C/C++ inference runtime behind the GGUF format for quantized open-weight LLMs.

398 community reports

llama.cpp results by GPU

Hardware with reported llama.cpp results, with each report's model, quant and speed, newest first. Runs on several cards, with speculative decoding, with batched requests or with part of the model in system RAM say so, since each describes a different setup.

llama.cpp on M4 Max 128GB33 reports

All llama.cpp results on the M4 Max 128GBFilter llama.cpp reports on the M4 Max 128GB

llama.cpp on NVIDIA RTX 5060 Ti 16GB29 reports

All llama.cpp results on the NVIDIA RTX 5060 Ti 16GBFilter llama.cpp reports on the NVIDIA RTX 5060 Ti 16GB

llama.cpp on AMD RX 7900 XTX25 reports

All llama.cpp results on the AMD RX 7900 XTXFilter llama.cpp reports on the AMD RX 7900 XTX

llama.cpp on Intel Arc Pro B7012 reports

All llama.cpp results on the Intel Arc Pro B70Filter llama.cpp reports on the Intel Arc Pro B70

llama.cpp on NVIDIA RTX 40806 reports

All llama.cpp results on the NVIDIA RTX 4080Filter llama.cpp reports on the NVIDIA RTX 4080

llama.cpp on NVIDIA RTX 50705 reports

Filter llama.cpp reports on the NVIDIA RTX 5070

llama.cpp on AMD Radeon Pro V620 32GB4 reports

Filter llama.cpp reports on the AMD Radeon Pro V620 32GB

llama.cpp on AMD RX 6700 XT4 reports

Filter llama.cpp reports on the AMD RX 6700 XT

llama.cpp on AMD RX 9060 XT 16GB4 reports

Filter llama.cpp reports on the AMD RX 9060 XT 16GB

llama.cpp on AMD RX 90704 reports

Filter llama.cpp reports on the AMD RX 9070

llama.cpp on NVIDIA RTX 4060 Laptop 8GB4 reports

Filter llama.cpp reports on the NVIDIA RTX 4060 Laptop 8GB

llama.cpp on NVIDIA RTX 4060 Ti 16GB4 reports

Filter llama.cpp reports on the NVIDIA RTX 4060 Ti 16GB

llama.cpp on AMD RX 7900 GRE 16GB3 reports

Filter llama.cpp reports on the AMD RX 7900 GRE 16GB

llama.cpp on NVIDIA RTX 40703 reports

Filter llama.cpp reports on the NVIDIA RTX 4070

llama.cpp on NVIDIA RTX A2000 12GB3 reports

Filter llama.cpp reports on the NVIDIA RTX A2000 12GB

llama.cpp on M5 Pro 64GB2 reports

Filter llama.cpp reports on the M5 Pro 64GB

llama.cpp on NVIDIA P102-1002 reports

Filter llama.cpp reports on the NVIDIA P102-100

llama.cpp on NVIDIA RTX Pro 4000 Blackwell2 reports

Filter llama.cpp reports on the NVIDIA RTX Pro 4000 Blackwell

llama.cpp, GPU not identified125 reports

llama.cpp runs open-weight LLMs on your own hardware. It introduced GGUF, the file format most local LLM tools now read, and it has backends for CPU, CUDA, ROCm, Metal, Vulkan and SYCL.

Several easier tools are built on it, Ollama and LM Studio among them. llamaperf files a report under the tool the person named, so an Ollama report may well be llama.cpp underneath.

Its strengths are reach and choice. The same GGUF file runs on an NVIDIA card, an AMD card, a Mac or a CPU, and models come quantized at every size from 2-bit to 8-bit, plus the i-quants.

Compare GPUs running llama.cpp

Every card is compared on one model, Qwen3.8 27B at 4-bit, the size and bit class that most cards here have plain runs of. A card with no run of that model shows none rather than a figure from a different model.

GPUVRAMReportsMedian speed, Qwen3.8 27B 4-bit
AMD Strix Halo 128GBamd128GB100Gen 14.0 t/sPP 365.8 t/s · n=2
NVIDIA RTX 3090nvidia24GB84Gen 38.7 t/s
NVIDIA RTX 5090nvidia32GB45Gen 84.2 t/s
M5 Max 48GBapple48GB38no Qwen3.8 27B 4-bit run reported
NVIDIA RTX 5060 Ti 16GBnvidia16GB36no Qwen3.8 27B 4-bit run reported
NVIDIA RTX 3060 12GBnvidia12GB35no Qwen3.8 27B 4-bit run reported
M4 Max 128GBapple128GB33Gen 21.8 t/sPP 236.6 t/s · n=1
AMD RX 7900 XTXamd24GB27Gen 37.1 t/sPP 877.8 t/s · n=1

llama.cpp against other engines

Pairs of plain runs on the same card, of the same model size at the same bit class: one device, one request, no speculative decoding, the whole model in memory. Context length and build still differ between the two sides, and each side shows its own.

Model and GPUllama.cppOther engine
Qwen3.6 35B · 3B active 8-bitAMD Strix Halo 128GB24.1 t/sPrompt processing (prefill) 280.3 tokens/s (2)one generation report, 512K context, 1 not statedGufo50.8 t/sPrompt processing (prefill) 2384.0 tokens/s (1)one generation report, context not stated
Qwen3.8 125B · 6B active 4-bitAMD Strix Halo 128GB23.0 t/sPrompt processing (prefill) 251.9 tokens/s (2)median of 3 generation reports, 128K to 160K context, 1 not statedGufo35.0 t/sPrompt processing (prefill) 1794.3 tokens/s (4)median of 5 generation reports, 16K to 134K context, 1 not stated
Qwen3.8 125B · 6B active 4-bitNVIDIA RTX Pro 6000 Blackwell105.5 t/sPrompt processing (prefill) 1955.0 tokens/s (1)median of 2 generation reports, 2K to 240K contextik_llama.cpp40.0 t/sPrompt processing (prefill) 2000.0 tokens/s (1)one generation report, 200K context
Gemma 3 12B 4-bitM5 Max 48GB61.5 t/sPrompt processing (prefill) 1721.5 tokens/s (1)one generation report, context not statedMLX66.9 t/sPrompt processing (prefill) 1834.9 tokens/s (1)one generation report, context not stated
Gemma 3 4B 4-bitM5 Max 48GB150.5 t/sPrompt processing (prefill) 5760.7 tokens/s (1)one generation report, context not statedMLX176.2 t/sPrompt processing (prefill) 5550.3 tokens/s (1)one generation report, context not stated
Qwen 2.5 Coder 14B 4-bitM5 Max 48GB56.0 t/sPrompt processing (prefill) 1546.0 tokens/s (1)one generation report, context not statedMLX60.8 t/sPrompt processing (prefill) 1719.3 tokens/s (1)one generation report, context not stated
Qwen 2.5 Coder 32B 4-bitM5 Max 48GB26.3 t/sPrompt processing (prefill) 685.0 tokens/s (1)one generation report, context not statedMLX28.4 t/sPrompt processing (prefill) 734.4 tokens/s (1)one generation report, context not stated
Qwen 2.5 Coder 7B 4-bitM5 Max 48GB106.0 t/sPrompt processing (prefill) 2901.3 tokens/s (1)one generation report, context not statedMLX121.8 t/sPrompt processing (prefill) 3362.9 tokens/s (1)one generation report, context not stated
Qwen3 0.6B 4-bitM5 Max 48GB457.1 t/sPrompt processing (prefill) 23288.5 tokens/s (1)one generation report, context not statedMLX570.6 t/sPrompt processing (prefill) 22693.8 tokens/s (1)one generation report, context not stated
Qwen3 1.7B 4-bitM5 Max 48GB288.6 t/sPrompt processing (prefill) 11493.0 tokens/s (1)one generation report, context not statedMLX366.0 t/sPrompt processing (prefill) 12362.2 tokens/s (1)one generation report, context not stated
Qwen3 14B 4-bitM5 Max 48GB57.4 t/sPrompt processing (prefill) 1584.3 tokens/s (1)one generation report, context not statedMLX62.6 t/sPrompt processing (prefill) 1738.6 tokens/s (1)one generation report, context not stated
Qwen3 32B 4-bitM5 Max 48GB26.4 t/sPrompt processing (prefill) 667.0 tokens/s (1)one generation report, context not statedMLX28.4 t/sPrompt processing (prefill) 730.9 tokens/s (1)one generation report, context not stated
Qwen3 4B 4-bitM5 Max 48GB159.7 t/sPrompt processing (prefill) 4972.7 tokens/s (1)one generation report, context not statedMLX186.0 t/sPrompt processing (prefill) 5505.7 tokens/s (1)one generation report, context not stated
Qwen3 8B 4-bitM5 Max 48GB97.7 t/sPrompt processing (prefill) 2744.7 tokens/s (1)one generation report, context not statedMLX110.6 t/sPrompt processing (prefill) 3150.6 tokens/s (1)one generation report, context not stated
Qwen3.6 35B · 3B active 4-bitM5 Max 48GB124.3 t/sPrompt processing (prefill) 3342.7 tokens/s (1)one generation report, context not statedMLX151.1 t/sPrompt processing (prefill) 3333.4 tokens/s (1)one generation report, context not stated
Qwen3.8 125B · 6B active 4-bitNVIDIA RTX Pro 6000 Blackwell105.5 t/sPrompt processing (prefill) 1955.0 tokens/s (1)median of 2 generation reports, 2K to 240K contextNInfer172.0 t/sPrompt processing (prefill) 5905.0 tokens/s (1)one generation report, 512 context
Qwen3.8 27B 4-bitAMD RX 7900 XTX37.1 t/sPrompt processing (prefill) 877.8 tokens/s (1)median of 3 generation reports, 64K context, 2 not statedOllama34.4 t/sPrompt processing (prefill) 215.8 tokens/s (1)one generation report, 64K context
Qwen3.8 125B · 6B active 4-bitM3 Ultra 512GB31.1 t/sPrompt processing (prefill) 558.8 tokens/s (1)one generation report, 250K contextoMLX25.0 t/sone generation report, context not stated
Qwen3.8 125B · 6B active 4-bitNVIDIA DGX Spark24.5 t/sone generation report, 128K contextSGLang35.0 t/sone generation report, 256K context
Qwen3.8 125B · 6B active 4-bitNVIDIA RTX Pro 6000 Blackwell105.5 t/sPrompt processing (prefill) 1955.0 tokens/s (1)median of 2 generation reports, 2K to 240K contextSGLang-Prompt processing (prefill) 11352.0 tokens/s (1)no generation reports, 256K context
Qwen3.8 27B 4-bitNVIDIA RTX 509084.2 t/smedian of 3 generation reports, 40K to 120K context, 1 not statedTensorSharp80.0 t/sone generation report, 40K context
Gemma 4 26B · 4B active 4-bitNVIDIA DGX Spark69.9 t/sPrompt processing (prefill) 2657.0 tokens/s (1)one generation report, 256K contextvLLM48.2 t/sone generation report, context not stated
Qwen3.6 35B · 3B active 16-bitAMD Strix Halo 128GB21.5 t/sPrompt processing (prefill) 484.0 tokens/s (1)one generation report, context not statedvLLM32.6 t/sPrompt processing (prefill) 3581.0 tokens/s (1)one generation report, 2K context
Qwen3.6 35B · 3B active 4-bitNVIDIA DGX Spark-Prompt processing (prefill) 3556.7 tokens/s (1)no generation reports, context not statedvLLM78.3 t/sone generation report, 128K context
Qwen3.8 27B 4-bitNVIDIA RTX 309038.7 t/smedian of 4 generation reports, 128K to 256K context, 1 not statedvLLM38.4 t/sPrompt processing (prefill) 561.0 tokens/s (2)one generation report, 144K to 200K context
Qwen3.8 27B 4-bitNVIDIA RTX 509084.2 t/smedian of 3 generation reports, 40K to 120K context, 1 not statedvLLM73.2 t/sone generation report, context not stated

Top models on llama.cpp

Frequently asked

Is llama.cpp faster than other engines?

llamaperf has 24 matched pairs of llama.cpp and other-engine runs on the same card, model size and bit class, but none is comparable enough to say which engine is faster: the sides have too few reports or were run at different context lengths. A pair counts toward a direction only when each side has at least 3 generation reports with a stated context, and the two sides' contexts overlap. The measured figures and their conditions are in the table on this page.

What hardware does llama.cpp support?

CPUs with SIMD support, NVIDIA through CUDA, AMD through ROCm, Apple Silicon through Metal, most GPUs through Vulkan, and Intel through SYCL.

What is GGUF?

GGUF is the file format llama.cpp uses to package quantized model weights and their metadata in one file. It replaced the older GGML format.