
I benchmarked the Qwen 3.6 27B and 35B-A3B models on an NVIDIA DGX Spark (GB10), comparing llama.cpp (Q4_K_M / Q8_0) and vLLM (native FP8) across concurrency levels from 1 to 8.
TLDR
Tested on: 2026/07/18
Choose vLLM if you need concurrency; for single-user, single-concurrency workloads, llama.cpp Q4 is faster.
Key takeaways:
- Qwen 3.6 27B:
llama.cppQ4 leads at concurrency 1–2; starting at concurrency 4,vLLMovertakes it. At concurrency 8,vLLMdelivers 40.7% higher total throughput than Q4 and 97% higher than Q8_0. - Qwen 3.6 35B-A3B: Because fewer parameters are active per token,
llama.cppQ4 holds its lead through concurrency 4;vLLMonly catches up and overtakes it at concurrency 8, with 15.3% higher total throughput than Q4 and 38.7% higher than Q8_0. - Concurrency scaling: Going from concurrency 1 to 8,
vLLMscales total throughput by 3–5×, compared to 2–3× forllama.cpp, showing a clear batching and scheduling advantage under load.
Test Environment & Configuration
The GB10 inside DGX Spark is based on the Blackwell architecture with native FP8 Tensor Cores, while llama.cpp Q4_K_M and Q8_0 rely primarily on custom CUDA kernels.
To keep the comparison as fair as possible, all three setups enabled MTP (Multi-Token Prediction, 2 draft tokens per step) and ran AIPerf with a fixed workload of 512 input tokens + 128 output tokens across four concurrency levels (1, 2, 4, and 8), for 24 benchmark runs in total.
Precision alignment and environment notes:
- 8-bit precision note: The
llama.cppQ8_0weights were converted directly from thevLLMFP8 weights usingconvert_hf_to_gguf.py --outtype q8_0 --fp8-as-q8, including the MTP module (launched with-spec-type draft-mtp --spec-draft-n-max 2 --spec-draft-p-min 0). Although both are 8-bit,Q8_0is block-wise integer quantization whereas FP8 is E4M3 floating-point, so the underlying numerical representation and compute kernels still differ; treat this as a practical deployment comparison. - Software versions (tested at
2026-07-17T09:28:52+09:00):- Platform: NVIDIA DGX Spark / GB10
llama.cpp:version: 1 (a320cbf) | built with GNU 13.3.0 for Linux aarch64vLLM/ PyTorch / CUDA:0.25.1/2.11.0+cu130/13.0- Benchmarking tool: AIPerf
0.11.0
Model Configuration & Load Parameters
| Runtime | Qwen 27B | Qwen 35B-A3B | MTP |
|---|---|---|---|
| vLLM | Native FP8 E4M3 | Native FP8 E4M3 | 2 draft tokens |
| llama.cpp (Q4) | GGUF Q4_K_M | GGUF Q4_K_M | 2 draft tokens |
| llama.cpp (Q8_0) | GGUF Q8_0 | GGUF Q8_0 | 2 draft tokens |
| Parameter | Value |
|---|---|
| API | OpenAI-compatible Chat Completions, streaming |
| Input length | Synthetic 512 tokens, stddev 0 |
| Output length | 128 tokens, stddev 0, ignore_eos=true |
| Concurrency | 1 / 2 / 4 / 8 |
| Requests | 16 each for c1 / c2 / c4; 32 for c8 |
| Warmup | 2 requests per tier at matching concurrency |
| Random seed | 20260717 |
| Temperature | 0 |
| MTP | 2 draft tokens across all three setups |
| Max single-request context | 4096 tokens |
| Prefix cache | Disabled |
llama.cppfixed settings (both Q4 and Q8_0): 8 slots, total context 32768, batch 4096, ubatch 1024, Q8_0 KV cache, continuous batching enabled, Flash Attention auto-selected.vLLMfixed settings:max-num-seqs 8,max-num-batched-tokens 4096, all other generation parameters at vLLM defaults.
Qwen 3.6 27B: Concurrency 4 as the Inflection Point
Metrics: Total Output TPS measures aggregate tokens generated per second across the system (including time to first token); User TPS is per-request generation speed; TTFT is time to first token; ITL is inter-token latency (lower means smoother streaming); Avg Latency is total end-to-end request duration.
| Runtime | Concurrency | Total Output TPS | User TPS | TTFT avg | ITL avg | Avg Latency |
|---|---|---|---|---|---|---|
| llama.cpp Q4_K_M | 1 | 19.60 | 23.20 | 1035.39 ms | 43.24 ms | 6527.07 ms |
| llama.cpp Q8_0 | 1 | 14.93 | 16.89 | 1034.30 ms | 59.33 ms | 8569.72 ms |
| vLLM FP8 | 1 | 15.21 | 16.27 | 586.83 ms | 61.60 ms | 8410.17 ms |
| llama.cpp Q4_K_M | 2 | 33.97 | 19.37 | 942.14 ms | 51.86 ms | 7527.93 ms |
| llama.cpp Q8_0 | 2 | 26.01 | 14.04 | 685.19 ms | 71.53 ms | 9769.70 ms |
| vLLM FP8 | 2 | 30.05 | 16.61 | 820.69 ms | 60.28 ms | 8476.22 ms |
| llama.cpp Q4_K_M | 4 | 42.37 | 12.04 | 893.97 ms | 87.13 ms | 11959.90 ms |
| llama.cpp Q8_0 | 4 | 29.39 | 8.21 | 1165.63 ms | 125.73 ms | 17133.14 ms |
| vLLM FP8 | 4 | 50.76 | 15.08 | 1497.18 ms | 66.62 ms | 9957.74 ms |
| llama.cpp Q4_K_M | 8 | 54.99 | 8.38 | 2085.49 ms | 126.37 ms | 18134.90 ms |
| llama.cpp Q8_0 | 8 | 39.19 | 5.97 | 2654.15 ms | 174.85 ms | 24860.10 ms |
| vLLM FP8 | 8 | 77.38 | 12.85 | 2977.70 ms | 78.57 ms | 12956.54 ms |
At concurrency 1 and 2, Q4 benefits from lower memory bandwidth overhead to achieve higher single-stream speed, reaching 23.20 tokens/s per user. Starting at concurrency 4, however, vLLM takes a decisive lead in both aggregate throughput and inter-token latency (ITL at just 66.62 ms).
At concurrency 8, the gap widens further: although vLLM’s TTFT rises to nearly 3 seconds, once streaming begins its ITL stays steady at 78.57 ms (~12.85 tokens/s per user) with aggregate throughput hitting 77.38 tokens/s. Meanwhile, llama.cpp Q4 and Q8_0 degrade to 126.37 ms and 174.85 ms ITL respectively, where streaming begins to feel noticeably sluggish.
| Concurrency | Q4 vs vLLM | Q8_0 vs vLLM | Q8_0 vs Q4 | Throughput Leader |
|---|---|---|---|---|
| 1 | +28.8% | -1.9% | -23.8% | llama.cpp Q4 |
| 2 | +13.0% | -13.4% | -23.4% | llama.cpp Q4 |
| 4 | -16.5% | -42.1% | -30.6% | vLLM |
| 8 | -28.9% | -49.4% | -28.7% | vLLM |
Throughput scaling from concurrency 1 to 8:
| llama.cpp Q4 | llama.cpp Q8_0 | vLLM FP8 |
|---|---|---|
| 2.81× (19.60 → 54.99) | 2.62× (14.93 → 39.19) | 5.09× (15.21 → 77.38) |
Qwen 3.6 35B-A3B MoE: Q4 Holds Its Edge Longer
Switching to the 35B-A3B MoE model drastically reduces the number of active parameters per token, boosting overall generation speed—at concurrency 1, Q4 hits 93.10 user tokens/s with TTFT under 350 ms.
| Runtime | Concurrency | Total Output TPS | User TPS | TTFT avg | ITL avg | Avg Latency |
|---|---|---|---|---|---|---|
| llama.cpp Q4_K_M | 1 | 74.74 | 93.10 | 344.43 ms | 10.76 ms | 1710.40 ms |
| llama.cpp Q8_0 | 1 | 61.33 | 74.96 | 388.29 ms | 13.36 ms | 2085.16 ms |
| vLLM FP8 | 1 | 57.44 | 63.79 | 231.77 ms | 15.70 ms | 2225.99 ms |
| llama.cpp Q4_K_M | 2 | 109.39 | 59.92 | 193.25 ms | 16.80 ms | 2326.42 ms |
| llama.cpp Q8_0 | 2 | 90.23 | 49.29 | 221.39 ms | 20.34 ms | 2804.17 ms |
| vLLM FP8 | 2 | 89.97 | 50.29 | 304.14 ms | 19.93 ms | 2835.20 ms |
| llama.cpp Q4_K_M | 4 | 121.88 | 34.02 | 333.93 ms | 30.17 ms | 4164.92 ms |
| llama.cpp Q8_0 | 4 | 101.05 | 27.92 | 385.79 ms | 36.52 ms | 5024.34 ms |
| vLLM FP8 | 4 | 110.90 | 30.86 | 415.50 ms | 32.61 ms | 4557.01 ms |
| llama.cpp Q4_K_M | 8 | 148.23 | 22.81 | 874.19 ms | 46.04 ms | 6720.99 ms |
| llama.cpp Q8_0 | 8 | 123.17 | 18.59 | 1052.60 ms | 55.99 ms | 8162.93 ms |
| vLLM FP8 | 8 | 170.86 | 24.90 | 739.57 ms | 40.58 ms | 5893.06 ms |
At low concurrency, MoE models are more heavily constrained by memory bandwidth, amplifying the smaller footprint of 4-bit weights: llama.cpp Q4 leads across concurrency 1–4, and Q8_0 matches or slightly beats vLLM FP8 at concurrency 1–2. Only at concurrency 8 does vLLM’s superior batch scheduling overtake llama.cpp (reaching 170.86 tokens/s total throughput), with a smaller margin than on the dense 27B model.
| Concurrency | Q4 vs vLLM | Q8_0 vs vLLM | Q8_0 vs Q4 | Throughput Leader |
|---|---|---|---|---|
| 1 | +30.1% | +6.8% | -17.9% | llama.cpp (both Q4 and Q8_0 lead) |
| 2 | +21.6% | +0.3% | -17.5% | llama.cpp Q4 leads; Q8_0 roughly tied |
| 4 | +9.9% | -8.9% | -17.1% | Q4 leads; Q8_0 trails vLLM |
| 8 | -13.2% | -27.9% | -16.9% | vLLM |
Throughput scaling from concurrency 1 to 8 is also flatter than on the 27B dense model:
| llama.cpp Q4 | llama.cpp Q8_0 | vLLM FP8 |
|---|---|---|
| 1.98× (74.74 → 148.23) | 2.01× (61.33 → 123.17) | 2.97× (57.44 → 170.86) |
MTP Acceptance Rate
To confirm that speculative decoding (2 draft tokens) was functioning properly across all three setups—and that weight conversion or implementation quirks weren’t skewing the results—I also recorded MTP acceptance rates throughout the runs:
| Runtime | Model | Draft/Generated tokens | Accepted tokens | Acceptance Rate |
|---|---|---|---|---|
| llama.cpp Q4 | Qwen 27B | 8657 | 6794 | 78.5% |
| llama.cpp Q4 | Qwen 35B-A3B | 8832 | 6705 | 75.9% |
| llama.cpp Q8_0 | Qwen 27B | 8716 | 6767 | 77.6% |
| llama.cpp Q8_0 | Qwen 35B-A3B | 8661 | 6797 | 78.5% |
| vLLM FP8 | Qwen 27B | 8700 | 6890 | 79.2% |
| vLLM FP8 | Qwen 35B-A3B | 8778 | 6851 | 78.0% |
Acceptance rates were virtually identical across all three runtimes, hovering between 76% and 79%. That confirms speculative decoding contributed roughly equal speedups everywhere, and the performance differences above come down to quantization bit-width, compute kernels, and concurrency scheduling.
Measurement note: For
llama.cpp,generatedandacceptedcounters were read directly from server logs across the full server lifecycle (including both warmup and benchmark requests). ForvLLM, startup logs were verified forSpeculativeConfig(method='mtp', num_spec_tokens=2)andDetected MTP model, anddraft/acceptedtoken counts were computed from Prometheus counter deltas before and after each benchmark run.
© Aspi-Rin · CC BY 4.0