Quick Benchmark of NVIDIA DGX Spark

5 min
_NVIDIA DGX Spark with figurine

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.cpp Q4 leads at concurrency 1–2; starting at concurrency 4, vLLM overtakes it. At concurrency 8, vLLM delivers 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.cpp Q4 holds its lead through concurrency 4; vLLM only 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, vLLM scales total throughput by 3–5×, compared to 2–3× for llama.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.cpp Q8_0 weights were converted directly from the vLLM FP8 weights using convert_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_0 is 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 aarch64
    • vLLM / PyTorch / CUDA: 0.25.1 / 2.11.0+cu130 / 13.0
    • Benchmarking tool: AIPerf 0.11.0

Model Configuration & Load Parameters

RuntimeQwen 27BQwen 35B-A3BMTP
vLLMNative FP8 E4M3Native FP8 E4M32 draft tokens
llama.cpp (Q4)GGUF Q4_K_MGGUF Q4_K_M2 draft tokens
llama.cpp (Q8_0)GGUF Q8_0GGUF Q8_02 draft tokens
ParameterValue
APIOpenAI-compatible Chat Completions, streaming
Input lengthSynthetic 512 tokens, stddev 0
Output length128 tokens, stddev 0, ignore_eos=true
Concurrency1 / 2 / 4 / 8
Requests16 each for c1 / c2 / c4; 32 for c8
Warmup2 requests per tier at matching concurrency
Random seed20260717
Temperature0
MTP2 draft tokens across all three setups
Max single-request context4096 tokens
Prefix cacheDisabled
  • llama.cpp fixed 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.
  • vLLM fixed 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.

RuntimeConcurrencyTotal Output TPSUser TPSTTFT avgITL avgAvg Latency
llama.cpp Q4_K_M119.6023.201035.39 ms43.24 ms6527.07 ms
llama.cpp Q8_0114.9316.891034.30 ms59.33 ms8569.72 ms
vLLM FP8115.2116.27586.83 ms61.60 ms8410.17 ms
llama.cpp Q4_K_M233.9719.37942.14 ms51.86 ms7527.93 ms
llama.cpp Q8_0226.0114.04685.19 ms71.53 ms9769.70 ms
vLLM FP8230.0516.61820.69 ms60.28 ms8476.22 ms
llama.cpp Q4_K_M442.3712.04893.97 ms87.13 ms11959.90 ms
llama.cpp Q8_0429.398.211165.63 ms125.73 ms17133.14 ms
vLLM FP8450.7615.081497.18 ms66.62 ms9957.74 ms
llama.cpp Q4_K_M854.998.382085.49 ms126.37 ms18134.90 ms
llama.cpp Q8_0839.195.972654.15 ms174.85 ms24860.10 ms
vLLM FP8877.3812.852977.70 ms78.57 ms12956.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.

ConcurrencyQ4 vs vLLMQ8_0 vs vLLMQ8_0 vs Q4Throughput 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 Q4llama.cpp Q8_0vLLM 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.

RuntimeConcurrencyTotal Output TPSUser TPSTTFT avgITL avgAvg Latency
llama.cpp Q4_K_M174.7493.10344.43 ms10.76 ms1710.40 ms
llama.cpp Q8_0161.3374.96388.29 ms13.36 ms2085.16 ms
vLLM FP8157.4463.79231.77 ms15.70 ms2225.99 ms
llama.cpp Q4_K_M2109.3959.92193.25 ms16.80 ms2326.42 ms
llama.cpp Q8_0290.2349.29221.39 ms20.34 ms2804.17 ms
vLLM FP8289.9750.29304.14 ms19.93 ms2835.20 ms
llama.cpp Q4_K_M4121.8834.02333.93 ms30.17 ms4164.92 ms
llama.cpp Q8_04101.0527.92385.79 ms36.52 ms5024.34 ms
vLLM FP84110.9030.86415.50 ms32.61 ms4557.01 ms
llama.cpp Q4_K_M8148.2322.81874.19 ms46.04 ms6720.99 ms
llama.cpp Q8_08123.1718.591052.60 ms55.99 ms8162.93 ms
vLLM FP88170.8624.90739.57 ms40.58 ms5893.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.

ConcurrencyQ4 vs vLLMQ8_0 vs vLLMQ8_0 vs Q4Throughput 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 Q4llama.cpp Q8_0vLLM 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:

RuntimeModelDraft/Generated tokensAccepted tokensAcceptance Rate
llama.cpp Q4Qwen 27B8657679478.5%
llama.cpp Q4Qwen 35B-A3B8832670575.9%
llama.cpp Q8_0Qwen 27B8716676777.6%
llama.cpp Q8_0Qwen 35B-A3B8661679778.5%
vLLM FP8Qwen 27B8700689079.2%
vLLM FP8Qwen 35B-A3B8778685178.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, generated and accepted counters were read directly from server logs across the full server lifecycle (including both warmup and benchmark requests). For vLLM, startup logs were verified for SpeculativeConfig(method='mtp', num_spec_tokens=2) and Detected MTP model, and draft / accepted token counts were computed from Prometheus counter deltas before and after each benchmark run.

© Aspi-Rin · CC BY 4.0