CanRun

Can I run Qwen3.8 27B on the GeForce RTX 5090?

Runs greatQ4_K_M fits in VRAM with 13.8 GB to spare: Runs great, 81.8 tok/s measured at 1k context (1 run; 8k estimate 69.8 tok/s, 61.4–78.2, calibrated estimate ±12%).

32 GB VRAM · 1,792.0 GB/s · FP16 104.8 TFLOPS. Assumes 32 GB of DDR5-5600 system RAM, Windows with this GPU driving the display, 8k context and an f16 KV cache. The verdict and quant file above stay the same anywhere from 16 to 128 GB of system RAM.

Every quant of Qwen3.8 27B on the GeForce RTX 5090

4 tracked GGUF files, smallest first, at 32 GB of system RAM and 8k context
QuantFile sizeVerdictSpeedMemoryRuns asNotes
Q2_K10.82 GBRuns great
est. 110.5 tok/s97.2–123.7calibrated estimate ±12%
11.7 / 32.0 GBFull GPU—
IQ4_XS15.48 GBRuns great
est. 78.3 tok/s68.9–87.7calibrated estimate ±12%
16.3 / 32.0 GBFull GPU—
Q4_K_Mbaseline17.44 GBRuns great
81.8 tok/s8k estimate 69.8 tok/s (61.4–78.2, calibrated estimate ±12%)measured (1 run, 1k context)
18.2 / 32.0 GBFull GPU—
Q8_029.12 GBRuns great
est. 42.3 tok/s37.2–47.4calibrated estimate ±12%
29.0 / 32.0 GBFull GPU—

Models with a thinking mode spend extra tokens thinking, so their speed thresholds are 1.5× stricter (30 / 12 / 3 tok/s). With thinking turned off, a model may do one grade better.

Where the memory goes at Q4_K_M

Weights, KV cache and compute buffer are the model; the OS reservation is the display driver.
GPU memory
Weights
16.5 GB
KV cache
0.5 GB
Compute buffer
0.6 GB
OS reserve
0.6 GB
Free
13.8 GB

0.97 GB of the 17.44 GB file stays off the graphics card: llama.cpp keeps the input embedding table in system RAM and does not load the 0.24 GB MTP (multi-token prediction) block by default. Turning on MTP speculative decoding (llama.cpp --spec-type draft-mtp) needs memory for that block plus KV cache for it.

Context length vs. KV cache

KV cache

Memory needed and verdict at Q4_K_M for each context length and KV cache type, with estimated tokens per second.
ContextKV f16KV q8_0KV q4_0
4k
17.3 GBRuns great
est. 70.8 tok/s62.3–79.3calibrated estimate ±12%
17.2 GBRuns great
est. 71.3 tok/s62.8–79.9calibrated estimate ±12%
17.1 GBRuns great
est. 71.6 tok/s63.0–80.2calibrated estimate ±12%
8k
17.6 GBRuns great
81.8 tok/s8k estimate 69.8 tok/s (61.4–78.2, calibrated estimate ±12%)measured (1 run, 1k context)
17.3 GBRuns great
est. 70.8 tok/s62.3–79.3calibrated estimate ±12%
17.2 GBRuns great
est. 71.3 tok/s62.7–79.9calibrated estimate ±12%
16k
18.2 GBRuns great
est. 67.8 tok/s59.6–75.9calibrated estimate ±12%
17.7 GBRuns great
est. 69.6 tok/s61.3–78.0calibrated estimate ±12%
17.4 GBRuns great
est. 70.7 tok/s62.2–79.2calibrated estimate ±12%
32k
19.4 GBRuns great
est. 64.0 tok/s56.4–71.7calibrated estimate ±12%
18.4 GBRuns great
est. 67.5 tok/s59.4–75.6calibrated estimate ±12%
17.9 GBRuns great
est. 69.5 tok/s61.1–77.8calibrated estimate ±12%
64k
21.9 GBRuns great
est. 57.7 tok/s50.8–64.6calibrated estimate ±12%
19.9 GBRuns great
est. 63.6 tok/s55.9–71.2calibrated estimate ±12%
18.8 GBRuns great
est. 67.2 tok/s59.1–75.3calibrated estimate ±12%
128k
26.8 GBRuns great
est. 48.2 tok/s42.4–54.0calibrated estimate ±12%
22.8 GBRuns great
est. 56.9 tok/s50.1–63.8calibrated estimate ±12%
20.6 GBRuns great
est. 63.1 tok/s55.5–70.6calibrated estimate ±12%
256k
36.5 GBRuns slowly
est. 3.5 tok/s2.8–4.2calibrated estimate ±20%
28.6 GBRuns great
est. 47.1 tok/s41.5–52.8calibrated estimate ±12%
24.3 GBRuns great
est. 56.2 tok/s49.4–62.9calibrated estimate ±12%

