Fits: Qwen3.8-27B needs 19.36 GiB on RTX 4090 (Rough estimate)

Fits. Needs 16.11 GiB–19.36 GiB on RTX 4090 (24 GB GDDR6X) against 22.00 GiB net. GGUF UD-Q4_K_M (Unsloth), 8,192 tokens. Rough estimate

Conditional memory judgement for one configuration. Change context, quant, or engine and the conclusion can change. Configuration used on this page: GGUF UD-Q4_K_M (Unsloth), 8,192 cached tokens, 1 sequence, engine llama.cpp. Status: Likely fits. Software: Not verified..

Likely fitsNot verifiedThis result is an estimate, not a measured trace.

How this estimate is calculated

Catalog config for Qwen/Qwen3.8-27B (revision 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0) is the Hugging Face config.json linked below. text_config records 64 layers, hidden size 5,120, 24 attention heads, 4 KV heads, head_dim 256, and max_position_embeddings 262,144. The hybrid spec is 16 groups of 3 Gated DeltaNet layers and 1 gated-attention layer (16 attention layers, 48 linear layers). KV uses those attention layers only. The all-layer GQA formula is not used. This page pins GGUF UD-Q4_K_M (Unsloth), file Qwen3.8-27B-UD-Q4_K_M.gguf from unsloth/Qwen3.8-27B-GGUF, 16,464,440,224 bytes. The model page auto-select is GGUF Q4_K_M (mradermacher), file Qwen3.8-27B.Q4_K_M.gguf, a different published file. At 8,192 tokens, 1 sequence, FP16 KV, llama.cpp, the calculator estimates 16.11 GiB–19.36 GiB. This catalog has no calibration and no planned benchmark for this model. The range is a calculator estimate, not a measured run.

On RTX 4090 the catalog net budget is 22.00 GiB after the default reserve. 24 GB GDDR6X is discrete VRAM. Host RAM is not added to that budget.

Calculator notes for this setup

Verdict on GeForce RTX 4090 24GB (desktop)

Yes, run Q4_K_M. The calculator puts it at 16.4 GiB–19.7 GiB at 8,192 tokens, inside 22.0 GiB of usable VRAM (after the driver reserve). Q8_0 is the next step up and does not clear the bar (27.8 GiB–33.1 GiB).

With Q4_K_M, the longest context that still counts as a fit is about 9,030 tokens of a 262,144-token native window, one sequence, fp16 KV cache.

Published GGUF quants for Qwen3.8-27B on GeForce RTX 4090 24GB (desktop) at 8,192 tokens
GGUF quantFile weightsKV cacheEstimated totalVerdict
Q8_027.1 GiB0.5 GiB27.8 GiB–33.1 GiBDoes not fit
Q6_K20.9 GiB0.5 GiB21.7 GiB–25.9 GiBTight
Q5_K_M18.2 GiB0.5 GiB19.0 GiB–22.7 GiBTight
Q4_K_M (recommended)15.7 GiB0.5 GiB16.4 GiB–19.7 GiBFits

Engine llama.cpp, one sequence, fp16 KV. File weights are the published GGUF sizes in the catalog. Totals come from the same calculator that powers the tool below; they are estimates, not a measurement of this setup.

Fixed page configuration

Qwen3.8-27B GGUF Q4-class on RTX 4090. Hybrid KV uses the gated-attention adapter; vision/MTP off by default.

Technical identifiers and share data
  • Modelqwen3.8-27b
  • Hardwarenvidia-geforce-rtx-4090-24gb-desktop
  • Quantizationgguf-ud-q4_k_m
  • Share fragment for this identityv2.eyJzY2hlbWFWZXJzaW9uIjoyLCJjYWxjdWxhdG9yVmVyc2lvbiI6IjAuMy4wIiwiZGF0YXNldFZlcnNpb24iOiIyMDI2LTEwLTAyLjEiLCJjb25maWciOnsibW9kZWxJZCI6InF3ZW4zLjgtMjdiIiwiaGFyZHdhcmVJZCI6Im52aWRpYS1nZWZvcmNlLXJ0eC00MDkwLTI0Z2ItZGVza3RvcCIsImRldmljZUNvdW50IjoxLCJxdWFudGl6YXRpb25JZCI6ImdndWYtdWQtcTRfa19tIiwiY29udGV4dFRva2VucyI6ODE5MiwiY29uY3VycmVudFNlcXVlbmNlcyI6MSwiZW5naW5lIjoibGxhbWEuY3BwIiwia3ZUeXBlIjoiZnAxNiJ9fQ

Memory breakdown

Weight artifact
15.33 GiB (16,464,440,224 bytes)
Raw KV cache
0.50 GiB (536,870,912 bytes)
Engine extras / workspace
0.27 GiB–3.53 GiB
Total estimated demand
16.11 GiB–19.36 GiB
Net calculator budget
22.00 GiB
OS / display reserve
2.00 GiB
Remaining vs net budget
2.64 GiB–5.89 GiB

19.36 GiB high estimate vs 22.00 GiB net

