CanRun

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

Runs greatQ4_K_M fits in VRAM with 5.8 GB to spare: Runs great, 49.8 tok/s measured at 1k context (1 run; 8k estimate 39.3 tok/s, 34.5–44.0, calibrated estimate ±12%).

24 GB VRAM · 1,008.0 GB/s · FP16 82.6 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. The GeForce RTX 3090 Ti has the same memory setup (24 GB, 1,008.0 GB/s), so its generation-speed estimate is the same; only prompt processing differs. Prompt processing: about 3,208 tok/s (1,925–4,491, rough estimate ±40%) here vs about 1,553 tok/s (932–2,175, rough estimate ±40%) on the GeForce RTX 3090 Ti.

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

4 tracked GGUF files, smallest first, at 32 GB of system RAM and 8k context
QuantFile sizeVerdictSpeedMemoryRuns asNotes
Q2_K10.82 GBRuns great
est. 62.1 tok/s54.7–69.6calibrated estimate ±12%
11.7 / 24.0 GBFull GPU—
IQ4_XS15.48 GBRuns great
est. 44.1 tok/s38.8–49.3calibrated estimate ±12%
16.3 / 24.0 GBFull GPU—
Q4_K_Mbaseline17.44 GBRuns great
49.8 tok/s8k estimate 39.3 tok/s (34.5–44.0, calibrated estimate ±12%)measured (1 run, 1k context)
18.2 / 24.0 GBFull GPU—
Q8_029.12 GBRuns slowly
est. 5.3 tok/s4.3–6.4calibrated estimate ±20%
24.0 / 24.0 GB + 6.8 GB RAMPartial offload—

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
5.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. 39.8 tok/s35.1–44.6calibrated estimate ±12%
17.2 GBRuns great
est. 40.1 tok/s35.3–44.9calibrated estimate ±12%
17.1 GBRuns great
est. 40.3 tok/s35.4–45.1calibrated estimate ±12%
8k
17.6 GBRuns great
49.8 tok/s8k estimate 39.3 tok/s (34.5–44.0, calibrated estimate ±12%)measured (1 run, 1k context)
17.3 GBRuns great
est. 39.8 tok/s35.0–44.6calibrated estimate ±12%
17.2 GBRuns great
est. 40.1 tok/s35.3–44.9calibrated estimate ±12%
16k
18.2 GBRuns great
est. 38.1 tok/s33.5–42.7calibrated estimate ±12%
17.7 GBRuns great
est. 39.2 tok/s34.5–43.9calibrated estimate ±12%
17.4 GBRuns great
est. 39.8 tok/s35.0–44.5calibrated estimate ±12%
32k
19.4 GBRuns great
est. 36.0 tok/s31.7–40.3calibrated estimate ±12%
18.4 GBRuns great
est. 38.0 tok/s33.4–42.5calibrated estimate ±12%
17.9 GBRuns great
est. 39.1 tok/s34.4–43.8calibrated estimate ±12%
64k
21.9 GBRuns great
est. 32.5 tok/s28.6–36.4calibrated estimate ±12%
19.9 GBRuns great
est. 35.7 tok/s31.5–40.0calibrated estimate ±12%
18.8 GBRuns great
est. 37.8 tok/s33.3–42.3calibrated estimate ±12%
128k
26.8 GBRuns slowly
est. 5.8 tok/s4.7–7.0calibrated estimate ±20%
22.8 GBRuns great
est. 32.0 tok/s28.2–35.9calibrated estimate ±12%
20.6 GBRuns great
est. 35.5 tok/s31.2–39.7calibrated estimate ±12%
256k
36.5 GBWon't run
est. 1.6 tok/s1.3–1.9calibrated estimate ±20%
28.6 GBRuns slowly
est. 4.3 tok/s3.4–5.1calibrated estimate ±20%
24.3 GBRuns slowly
est. 12.4 tok/s9.9–14.8calibrated estimate ±20%

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

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

Estimated speed

Generation
49.8 tok/s measured at 1k context (1 run; 8k estimate 39.3 tok/s, 34.5–44.0, calibrated estimate ±12%)
Prompt processing
about 3,208 tok/s (1,925–4,491, 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 4090Q4_K_Mllama.cpp1k3,073.049.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 4090?

Q4_K_M fits in VRAM with 5.8 GB to spare: Runs great, 49.8 tok/s measured at 1k context (1 run; 8k estimate 39.3 tok/s, 34.5–44.0, calibrated estimate ±12%). Q4_K_M needs 17.6 GB at 8k context; this setup has 23.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 4090?

At Q4_K_M the verdict stays Runs great up to 64k context with an f16 KV cache (4.3 GB of KV) and up to 128k with a q8_0 KV cache (4.6 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, 49.8 tok/s measured at 1k context (1 run; 8k estimate 39.3 tok/s, 34.5–44.0, calibrated estimate ±12%). It is also the largest tracked file that gets this verdict.

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.