llama.cpp vs vLLM on DGX Spark: four models, one harness
We ran the same 12 prompts through llama.cpp and vLLM on two DGX Sparks on 3 December 2026. vLLM was faster for Qwen3.6-35B-A3B at every load: 120.0 against 98.3 tok/s for one user with MTP, and 460 against 282 in total at 16 users. gpt-oss-120b went the other way for one user, 55.3 tok/s on llama.cpp and 34.9 on vLLM. At 16 users vLLM gave more total output on every model we tried.
Which engine is faster on a DGX Spark?
It depends on the model, and on how many requests arrive at once. The table has four models, each in the 4-bit build its engine is usually run with.
| Model | Weights | Engine | One user | Total at 4 | Total at 16 | First token at 16 | Raw data |
|---|---|---|---|---|---|---|---|
| Qwen3.6-35B-A3B, MTP 3 | NVFP4 | vLLM 0.34.1rc1 nightly | 120.0 | 257.1 | 460.4 | 0.4 s | log |
| Qwen3.6-35B-A3B, MTP 3 | UD-Q4_K_M | llama.cpp b12931 | 98.3 | 189.7 | 282.5 | 1.0 s | log |
| Qwen3.6-35B-A3B | NVFP4 | vLLM 0.34.1rc1 nightly | 82.0 | 192.4 | 361.0 | 0.2 s | log |
| Qwen3.6-35B-A3B | UD-Q4_K_M | llama.cpp b12931 | 68.7 | 150.7 | 237.6 | 1.4 s | log |
| Qwen3.6-35B-A3B | Q8_0 | llama.cpp b12931 | 59.5 | 115.2 | 177.9 | 1.7 s | log |
| gpt-oss-120b | MXFP4 | llama.cpp b12931 | 55.3 | 83.7 | 130.0 | 2.0 s | log |
| gpt-oss-120b, EAGLE3 | MXFP4 | llama.cpp b12931 | 42.4 | 78.3 | 122.1 | 2.0 s | log |
| gpt-oss-120b | MXFP4 | vLLM 0.34.1rc1 nightly | 34.9 | 81.5 | 141.7 | 1.0 s | log |
| Qwen3.8-27B, MTP 3 | NVFP4 | vLLM 0.34.1rc1 nightly | 25.6 | 82.8 | 215.6 | 0.6 s | log |
| Qwen3.8-27B | NVFP4 | vLLM 0.34.1rc1 nightly | 12.4 | 46.0 | 152.9 | 0.6 s | log |
| Qwen3.8-27B | UD-Q4_K_M | llama.cpp b12931 | 12.7 | 47.3 | 124.1 | 4.6 s | log |
Tok/s, no failed requests. One user is decode speed; totals count all output over wall time. First token is the median time to the first token at 16 requests. Twelve prompts (code, prose, JSON, reasoning), 512 output tokens, temperature 0, thinking as each model defaults, prefix reuse off. llama.cpp: three runs per level, 16 slots of 16K context. vLLM: two runs per level from our load test, 32K context. Script, llama.cpp launch file, vLLM launch file.
Three results stand out:
- Qwen3.6-35B-A3B is faster on vLLM at every load. One user got 120.0 tok/s against 98.3 with MTP, and 16 users got 460 tok/s in total against 282.
- gpt-oss-120b is faster on llama.cpp for one user: 55.3 against 34.9 tok/s, from the same MXFP4 weights. At 16 users vLLM was slightly ahead in total, 142 against 130.
- vLLM answers sooner under load. At 16 requests the first token came in 0.25 s on vLLM and 1.4 s on llama.cpp for Qwen3.6, and 0.6 against 4.6 s for the dense Qwen3.8-27B.
Why is gpt-oss-120b slower on vLLM?
We do not know yet, and it is the row to treat with most care. Our vLLM figure is close to the 34.6 tok/s we measured on a different Spark on 1 December with the same nightly build, so it is not a one-off. Other harnesses have reported more: the forum figures quoted in our engine guide give 60.7 tok/s on an older vLLM nightly. The llama.cpp result, 55.3 tok/s, is in line with the 58.7 the llama.cpp maintainers list for the Spark. If gpt-oss-120b is your model and one person uses it, try both engines on your own build.
Does drafting help on llama.cpp?
MTP does, by about as much as on vLLM. The Qwen3.6 MTP head took llama.cpp from 68.7 to 98.3 tok/s for one user, 1.43 times, and vLLM gained 1.46 times. The server logs put the share of accepted draft tokens at about 61% on llama.cpp and 82% on vLLM.
The EAGLE3 drafter for gpt-oss-120b did the opposite on llama.cpp. It lowered one user from 55.3 to 42.4 tok/s, with about 44% of drafts accepted. We used the Q8_0 drafter from the ggml-org repository with default settings; a different draft length may do better.
Q4 or Q8 on llama.cpp?
Q4 is faster on a Spark. Qwen3.6-35B-A3B ran at 68.7 tok/s in UD-Q4_K_M and 59.5 in Q8_0, because the Spark's speed is set mostly by how many bytes it reads per token. The gap widens with users: 238 against 178 tok/s in total at 16. We measured speed only, not answer quality.
Which engine should you pick?
- Several people or an agent that runs requests in parallel: vLLM. It was ahead in total throughput on every model at 16 requests, and gave the first token sooner.
- One person, gpt-oss-120b: llama.cpp, on our builds.
- One person, Qwen3.6-35B-A3B: vLLM with MTP, though llama.cpp with MTP is close at 98.3 tok/s and simpler to start.
- A model only shipped as GGUF, such as the Bonsai 1-bit models: llama.cpp or its forks.
How we ran it
Both machines are NVIDIA DGX Sparks on the GPUwerk platform with driver 580.159.03. We took each out of service for the test, so nothing else ran on it. The weights are not identical: NVFP4 for vLLM and Unsloth's UD-Q4_K_M for llama.cpp are different 4-bit formats, and only gpt-oss-120b used the same MXFP4 weights in both engines. llama.cpp b12931 was compiled on the Spark with CUDA 13.0.3 for architecture 121a. vLLM was the 0.34.1rc1 nightly of 30 November, image digest 3f80650e4049, the build we used in our 1 December tests. These are one-day results on our prompts; check them on yours.
FAQ
Is llama.cpp or vLLM faster on a DGX Spark?
For several users, vLLM: it gave more total output on every model at 16 requests in our test. For one user it depends on the model: vLLM for Qwen3.6-35B-A3B (120.0 against 98.3 tok/s with MTP), llama.cpp for gpt-oss-120b (55.3 against 34.9).
Does llama.cpp support MTP on the DGX Spark?
Yes. llama.cpp b12931 has --spec-type draft-mtp, and with an MTP GGUF of Qwen3.6-35B-A3B it raised one user from 68.7 to 98.3 tok/s.
Should I use Q4 or Q8 GGUF on a DGX Spark?
Q4 if speed matters: Qwen3.6-35B-A3B ran at 68.7 tok/s in UD-Q4_K_M and 59.5 in Q8_0 for one user.
How fast is gpt-oss-120b on a DGX Spark?
55.3 tok/s for one user on llama.cpp b12931 and 34.9 on a vLLM 0.34.1rc1 nightly in our 3 December test, with 512-token answers.
Sources
Every figure above is attributed to its source in the sentence or table where it appears. Pages were read on 3 December 2026.
- llama.cpp release b12931, GitHub
- vllm/vllm-openai image, Docker Hub
- unsloth/Qwen3.6-35B-A3B-MTP-GGUF, Hugging Face
- unsloth/Qwen3.8-27B-GGUF, Hugging Face
- ggml-org/gpt-oss-120b-GGUF, Hugging Face
- nvidia/Qwen3.6-35B-A3B-NVFP4, Hugging Face
- nvidia/Qwen3.8-27B-NVFP4, Hugging Face
- openai/gpt-oss-120b, Hugging Face