Blog/llama.cpp vs vLLM on DGX Spark
Serving · December 2026

llama.cpp vs vLLM on DGX Spark: four models, one harness

By Samuel Seidel · Published December 3, 2026 · Measured December 3, 2026

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.

ModelWeightsEngineOne userTotal at 4Total at 16First token at 16Raw data
Qwen3.6-35B-A3B, MTP 3NVFP4vLLM 0.34.1rc1 nightly120.0257.1460.40.4 slog
Qwen3.6-35B-A3B, MTP 3UD-Q4_K_Mllama.cpp b1293198.3189.7282.51.0 slog
Qwen3.6-35B-A3BNVFP4vLLM 0.34.1rc1 nightly82.0192.4361.00.2 slog
Qwen3.6-35B-A3BUD-Q4_K_Mllama.cpp b1293168.7150.7237.61.4 slog
Qwen3.6-35B-A3BQ8_0llama.cpp b1293159.5115.2177.91.7 slog
gpt-oss-120bMXFP4llama.cpp b1293155.383.7130.02.0 slog
gpt-oss-120b, EAGLE3MXFP4llama.cpp b1293142.478.3122.12.0 slog
gpt-oss-120bMXFP4vLLM 0.34.1rc1 nightly34.981.5141.71.0 slog
Qwen3.8-27B, MTP 3NVFP4vLLM 0.34.1rc1 nightly25.682.8215.60.6 slog
Qwen3.8-27BNVFP4vLLM 0.34.1rc1 nightly12.446.0152.90.6 slog
Qwen3.8-27BUD-Q4_K_Mllama.cpp b1293112.747.3124.14.6 slog

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:

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?

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.

Related pages

Top up from $5, billed per minute

Test both engines on your own prompts.

Rent a DGX Spark by the minute and compare both engines on your workload.

A dedicated DGX Spark, $0.79/hour, billed per minute. Start with $5, about six Spark hours.

Create account Read the engine guide