Local model speed on an RTX 5090

NOVEMBER 14, 20264 min read
Stick figure with a stopwatch timing a small robot running along a long unrolling paper scroll.

Notes from speed runs on my RTX 5090 desktop this week. They're the first results from the evals I describe in this post. Speed only. No quality results yet.

Setup

  • Desktop with an RTX 5090 (32 GB), running WSL2 and Docker Desktop.
  • llama.cpp, one slot, 128K context, q8_0 KV cache.

Each run measures:

  • Time to first token (TTFT) on a fresh prompt at 1K, 8K, 32K, and about 120K tokens.
  • Decode speed at each depth. 256 output tokens with thinking off, so it's measured on code.
  • A warm turn: the next turn of the same conversation with about 1,000 new tokens. That's roughly one step of an agent session.
  • Time to the first answer token with thinking on, capped at 4,096 thinking tokens.
  • Memory once the model is loaded.

Prompts are real code (CPython standard library files). 5 samples per depth, 2 at the deepest.

Results

ModelSpec. decodingDecode tok/s (1K / 32K / 120K)TTFT (1K / 120K)Memory
Qwen3.8-27B abliterated, Q6_KMTP126 / 112 / 840.8 s / 74 s27.7 GiB
Qwen3.8-27B abliterated, Q6_KDFlash184 / 148 / 1080.7 s / 69 s29.9 GiB
Qwen3.8-27B stock, UD-Q6_KMTP117 / 110 / 870.8 s / 70 s27.4 GiB
Qwen3.8-27B stock, UD-Q6_KDFlash181 / 163 / 1450.8 s / 67 s29.7 GiB
OrcaCyber Nano 1.0, 15.7 GB mixMTP145 / 135 / 890.7 s / 64 s21.7 GiB
OrcaCyber Nano 1.0, 15.7 GB mixDFlash210 / 195 / 1630.8 s / 61 s24.1 GiB
OrcaSAQ-2 27B, IQ4_XSMTP161 / 139 / 960.9 s / 63 s21.4 GiB
OrcaSAQ-2 27B, IQ4_XSDFlash216 / 180 / 1370.8 s / 60 s23.8 GiB
Ripple 65B abliterated, 3-bit mixnone48 / 42 / 311.1 s / 115 s28.6 GiB

Memory is for the whole GPU. That includes about 1 GiB used by the Windows desktop.

DFlash vs MTP

Both are forms of speculative decoding: something cheap guesses the next few tokens, and the main model checks them all in one pass. MTP (multi-token prediction) uses a draft head built into the model, here 3 tokens at a time. DFlash uses a separate small block-diffusion drafter (z-lab's DFlash2 for the Qwen-based 27Bs), here 7 tokens at a time.

  • DFlash decoded 1.3-1.8x faster than MTP on all four 27B models.
  • Its acceptance rate was lower: about 47-64%, against 71-86% for MTP. It drafts more tokens per step, so it still comes out ahead.
  • It uses about 2.4 GiB more memory. With the Q6_K models that left about 2 GB free on the card.
  • It doesn't change the output. At temperature 0, three prompts gave identical tokens with and without it.

Context length

Long context mostly costs you on the first request. For the abliterated Q6_K with MTP:

  • TTFT: 0.8 s at 1K, 12.5 s at 32K, 74 s at 120K.
  • Warm turn: 0.7 s at 1K, 1.5 s at 120K.
  • Decode: 126 tok/s at 1K, 84 at 120K.

In an agent session most turns hit the prompt cache, so each step starts in about a second. What changes as the context grows is decode speed. The long wait only comes back if the cache is lost.

Stock vs abliterated

I ran stock (Unsloth UD-Q6_K) and abliterated (plain Q6_K) Qwen3.8-27B with the same llama.cpp build and server settings.

  • At 1K-8K, speed was about the same.
  • MTP acceptance was a bit lower on the abliterated model: 71-81% against 78-86%.
  • With DFlash at 32K and 120K, stock was faster: 163 and 145 tok/s, against 148 and 108. The DFlash drafter was trained for the stock model, which may be why. The 120K numbers are noisy (2 samples), and the abliterated run had a download going in the background.

The two files use different quant recipes and chat templates, so this isn't a clean pair. A proper one is on the to-do list.

Thinking time

With thinking on at 8K context, most 27B runs answered after 350-650 thinking tokens. That's about 5-10 s. In a few runs, one of the two samples hit the 4,096-token cap without answering.

Ripple 65B thought for about 1,800 tokens, 46 s.

Measurement problems

  • Docker Desktop hides container processes from WSL, so on the 5090 I can only read whole-GPU memory. I note the desktop's share before each run.
  • vLLM's /tokenize endpoint takes a different request format from llama.cpp's. My script fell back to estimating token counts, and the prompts came out about 22% shorter than labelled. That made vLLM's prefill look better than it was. Those runs are being redone, so vLLM isn't in this post.
  • Ripple 65B produced only reasoning text even with thinking off. So its decode numbers are on prose, not code.

Details

  • All runs on 2026-11-14, on an RTX 5090 (32 GB) under WSL2 with Docker Desktop.
  • llama.cpp build b12242 (3b4d6ab3f), Docker image ghcr.io/ggml-org/llama.cpp:server-cuda12-b12242.
  • Server flags: --ctx-size 131072 --parallel 1 -fa on --cache-type-k q8_0 --cache-type-v q8_0. MTP: --spec-type draft-mtp --spec-draft-n-max 3. DFlash: --spec-type draft-dflash -md <drafter.gguf> -ngld all --spec-draft-n-max 7.
  • Server sampling: temperature 1.0, top-p 0.95, top-k 20, reasoning effort medium. The depth sweep used temperature 0 and fixed 256-token replies.
  • Model revisions, per-depth numbers, pp512/tg128 and draft acceptance are in results.csv.

Limits

One run per configuration. Some runs had other things running on the machine. No quality numbers yet.