Skip to content

Benchmarks

All numbers were measured on one system with an Intel Core Ultra 7 255H (16 cores) and a Kioxia PCIe 4.0 NVMe SSD. They use Q4_K_M models, NVserve's default settings and the compat (baseline x86-64) build unless stated otherwise. "Peak" is peak committed memory on Windows and the peak resident set on Linux. Your disk speed matters most: time per token is roughly the bytes read per token divided by the disk's read speed.

Mixture-of-experts models (4 GiB cap)

Model Size Windows Linux (WSL2) Peak Perplexity*
Qwen3-30B-A3B 17.3 GiB 0.47 s/token (0.35–0.42 with an 8 GiB cap) 2.9 GiB 4.59
DeepSeek-V2-Lite-Chat 9.7 GiB 0.35 s/token 0.37 s/token 2.9 GiB 4.94
Moonlight-16B-A3B-Instruct 9.8 GiB 0.31–0.35 s/token 0.32–0.40 s/token 2.9–3.0 GiB 4.91
  • Expert cache: with a 4 GiB cap it serves 32–49% of the experts each token needs. With 8 GiB, Qwen3-30B-A3B reaches 69%.
  • Expert prefetching: 79–87% of prefetched experts are used, and the time spent waiting for experts drops by 30–42%. Under 4 GiB the disk is the limit, so the overall gain there is within run-to-run noise. Under 8 GiB it is about 8%.

Dense models

Model Size Cap Plain With a draft model Peak
Llama-3.1-70B-Instruct 39.6 GiB 8 GiB 9.7 s/token 4.3 s/token (Llama-3.2-1B, 3.25 tokens per pass) 2.9 GiB
Llama-3.1-70B-Instruct, server 39.6 GiB 4 GiB 11.4 s/token 4.2 s/token 2.4 / 3.2 GiB
Qwen2.5-72B-Instruct 44.2 GiB 8 GiB 11.0 s/token 5.5 s/token (Qwen2.5-0.5B) 3.2 GiB
Llama-3.1-8B-Instruct 4.6 GiB 8 GiB 1.0–1.4 s/token 0.64–0.84 s/token 1.4 GiB
Llama-3.2-1B-Instruct 0.75 GiB 1 GiB 0.18 s/token 0.6 GiB
  • 70B: the disk reads 4.0 GiB/s and is busy all the time; compute takes 1.9 s of each 9.7 s pass. A long prompt is compute-bound; see Prompt processing.
  • Batching: a batch of 4 prompts on the 8B produces 3.16 tokens per pass.
  • KV cache: Llama-3.1-70B under a 4 GiB cap peaks at 2.3 GiB with a 2048-token context in RAM, and at 1.7 GiB with an 8192-token context on disk.

Prompt processing

Prompts are limited by the CPU, not the disk. NVserve's own Q4_K and Q6_K kernels (new in 0.5.0) against candle's, with the v3 build, on AC power, default threads (8):

Model Prompt NVserve kernels candle kernels
Llama-3.1-8B-Instruct (8 GiB cap) 718 tokens, 3 passes 13.7 s 30.7 s
Llama-3.1-70B-Instruct (8 GiB cap) 219 tokens, 1 pass 30 s 78–79 s
  • Matmuls alone: the prompt-sized Q4_K and Q6_K matmuls run at about 900 GFLOP/s, against about 370 GFLOP/s with candle.
  • Generation speed: unchanged at 1.0 s/token on the 8B, because reading weights from disk, not compute, limits it.
  • Prompt threads: since these runs, prompt chunks use a second pool with all cores but two (--prompt-threads), while generation keeps 8 threads. In back-to-back runs, 14 prompt threads against 8 gave:
  • the 8B prompt: 16.1–16.3 s instead of 18.0–18.2 s;
  • the 70B pass: 39–40 s instead of 42–43 s.

Generation speed did not change. The machine was slower during these runs than during the table's, so compare only within each pair. - On battery: the same runs varied by up to 2–3×.

NVSERVE_KERNELS=candle reproduces the candle column.

Perplexity

On the same English sample text for every model, measured with nvserve score:

Model Perplexity
Llama-3.2-1B-Instruct 7.45
Llama-3.1-8B-Instruct 4.85
Llama-3.1-70B-Instruct 4.09
Qwen2.5-0.5B-Instruct 7.30
Qwen2.5-72B-Instruct 4.00
Qwen3-30B-A3B 4.59
DeepSeek-V2-Lite-Chat 4.94
Moonlight-16B-A3B-Instruct 4.91

* Perplexities are comparable only between models with the same tokenizer (Llama 3, Qwen, DeepSeek, Kimi).

Threads

Moonlight-16B-A3B, 4 GiB cap, s/token:

Threads 6 8 10 12 14 16
Linux (WSL2) 0.314 0.324 0.337 0.366 0.465 0.565
Windows 0.31–0.34 0.38–0.65

The default is half the cores. The x86-64-v3 build's matrix kernels are a further ~20% faster than the compat build used for these tables.

Correctness

Every architecture is checked in the test suite:

  • Streaming: bit-identical to keeping the model in RAM, including the disk KV cache, the expert cache and prefetching.
  • Exact f32 mode: chunked prompts and token-by-token decoding match a single pass within 0.001%.
  • Independent implementations: candle-transformers' Llama and Qwen2 give the same greedy tokens. Synthetic Qwen3-MoE, DeepSeek-V2 and DeepSeek-V3 models match plain f32 reference implementations within 0.01%.
  • Negative controls: these show the reference comparisons would catch a wrong routing, RoPE or YaRN detail.
  • Tokenizers: token ids match the models' own tokenizers.