Skip to content
/ airelien.dev
Go back
Aurélien AMSELLEM

Qwen3.6-27B at 85-100 t/s on a 24GB RTX 5090 Laptop GPU

Adapting the 32GB desktop and 24GB Ampere recipes to a 24GB Blackwell consumer mobile (sm_120) GPU. Custom vLLM image, AutoRound INT4, MTP n=3 — sustained 85-100 t/s with 75K context.

Hi there. Today is about local inference and speculative decoding, because I just spent a weekend on it and I have numbers to show you.

It started with u/Kindly-Cantaloupe978’s post announcing 80 t/s at 218K context and Wasif Basharat’s Medium write-up at 85 t/s on an RTX 3090. I figured: if it runs on a 32GB desktop card and on 24GB Ampere (the RTX 3090 generation), can I reproduce it on my Olares One? It’s my small home-AI box: a mini-PC running Olares (a self-hosted OS built on Kubernetes) with an RTX 5090 Laptop GPU, 24GB of VRAM, ~896 GB/s of memory bandwidth, Blackwell architecture, sm_120. The answer is yes, but consumer mobile Blackwell has its own traps, and neither write-up mentions them.

A bit of vocabulary before the hard part. A token is a piece of a word (about 3/4 of an English word) and t/s means tokens per second, here the speed at which the model writes its answer. The context is how many tokens the model keeps in view; 75K is a bit more than half of a 300-page book. Qwen3.6-27B is a dense model: all 27 billion parameters work for every token, so producing one token means reading all the weights from VRAM. That’s why the card’s memory bandwidth sets the speed ceiling. Speculative decoding gets around that ceiling: a small prediction head guesses the next few tokens, the big model checks them all in one pass and keeps the ones it would have written itself. Same output, fewer expensive passes. Here the head is called MTP (multi-token prediction) and it ships with the model. The acceptance rate is the share of guessed tokens that get kept, and n is how many tokens are guessed per step.

After several iterations, here’s where I am: ~85-100 t/s sustained, peaking at 99.7 t/s, 75K max context, MTP n=3 with 92-95% acceptance once warm. That’s roughly 3x faster than llama.cpp on the same card (33-36 t/s with the best NVFP4 GGUF), and it matches or beats the 32GB desktop references. llama.cpp is the C++ inference engine that runs GGUF files; vLLM, the one I use here, is a Python/CUDA engine built to serve many requests at once.

The numbers at a glance

In this table, the last column is generation speed. The bold rows are the vLLM configs that work on my card, and the last two rows are other people’s references on their own hardware.

SetupHardwaret/s
llama.cpp UD-Q4_K_XL or NVFP4 GGUFRTX 5090M 24GB33-36
vLLM v0.17 NVFP4 (no MTP)RTX 5090M 24GB39
vLLM v0.19.1 NVFP4 + MTP n=1RTX 5090M 24GBOOM (model OK, MTP head 2.37 GiB doesn’t fit)
vLLM 0.19.1 + Lorbus AutoRound + MTP n=1RTX 5090M 24GB65
vLLM 0.19.1 + Lorbus AutoRound + MTP n=3RTX 5090M 24GB85-100
Reference: same recipe on 5090 desktop 32GBRTX 5090 32GB78-80
Reference: Wasif’s stack on 3090 24GBRTX 3090 24GB85

Five traps specific to 24GB mobile Blackwell

1. NVFP4 + MTP = OOM on 24GB

I tried sakamakismile/Qwen3.6-27B-Text-NVFP4-MTP first. NVFP4 is a quantization format: weights are stored as 4-bit floating-point numbers instead of 16-bit, which cuts the model’s size by about four, and Blackwell’s tensor cores can compute that format natively. On paper it’s perfect: NVFP4 gives 2x FP8 throughput on those tensor cores, and the model name says it includes MTP. It loads without complaint, and then:

torch.OutOfMemoryError: Tried to allocate 2.37 GiB. GPU has 2.25 GiB free.

That’s an OOM (out of memory): the program asks for more VRAM than the card has left, and it stops. Exactly the issue Wasif documents. vLLM’s Qwen3_5MTP loader allocates a fresh 2.37 GiB BF16 buffer for mtp.fc, because NVFP4 quantizes everything in the file. On 32GB it fits, on 24GB it breaks.

The fix: switch to Lorbus/Qwen3.6-27B-int4-AutoRound, which stores only mtp.fc already dequantized to BF16 in the file (~280 MiB). vLLM finds it on disk and no longer needs to allocate a buffer on the fly.

The trade-off: AutoRound INT4 uses Marlin kernels (GPU functions tuned for Ampere) instead of the native NVFP4 tensor cores. But MTP n=3 brings far more speed than NVFP4 acceleration would have gained on a consumer card limited by its bandwidth. I’ll take that deal without hesitating.

