Skip to content

Firsthand.today

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.

    — amejin, Gargle-Loaf-Spunk, tebjan · Reddit
  • 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.

    — Conscious-Piece1688 · Reddit
  • 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.

    — tebjan, Phathatter · Reddit
  • The engine is custom C++/CUDA tuned for this one laptop and unreleased, so the setup cannot be reproduced; serving runs behind llama-swap.

    — tebjan, Glittering-Call8746, ZucchiniMedical2532 · Reddit
  • The GPU stayed cooler than under max-settings gaming because throughput is mostly memory-bandwidth bound and the GPU was not consistently saturated.

    — tebjan, jsonmeta · Reddit

Join the discussion

Was this useful to you?