Enough memory does not mean this engine, quant, and OS will run. Support does not mean it will be fast.

Other published files on this device

Same model, device and context (8,192 tokens, 1 sequence, FP16 KV). Each row is one published weight-file set with its usual engine, sorted by memory.

Show all 28 published files
QuantizationEngineEstimated memoryFit
BF16 safetensorsvllm53.02 GiB–63.15 GiBDoes not fit · Rough estimate
GGUF BF16 (Unsloth)llama.cpp51.68 GiB–61.08 GiBDoes not fit · Rough estimate
GGUF UD-Q8_K_XL (Unsloth)llama.cpp30.07 GiB–35.74 GiBDoes not fit · Rough estimate
GGUF Q8_0 (Unsloth)llama.cpp27.83 GiB–33.10 GiBDoes not fit · Rough estimate
GGUF Q8_0 (mradermacher)llama.cpp27.83 GiB–33.10 GiBDoes not fit · Rough estimate
GGUF UD-Q6_K_XL (Unsloth)llama.cpp24.33 GiB–29.01 GiBDoes not fit · Rough estimate
GGUF Q6_K (mradermacher)llama.cpp21.66 GiB–25.88 GiBTight fit · Rough estimate
GGUF UD-Q5_K_M (Unsloth)llama.cpp19.19 GiB–22.97 GiBTight fit · Rough estimate
GGUF Q5_K_M (mradermacher)llama.cpp18.97 GiB–22.71 GiBTight fit · Rough estimate
GGUF Q5_K_S (mradermacher)llama.cpp18.44 GiB–22.10 GiBTight fit · Rough estimate
GGUF UD-Q4_K_XL (Unsloth)llama.cpp17.13 GiB–20.55 GiBTight fit · Rough estimate
GGUF Q4_1 (Unsloth)llama.cpp17.11 GiB–20.53 GiBTight fit · Rough estimate
GGUF Q4_K_M (mradermacher)llama.cpp16.43 GiB–19.74 GiBFits · Rough estimate
GGUF UD-Q4_K_M (Unsloth) This pagellama.cpp16.11 GiB–19.36 GiBFits · Rough estimate
GGUF Q4_0 (Unsloth)llama.cpp15.73 GiB–18.91 GiBFits · Rough estimate
GGUF Q4_K_S (mradermacher)llama.cpp15.51 GiB–18.66 GiBFits · Rough estimate
GGUF IQ4_XS (mradermacher)llama.cpp15.13 GiB–18.22 GiBFits · Rough estimate
GGUF Q3_K_L (mradermacher)llama.cpp14.33 GiB–17.28 GiBFits · Rough estimate
GGUF UD-IQ4_XS (Unsloth)llama.cpp14.05 GiB–16.94 GiBFits · Rough estimate
GGUF Q3_K_M (mradermacher)llama.cpp13.35 GiB–16.12 GiBFits · Rough estimate
GGUF Q3_K_S (mradermacher)llama.cpp12.19 GiB–14.76 GiBRuns comfortably · Rough estimate
GGUF UD-IQ3_S (Unsloth)llama.cpp11.99 GiB–14.53 GiBRuns comfortably · Rough estimate
GGUF UD-IQ3_XXS (Unsloth)llama.cpp10.96 GiB–13.32 GiBRuns comfortably · Rough estimate
GGUF Q2_K (mradermacher)llama.cpp10.89 GiB–13.24 GiBRuns comfortably · Rough estimate
GGUF UD-IQ2_S (Unsloth)llama.cpp8.57 GiB–10.52 GiBRuns comfortably · Rough estimate
GGUF UD-IQ2_XXS (Unsloth)llama.cpp7.54 GiB–9.31 GiBRuns comfortably · Rough estimate
GGUF UD-IQ1_M (Unsloth)llama.cpp7.04 GiB–8.72 GiBRuns comfortably · Rough estimate
GGUF UD-IQ1_S (Unsloth)llama.cpp6.54 GiB–8.14 GiBRuns comfortably · Rough estimate

Assumptions that affect this result

Open this combo in the calculatorKV Cache

Related pages

Sources

Calculator

This combo page keeps the route model and device. Customize to change them on the main calculator; the share then keeps that identity.

Loading catalog snapshot…

Choose a model first, then check a device.

Quantization

Device type

Workload

Context length primarily affects KV cache memory.

Advanced settings
Runtime

Engine and KV cache type for this estimate.

Workload

Overhead scenario and the prefill workspace.

Topology

How the model is split across devices. Memory is not added together.

Replica count is an advanced deployment option. Quantity is nodes or GPUs, not replicas.

Budget

System reserve and safety margin. An empty number keeps the previous value.

GiB (2^30 bytes)

%

Custom model

Import a config or type the architecture. Nothing is scanned until you import.

Parsed in the browser. The file is not uploaded.

Only huggingface.co, config.json, no token. Private repos are rejected.

Search or pick a catalog checkpoint to see memory demand.

Search or pick a catalog checkpoint to see memory demand.