S = Runs great · A = Runs well · B = Runs slowly · F = Won't run

At Q4_K_M the verdict stays Runs great up to 128k context with an f16 KV cache, and up to 256k with q8_0.

Estimated speed

Generation
81.8 tok/s measured at 1k context (1 run; 8k estimate 69.8 tok/s, 61.4–78.2, calibrated estimate ±12%)
Prompt processing
about 4,070 tok/s (2,442–5,698, rough estimate ±40%)

Measured on this exact combination

Public benchmarks we calibrate against. Their conditions (context, backend, flags) can differ from the estimates above.

Measured on this exact combination
HardwareQuantBackendContextPrompt (tok/s)Generation (tok/s)FlagsSourceMeasured
GeForce RTX 5090Q4_K_Mllama.cpp1k3,972.081.8CUDAgithub.com2026-09-12

If this is not enough

How to run it

Commands for the Q4_K_M file. Both tools download from Hugging Face on first run.

File: Qwen3.8-27B-Q4_K_M.gguf (17.44 GB) from bartowski/Qwen3.8-27B-GGUF.

llama.cpp
llama-server -hf bartowski/Qwen3.8-27B-GGUF:Q4_K_M -c 8192 -ngl all -fa on
  • -ngl all loads every layer on the GPU.
  • -fa on enables flash attention (needed for KV cache quantization).
  • --cache-type-k q8_0 --cache-type-v q8_0 shrinks the KV cache to 0.29 GB at 8k context.
Ollama

PowerShell (quit the Ollama tray app first):

$env:OLLAMA_CONTEXT_LENGTH="8192"; ollama serve
ollama run hf.co/bartowski/Qwen3.8-27B-GGUF:Q4_K_M
  • Ollama defaults to 4k context on GPUs under 24 GB. Set OLLAMA_CONTEXT_LENGTH when starting the server, or /set parameter num_ctx inside the chat.
  • /set parameter num_ctx 8192

Related pages

Frequently asked questions

Can I run Qwen3.8 27B on the GeForce RTX 5090?

Q4_K_M fits in VRAM with 13.8 GB to spare: Runs great, 81.8 tok/s measured at 1k context (1 run; 8k estimate 69.8 tok/s, 61.4–78.2, calibrated estimate ±12%). Q4_K_M needs 17.6 GB at 8k context; this setup has 31.4 GB of usable memory and 28.0 GB of free system RAM.

How much context can Qwen3.8 27B use on the GeForce RTX 5090?

At Q4_K_M the verdict stays Runs great up to 128k context with an f16 KV cache (8.6 GB of KV) and up to 256k with a q8_0 KV cache (9.2 GB). The model supports up to 256k.

Which quant should I use, and how fast is it?

Q4_K_M (17.44 GB) is the recommended balance: Runs great, 81.8 tok/s measured at 1k context (1 run; 8k estimate 69.8 tok/s, 61.4–78.2, calibrated estimate ±12%). The largest tracked file that still gets Runs great is Q8_0 (29.12 GB), est. 42.3 tok/s (37.2–47.4, calibrated estimate ±12%).

Speeds are estimates from memory bandwidth, calibrated against public benchmarks, and each one comes with an error band and a confidence label. Real results vary with drivers, backend, context length and thermals.