DFlash2 Speculative Decoding: Qwen3.8-27B Hits 86.7 tok/s on 4080 16GB
Apprehensive_Bar6609 · reddit · 2026-08-26
A detailed technical guide demonstrates accelerating Qwen3.8-27B on an RTX 4080 16GB using DFlash2 speculative decoding.
- Mechanism: DFlash2 uses a smaller Drafter model to predict tokens in parallel, verified by the larger Target model in a single pass, achieving lossless speedups.
- Setup Steps:
- Build llama.cpp from the unmerged PR #27342 branch.
- Download the target model (Qwen3.8-27B GGUF) and its specific Drafter model (561MB).
- Launch llama-server with specific flags, notably --spec-type draft-dflash and --model-draft.
- Performance Data:
- 4k context: Throughput increased from 50.6 to 86.7 tok/s (1.72x speedup).
- 120k context: Throughput reached 66.1 tok/s (1.31x speedup).
- VRAM cost: Only adds 561MB.
- Caveats: Drafter models are pair-specific; nmax=3 offers the best tradeoff; a PR bug limits stable context to 122k tokens.
More from Infra
- Google Colab hands users a G4 Blackwell GPU, user reports — MickeySteamboat · 2026-11-30
- 19 GitHub Actions Runner Providers Benchmarked: Speed and Cost, Updated Weekly — DanielLockyer · 2026-11-30
- Learn Inference: An Interactive Guide to Serving Generative Models in Production — attentionmech · 2026-11-30
- open-daytona: rootless gVisor sandbox pool runs 1,536 concurrent agent-RL sandboxes on Slurm — victor_explore · 2026-11-30
- Notes on 'Looking Back at Postgres': Extensibility, No WAL, Open Source — sh_reya · 2026-11-30
- NRDC concedes BAAJA makes data centers pay grid costs, countering 'giveaway' claim — zacharynado · 2026-11-30