As an Amazon Associate we earn from qualifying purchases.
Qwen 3.8 27B is one of the strongest open models you can run at home: 27 billion parameters, a hybrid architecture, native vision input and a 262,144-token native context window, released in August 2026. It is also a model that punishes guesswork, because the VRAM it needs swings from about 13GB to over 60GB depending on the quantisation and the context length you choose. Pick the wrong combination and the model simply refuses to load.
This guide gives you the estimation method, the measured numbers for the common quantisations, and the card each setup needs. The figures come from measured llama.cpp memory plans published in late 2026 and from the Ollama model page, and every number is labelled with its source and its context length, because a VRAM figure without a context length is meaningless.
Quick Answer
To run Qwen 3.8 27B locally, plan on 24GB of VRAM for the standard Q4_K_M quantisation. The Q4_K_M weights are about 17.8 to 19GB, and measured llama.cpp plans put the total at 23.74GB on a 24GB card with a 128K context and an 8-bit KV cache, which fits an RTX 4090 or RTX 3090. A 16GB card can run a 3-bit quant with up to 64K of context, and a 32GB card holds Q4_K_M with the full 262K context. An 8GB card cannot run this model at a usable quality, and full precision needs about 60GB, which is datacenter territory.
The Estimation Method
Weights, Cache and Overhead
Three things share your VRAM when a model runs: the weights, the KV cache, and the runtime overhead. The weights are the fixed cost, and you can estimate them with a simple formula: parameter count multiplied by bytes per parameter. At 16-bit precision, each parameter takes 2 bytes, so a 27B model needs about 54 to 60GB. At 8-bit, each parameter takes 1 byte, so about 27 to 29GB. At 4-bit, each parameter takes about half a byte, so about 13 to 19GB depending on the exact quantisation method. Q4_K_M is the common 4-bit choice and its file is about 17.8 to 19GB, while a 3-bit quant such as UD-Q3_K_XL is about 13.15GB.
The KV cache is the variable cost, and it grows with every token of context. It stores the attention keys and values for the conversation so far, so a longer context needs more memory. Qwen 3.8 27B is unusual here: only 16 of its 64 layers use full attention, while the rest use linear attention with a small fixed state, so its cache grows about four times slower than a same-size dense-attention model. Measured figures put the cache at about 64 KiB per token with a 16-bit cache, or about 2.3GB at 32K tokens and 8.75GB at 128K tokens. An 8-bit cache halves those numbers, which is why it roughly doubles the context you can fit.
The third cost is overhead: the runtime, the output buffers and the scratch memory the inference engine needs, typically 0.5 to 1GB. Add the three together and compare with the card memory, keeping at least 1GB of headroom, since a model that exactly fills the card will fail to load. The formula is simple, but the numbers change with every quantisation and every context length, which is why the measured table below matters more than any single estimate.
What the Measurements Actually Show
Measured llama.cpp memory plans from October 2026, run against the real GGUF files, give a clear picture. On a 16GB card, a 3-bit quant at 13.15GB fits with up to 64K tokens of context using an 8-bit cache, using about 15.29GB in total. On a 24GB card, the same 3-bit quant reaches 256K tokens, while the standard Q4_K_M at 18.97GB reaches 128K tokens with an 8-bit cache at 23.74GB total, or 64K tokens with a 16-bit cache. On a 32GB card, Q4_K_M reaches the full 262K context at about 28.98GB total, and an 8-bit quant at 28.6GB reaches 128K tokens. A 48GB card holds the 8-bit quant with the full 256K context.
The Ollama model page tells a more conservative story, listing 32GB as the minimum and 48GB as recommended for its Q4_K_M build, because Ollama reserves more headroom and defaults to a larger cache. Both views are honest: llama.cpp with a tuned cache squeezes Q4_K_M onto a 24GB card, while Ollama wants 32GB for the same model with comfortable headroom. If you run Ollama, plan on 32GB. If you run llama.cpp and you are willing to tune the cache, 24GB works.
Which Card Runs It, and How Well
The 16GB Card: Possible, With Compromises
A 16GB card such as an RTX 4060 Ti 16GB or RTX 5060 Ti 16GB can run Qwen 3.8 27B, but only at a 3-bit quant with a context window up to 64K tokens. The weights take about 13.15GB, leaving little room for cache, so long documents or long conversations will run out of context quickly. Generation speed is usable for chat, since a smaller quant still produces good output, but the quality loss from 3-bit quantisation is noticeable on hard reasoning tasks. This is a workable setup for trying the model, not for relying on it daily. Note that a 16GB card cannot hold the standard Q4_K_M weights at all, since the file alone is larger than the memory available after overhead.
The 24GB Card: The Sweet Spot
A 24GB card such as an RTX 3090 or RTX 4090 is the sweet spot for this model. It runs Q4_K_M, the standard quality level, with up to 128K tokens of context using an 8-bit KV cache, which covers most real work: long documents, large codebases and extended conversations. The working set is about 23.74GB, which fits with a small margin, so you should close other GPU applications before loading the model. With a 16-bit cache the same card reaches 64K tokens, which is still generous. This is the setup most home users should aim for, and it is the reason the RTX 4090 remains popular for local AI even as newer cards arrive.
The 32GB Card and Beyond: Full Context
A 32GB card such as an RTX 5090 holds Q4_K_M with the full 262,144-token native context, using about 28.98GB in total, and it can also run an 8-bit quant with 128K tokens for higher quality. That full context is the model headline feature: you can load an entire codebase or a very long document and ask questions about it without truncation. A 48GB workstation card goes further, holding the 8-bit quant with the full context, but that is professional territory. For most home users, 32GB is the comfortable ceiling, and 24GB is the practical floor.
Checking the Model Page Before You Download
Model releases change, and Qwen 3.8 27B is no exception. Before downloading, open the model card on Hugging Face and check the file sizes for the quantisation you plan to use, since a new GGUF build can shift the weights by a gigabyte or more. The two repositories most people pull from are the llama.cpp GGUF build and the Unsloth GGUF build, and their file sizes differ slightly for the same quantisation, so confirm the exact file you intend to run. Also check the Ollama library page for the model, since Ollama repackages the weights and its published size reflects the build it serves, which was about 17.1GB for its 4-bit version in late 2026. If the numbers on the page differ from the ones in this guide, trust the page, since it reflects the current release. The same advice applies to the context length: the model card lists a 262,144-token native context, extensible to one million tokens in the cloud, but the local context depends on your runtime and your cache settings, so confirm what your tool actually supports before planning around the maximum.
Common Mistakes
- Quoting a VRAM figure without a context length, since the cache can add anywhere from 2GB to 9GB depending on the window.
- Trying to load Q4_K_M on a 16GB card, where the weights alone exceed the available memory.
- Using a 16-bit KV cache by default, which halves the context you could fit with an 8-bit cache.
- Forgetting the 1GB of runtime overhead, so a model that should fit by the numbers fails to load.
- Trusting a single calculator figure without checking which quantisation and which context length it assumed.
Frequently Asked Questions
Can I Run Qwen 3.8 27B on a 16GB Card?
Yes, at a 3-bit quant with up to 64K tokens of context, using about 15.29GB in total. You cannot run the standard Q4_K_M build on 16GB, since the weights alone are about 17.8GB. Expect some quality loss from the heavier quantisation, and keep other GPU applications closed while the model runs.
How Much VRAM Does Q4_K_M Need?
The weights are about 17.8 to 19GB, and the total with cache and overhead is about 23.74GB at 128K context with an 8-bit cache, or about 24 to 27GB at 64K context with a 16-bit cache. A 24GB card fits it with a small margin under llama.cpp, while Ollama recommends 32GB for comfortable headroom.
Does a Longer Context Really Cost That Much VRAM?
Yes, and it is the cost most people underestimate. The cache grows with every token, and at 128K tokens it adds about 8.75GB with a 16-bit cache. Qwen 3.8 27B is kinder than most models here, since only a quarter of its layers use full attention, but a 262K context still needs about 8.6GB of cache alone.
Should I Use Ollama or llama.cpp for This Model?
Ollama is simpler and handles the setup for you, but it reserves more memory and lists 32GB as the minimum for Q4_K_M. llama.cpp gives you control over the cache precision and the context length, and it can fit the same model on a 24GB card. Choose Ollama for convenience and llama.cpp when you need to squeeze the model onto a smaller card.
Related Products
- ASUS ProArt GeForce RTX 4060 Ti OC Edition, 16GB GDDR6, the smallest card that can run Qwen 3.8 27B at a 3-bit quant.
ASIN: B0CCC7MP3H - ASUS Dual GeForce RTX 4060 Ti OC Edition, 16GB GDDR6, a second 16GB option for trying the model at 3-bit precision.
ASIN: B0CC33B3PZ - MSI GeForce RTX 5070 Ventus 2X OC, 12GB GDDR7, a current-generation card for lighter local models, though 12GB is not enough for this 27B model.
ASIN: B0DYGDT9YD
Write Your Review
No reviews yet. Be the first to share your experience!