Source: https://dev.to/yiqinumber1/llamacpp-b9455-finally-caught-vllm-70ts-on-2x3090-qwen-27b-uq8-1m74

For End Users

If you run AI models on your own GPUs, llama.cpp just caught up to vLLM in speed. That matters because llama.cpp supports better quantization formats, meaning your models can be both fast and accurate.

Previously, if you wanted 70+ tokens per second on dual GPUs, you had to use vLLM with lower-quality quantization. Lower quality meant subtle coding mistakes: wrong variable names, off-by-one errors in loops, bugs that pass unit tests but fail code review. Those errors compound fast in agent workflows that run 20+ turns without human oversight.

With llama.cpp build b9455 and the new tensor parallelism flag, you can now hit 70+ tok/s with high-quality Q8 quantization. You get clean code output at the same speed. No more choosing between fast-but-wrong and slow-but-correct.

For Engineers and Researchers

The key change is the -sm tensor flag. It switches llama.cpp from row-based model splitting to tensor parallelism. Instead of keeping one GPU mostly idle during certain operations, tensor parallelism distributes individual matrix multiplications across both GPUs simultaneously. This is the same approach vLLM has used for its multi-GPU speed advantage.

The benchmark setup: 2x RTX 3090 (24GB each), Unsloth Qwen3.6-27B-UD-Q8KXL.

Critical flags:

--tensor-split 50,50 -sm tensor
--flash-attn on
--cache-type-k q8_0 --cache-type-v q8_0
--spec-type draft-mtp --spec-draft-n-max 3

Results from a coding session trace:

  • 27K context, cold start: 1,417 tok/s prefill, 81 tok/s decode
  • 31K context: 1,171 tok/s prefill, 74 tok/s decode
  • 68K context, cold start: 1,247 tok/s prefill, 68 tok/s decode
  • Decode speed held rock-solid at 67-81 tok/s across all context sizes

Three optimizations contribute to the numbers:

  • Tensor parallelism (-sm tensor): closes the multi-GPU utilization gap with vLLM
  • KV cache quantization (q8_0): basically lossless at these context sizes, saves ~30% cache memory. The difference between fitting 60K context with headroom vs OOM at 50K
  • MTP speculative decoding (--spec-draft-n-max 3): draft model predicts 2-3 tokens ahead. Going higher than 3 showed diminishing returns

Additional note: --no-mmap costs a few seconds on cold start but prevents VRAM fragmentation across server restarts, which matters for long-running production deployments.

The original poster had been running Qwen3.6-MTP-8.0 on vLLM as a speed compromise. The 8.0 quant introduced subtle coding errors. Switching to UD-Q8KXL on llama.cpp b9455 at the same speed eliminated that entire class of failures.

The Skeptical Take

This is a single Reddit benchmark, not a rigorous multi-run comparison with controlled variables. The hardware (2x 3090) is specific, and results will vary on other GPU combinations. Tensor parallelism in llama.cpp is still marked experimental (PR #19378). The MTP speculative decoding gains depend heavily on the model having multi-token prediction heads, so this does not generalize to all GGUF models. And vLLM has not stood still either. The gap closed, but the comparison is against whatever vLLM version the poster was running, not the latest build with its own optimizations.

  • Word count: 489
  • Written at: 2026-06-07T01:25:00Z