Qwen 3.8 27B at 300-500 tok/s on a 5090 laptop with a custom CUDA engine
Summary
A custom C++/CUDA inference engine runs Qwen 3.8 27B with nvfp4 weights and KV cache on a 24GB laptop 5090, serving 4 agent slots at up to 196k context each at 300-500 tok/s aggregate. It scored 87/100 on a hard tool-eval, failing mostly on cross-turn state.
What the comments say
nvfp4 quantization was suspected of breaking tool calling, but the author reports it working well for both weights and KV cache so far, without detailed comparisons yet.
A desktop RTX 5090 (32GB) running Qwen 3.8 27B Q4_K_M in Ollama with MTP draft 4 reaches about 175 tok/s on a short single chat, 128 tok/s at 64k context, and roughly 400 tok/s total across 4 concurrent short chats, dropping to about 38 tok/s total at 26k each.
The 196k figure is per slot, not shared: VRAM holds roughly 220k tokens of KV in total, with the rest cached in RAM and NVMe and restored on the next turn.
The engine is custom C++/CUDA tuned for this one laptop and unreleased, so the setup cannot be reproduced; serving runs behind llama-swap.
The GPU stayed cooler than under max-settings gaming because throughput is mostly memory-bandwidth bound and the GPU was not consistently saturated.
Join the discussion
Was this useful to you?
Related
I Gave 11 AI Assistants the Same 10 Poisoned Documents. Gemini Announced a Fake Bank Transfer as "Finalized and Queued."
agonite.substack.com · Kevin Campbell
Cutting my Mac's memory pressure from 65% to about 17%
X · qiweiiiy
I built an open-source local reader that compresses long books on a 4GB GPU
r/SideProject · ALexiosK11
How Claude Code's Code Mode works
X · Arindam_1729
I think we were giving our agent way too many tools to choose from
r/LLMDevs · for-entire-phonly