Tencent's DSpine drafter on a 3090: faster single-agent Qwen 27B in llama.cpp, slower when busy
- Hardware
- RTX 3090 (24 GB) with Qwen3.8-27B Q4_K_M in a llama.cpp branch with DSpine support
His own box: one Intel Arc Pro B70 serving 4 agents at 40k context with MTP - Models & engines
- q8_0 KV cache
- Key gotcha
- The drafter eats VRAM: on a 24 GB card it tops out at 64k context with a q8_0 KV cache, so agents that live at 128k won't load.
What they built
Tencent released DSpine on Nov 7: a 2B helper model that guesses 16 tokens at a time while the big model keeps the ones it agrees with, so the output tokens are the same but arrive faster. It is Apache 2.0.
@ItsmeAjayKV ported it to llama.cpp and ran it on his RTX 3090 with Qwen3.8-27B Q4_K_M, comparing DSpine, DFlash2 and no drafter at several context lengths. Timothy Lewis collected those numbers alongside a DGX Spark comparison by @avi_fenesh.
His own setup is the busy case: one Intel Arc Pro B70 running 4 agents at 40k context on Sage-A1.5 with MTP, 313 tok/s total. He hasn't tried DSpine on it.
Setup
- RTX 3090 (24 GB) with Qwen3.8-27B Q4_K_M in a llama.cpp branch with DSpine support
- q8_0 KV cache
- His own box: one Intel Arc Pro B70 serving 4 agents at 40k context with MTP
How it works
- The 2B DSpine drafter proposes 16 tokens per round and the 27B model verifies them, keeping the ones it agrees with.
- Because every round checks 16 guesses, the big model does more work, which costs throughput once several requests share the GPU.
Results & numbers
- At 8k context: 35.6 tok/s with DSpine, 26.6 with DFlash2, 28.1 with no drafter.
- At 32k: 31.1 / 28.0 / 23.8. At 64k: 35.5 / 23.0 / 19.5. At 128k only the no-drafter setup fits, at 14.6 tok/s.
- That test reads a novel, the hardest text to guess; on code and math the port gets about 125 tok/s, 4.5 times plain.
- On one DGX Spark against DFlash2: 39.7 vs 33.5 tok/s with 1 user, about tied at 4, 15% slower at 8 and 16% slower at 32.
Gotchas
- The drafter eats VRAM: on a 24 GB card it tops out at 64k context with a q8_0 KV cache, so agents that live at 128k won't load.
- It loses when the box is busy, because checking 16 guesses every round doubles the big model's work.
- Tencent's own table still shows DSpine ahead at 8 concurrent requests (686 vs 590 tok/s), but that's on FlashAttention 3 on a Hopper card; he guesses a Spark or 3090 lacks that headroom.
“One chat or one coding agent on a 3090, grab AJ's branch today.”— Timothy Lewis
Do it yourself
- Get a llama.cpp build with DSpine support (the post points to AJ's branch).
- Load Qwen3.8-27B Q4_K_M with the DSpine drafter and a q8_0 KV cache, keeping context at or under 64k on a 24 GB card.
- Benchmark your real workload with and without the drafter at your usual context length.
- If several agents share the GPU, also test at your real concurrency and keep DFlash2 or MTP if DSpine falls behind.
Similar setups
Coding with a local Qwen 3.8 27B on a self-hosted NVR project: what worked and what didn't
Willy (Shimitar) used Open WebUI, OpenTerminal and llama.cpp running Qwen 3.8 27B to add RTSP streaming, themes and docs to his open-source camera viewer LazyNVR, and found it failed at big autonomous changes but excelled at small, tightly reviewed steps.
Booting a local Qwen3.6 35B chat server straight from UEFI on an RTX 3090
Alexey Fateev wrote a 528 KB pure-assembly UEFI file that boots an RTX 3090 with no operating system, loads a 20.5 GB GGUF model and serves an OpenAI-style API and web chat on his LAN.
A self-hosted llama.cpp endpoint on three 16 GB GPUs with presets.ini and Docker
Theo Dufort shares the Compose file and 60-line presets.ini behind his private OpenAI-compatible endpoint: a 27B coding model at 132K context and a 26B MoE chat model.
Faster local Qwen on an AMD eGPU with the llama-cpp-rdna-boosts patches
A developer running a Qwen3.8-27B fine-tune on an AMD R9700 eGPU swapped vanilla llama.cpp for a small set of AMD-specific patches in a Podman image and roughly doubled prefill speed.