# Local model speed on an RTX 5090

- Author: Eishan Lawrence
- Published: 2026-11-14
- URL: https://www.eishanlawrence.com/blog/local-model-speed
- Results (CSV): https://www.eishanlawrence.com/blog/local-model-speed/results.csv (Every speed measurement in the post, one row per run and context depth, with model repo and revision, llama.cpp build, server flags and memory.)

> llama.cpp speed on an RTX 5090 for Qwen3.8-27B (stock and abliterated Q6_K), OrcaCyber Nano, OrcaSAQ-2 27B and Ripple 65B: decode tok/s and time to first token from 1K to 120K context, and DFlash vs MTP speculative decoding.

Notes from speed runs on my RTX 5090 desktop this week. They're the first results from the evals I describe in [this post](https://www.eishanlawrence.com/blog/local-evals-goals). 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

| Model | Spec. decoding | Decode tok/s (1K / 32K / 120K) | TTFT (1K / 120K) | Memory |
| --- | --- | --- | --- | --- |
| [Qwen3.8-27B abliterated, Q6_K](https://huggingface.co/orcarouter/Qwen3.8-27B-Uncensored-GGUF) | MTP | 126 / 112 / 84 | 0.8 s / 74 s | 27.7 GiB |
| [Qwen3.8-27B abliterated, Q6_K](https://huggingface.co/orcarouter/Qwen3.8-27B-Uncensored-GGUF) | DFlash | 184 / 148 / 108 | 0.7 s / 69 s | 29.9 GiB |
| [Qwen3.8-27B stock, UD-Q6_K](https://huggingface.co/unsloth/Qwen3.8-27B-GGUF) | MTP | 117 / 110 / 87 | 0.8 s / 70 s | 27.4 GiB |
| [Qwen3.8-27B stock, UD-Q6_K](https://huggingface.co/unsloth/Qwen3.8-27B-GGUF) | DFlash | 181 / 163 / 145 | 0.8 s / 67 s | 29.7 GiB |
| [OrcaCyber Nano 1.0, 15.7 GB mix](https://huggingface.co/orcarouter/OrcaCyber-Nano-1.0) | MTP | 145 / 135 / 89 | 0.7 s / 64 s | 21.7 GiB |
| [OrcaCyber Nano 1.0, 15.7 GB mix](https://huggingface.co/orcarouter/OrcaCyber-Nano-1.0) | DFlash | 210 / 195 / 163 | 0.8 s / 61 s | 24.1 GiB |
| [OrcaSAQ-2 27B, IQ4_XS](https://huggingface.co/orcarouter/OrcaSAQ-2-Cyber-27B-Uncensored-GGUF) | MTP | 161 / 139 / 96 | 0.9 s / 63 s | 21.4 GiB |
| [OrcaSAQ-2 27B, IQ4_XS](https://huggingface.co/orcarouter/OrcaSAQ-2-Cyber-27B-Uncensored-GGUF) | DFlash | 216 / 180 / 137 | 0.8 s / 60 s | 23.8 GiB |
| [Ripple 65B abliterated, 3-bit mix](https://huggingface.co/orcarouter/Ripple-65B-abliterated-GGUF) | none | 48 / 42 / 31 | 1.1 s / 115 s | 28.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](https://arxiv.org/abs/2211.17192): something cheap guesses the next few tokens, and the main model checks them all in one pass. [MTP](https://arxiv.org/abs/2404.19737) (multi-token prediction) uses a draft head built into the model, here 3 tokens at a time. [DFlash](https://arxiv.org/abs/2602.06036) uses a separate small block-diffusion drafter ([z-lab's DFlash2](https://huggingface.co/z-lab/Qwen3.8-27B-DFlash2-GGUF) 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](https://www.eishanlawrence.com/blog/local-model-speed/results.csv).

## Limits

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