2. --kv-cache-dtype fp8_e5m2 rejected with NVFP4 checkpoints

The KV cache is the memory of what the model has already read in the conversation; it grows with the context and takes VRAM. You can store it in FP8 (8 bits) to fit more of it. With an NVFP4 checkpoint, vLLM refuses the fp8_e5m2 format:

ValueError: fp8_e5m2 kv-cache is not supported with fp8 checkpoints.

AutoRound INT4 isn’t part of the FP8 family, so fp8_e5m2 works there. Bonus: that format leaves a bigger KV pool than fp8_e4m3 (the Olares One ends up with 23,760 cached tokens with fp8_e5m2 and gpu-mem-util 0.97).

3. PR vllm#36325 (Blackwell TMA fix) is mandatory on sm_12x

A PR is a proposed change on GitHub. Without this one, the Triton autotuner runs out of memory during warmup. is_tma_supported returns True for any compute capability ≥9, but consumer Blackwell doesn’t really do TMA (Tensor Memory Accelerator, the asynchronous memory-copy engine of recent NVIDIA GPUs), and the descriptor buffer allocations blow up VRAM. The PR caps the check at < 12. It’s a 4-line patch that I cherry-picked into a custom image.

4. patch_tolist_cudagraph.py is now public

The patch that was private in Wasif’s article now lives in noonghunna/qwen36-27b-single-3090/patches/. 165 lines that fix a .tolist() call which forces a CPU sync. That call breaks the capture of CUDA graphs (sequences of GPU operations recorded once and replayed to save time) during warmup’s continuation-chunk simulation, when spec-decode and chunked-prefill are combined. The patch is required even with fp8 KV, not just with TurboQuant. Thanks to them for publishing it!

5. MTP n=3 really fits on 24GB with Lorbus

I expected n=3 to run out of memory (Wasif’s article warns about it on 24GB with sakamakismile). With Lorbus’s dequantized mtp.fc and --gpu-memory-utilization 0.97, n=3 fits fine. Acceptance length goes up to 3.86/3.0 (98%/96%/92% per position), and generation throughput peaks at 99.7 t/s.

The recipe

Custom Docker image (FROM vllm/vllm-openai:v0.19.1-cu130):

vLLM args:

--model Lorbus/Qwen3.6-27B-int4-AutoRound
--quantization auto_round
--dtype float16
--attention-backend flashinfer
--kv-cache-dtype fp8_e5m2
--max-model-len 75000
--gpu-memory-utilization 0.97
--max-num-seqs 1
--max-num-batched-tokens 2048
--language-model-only
--enable-prefix-caching
--enable-chunked-prefill
--enable-auto-tool-choice
--tool-call-parser qwen3_coder
--reasoning-parser qwen3
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'

The lines that matter most: --max-model-len 75000 sets the max context, --gpu-memory-utilization 0.97 lets vLLM take 97% of the VRAM, --max-num-seqs 1 tunes it for a single user, and the last line turns on MTP with 3 guessed tokens per step.

Env:

VLLM_USE_FLASHINFER_SAMPLER=1
VLLM_MEMORY_PROFILER_ESTIMATE_CUDAGRAPHS=1
VLLM_ALLOW_LONG_MAX_MODEL_LEN=1
VLLM_MARLIN_USE_ATOMIC_ADD=1
VLLM_FLOAT32_MATMUL_PRECISION=high
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True,max_split_size_mb:512
NCCL_CUMEM_ENABLE=0
NCCL_P2P_DISABLE=1
OMP_NUM_THREADS=1
CUDA_DEVICE_MAX_CONNECTIONS=8

Steady-state metrics

Avg generation throughput: 85-100 t/s (variance with content)
Peak: 99.7 t/s
Mean acceptance length: 3.20 → 3.86 (out of 3 max)
Per-position acceptance: 98%/93%/88%
Avg draft acceptance rate: 92-95%
Model loading: 16.87 GiB
KV pool: 23,760 tokens (3.24 GiB)
KV cache usage during generation: 21-31%

The number to look at is the average generation throughput. Per-position acceptance reads like this: the first guessed token is kept 98% of the time, the second 93%, the third 88%.

A few loose notes

Credits

That’s it! If anyone wants the custom Dockerfile or the Helm chart, ask me, I’m happy to share. And if you run a 5090M, 4080M or 3090 24GB and manage to reproduce these numbers (or not), I’d like to hear about it. See you soon!


Disclosure — All benchmarks in this post run on my own Olares One. If this content helped you and you’re considering buying one, ordering through this referral link gets you $300 off ($4,699 instead of $4,999), stackable with the $300 Black Friday discount starting November 17: $600 off in total ($4,399). I’m mentioning this out of transparency — and yes, incidentally, it helps keep the blog alive (hosting, domain, and the time I spend writing here).

Share this post on:

Comments