Tutorial
Run Qwen3.8 27B Locally: Which Unsloth Quant Fits 28 GB VRAM
Which Unsloth GGUF quant of Qwen3.8 27B fits 28 GB of VRAM, what the Nov 11 Dynamic V3.1 update changed, plus a fit script and a blank test table.
Quick answer
On 28 GB of VRAM, the Unsloth quants of Qwen3.8 27B up to UD-Q4_K_XL (17.66 GB) fit comfortably on the GPUs alone with a 64K context, and UD-Q5_K_XL (20.98 GB of weights) is marginal at that context. Adding the 0.93 GB vision file or the MTP file (1.37 GB) puts UD-Q5_K_XL over 28 GB (inferred). That is our own arithmetic (inferred), shown below, and not a measurement. UD-Q4_K_XL is the quant Unsloth’s page uses in its own examples, and it leaves the most room for context. The bigger quants, UD-Q6_K_XL and above, don’t fit in 28 GB once you add a long context cache, so they’d spill into system RAM.
The rig this post is written around has 28 GB of VRAM spread across 3 GPUs and 36 GB of system RAM. We make no speed claim about it. Fitting in memory and running fast are different questions, and the last section gives you a blank table to answer the second one yourself.
One more thing worth knowing: Unsloth re-made most of the Qwen3.8 27B GGUF files on November 11, 2026. If you downloaded yours before November 10, download again (checked 2026-11-14).

What the Nov 11 Dynamic V3.1 update is
Unsloth’s Qwen3.8 page has a section titled “Dynamic V3.1 Update (November 11th 2026)” (checked 2026-11-14). It says the Qwen3.8 27B GGUFs were re-made with an updated Unsloth Dynamic V3.1 (preview) algorithm, which Unsloth says improves accuracy by 5 to 10 percent at the same file size on most benchmarks. That 5 to 10 percent figure is a vendor claim. We have not tested it and cannot verify it from the page. It also is not a Qwen release. Qwen’s own model page was last modified on 2026-11-07 (checked 2026-11-14), so this is Unsloth changing how it compresses the same weights.
The practical advice is simple. The Hugging Face commit history for unsloth/Qwen3.8-27B-GGUF shows “New UD3.1 quants” commits on 2026-11-10 and 2026-11-11 (checked 2026-11-14). If your files came from before that, re-download them. Compare the file size and modified date on the repo page against what’s on your disk.
The 3 bit status is not confirmed
The page says “most quants from 2bit until 6bit are updated” and that Unsloth didn’t update the 3 bit UD3 quants because they did on par with V3.1. The repo tells a messier story. A commit titled “New UD3.1 UD-Q3_K_XL” landed on 2026-11-12, after the page text. And an open Hugging Face discussion titled “Qwen3.8-27B-UD-IQ3_S.gguf is still old one” was posted on 2026-11-11 (checked 2026-11-14).
So we can’t tell you from here which 3 bit files are the new ones. If you want a 3 bit quant, check the file’s commit date on the repo’s file list, or just pick a 4 bit quant, which the page lists as updated.
Qwen3.8 27B facts
Here is what the sources say (checked 2026-11-14), with the source named each time.
- Type: a dense model, not a mixture of experts. It handles images and video as well as text. This is from the Qwen3.8 27B model card.
- License: Apache 2.0, from the Hugging Face tag and the repo’s license file.
- Release date: the Qwen3.8 GitHub repo lists the 27B on 2026-08-14.
- Context: 262,144 tokens natively, extendable to 1,000,000 with YaRN. The model card warns that static YaRN may hurt performance on short text.
- Layout: 64 layers, arranged as 16 blocks of 3 Gated DeltaNet layers followed by 1 gated attention layer. That detail matters for the cache math below.
- Size on disk: from about 6 GB at the smallest quant to about 54.7 GB for the BF16 original (two shards).
There is also a much larger Qwen3.8 model on the same page, a 2.4T parameter one. It is irrelevant at this scale, and we did not check its license beyond noting that a news report describes a separate license for it. The 27B is Apache 2.0.
Benchmark claims are vendor claims
Qwen’s model card reports numbers such as 73.0 on Terminal Bench 2.1, 61.7 on SWE-bench Pro and 89.2 on GPQA Diamond for the 27B. Those are Qwen’s own figures, run by Qwen. Qwen’s own comparison table also shows a rival (Opus 4.6 Max) scoring higher on several of them, including Terminal Bench (78.2), GPQA Diamond (91.3) and Humanity’s Last Exam (40.0). We have not re-run any of these. If a benchmark matters to you, run your own version of it. Our post on how to choose an AI model with a simple task test shows a small way to do that.
Quant sizes and what fits in 28 GB
These are the file sizes of the Unsloth GGUF files, in decimal GB, from the Hugging Face API (checked 2026-11-14). The table shows a selection of the UD files. The repo also has other UD sizes and plain Q4_0, Q4_1 and Q8_0 files. The fit columns are inferred, using the arithmetic from the next two sections: weights plus a 64K token cache plus a 2 GB reserve on the GPUs. For the RAM column we add a 6 GB reserve in system RAM. Those reserves are our assumptions, not measurements.
| Quant | Size (GB) | Fits 28 GB VRAM at 64K context (inferred) | Fits 28 GB VRAM plus 36 GB RAM (inferred) |
|---|---|---|---|
UD-IQ1_S |
6.19 | Yes | Yes |
UD-IQ2_XXS |
7.21 | Yes | Yes |
UD-Q2_K_XL |
9.95 | Yes | Yes |
UD-IQ3_S |
12.04 | Yes | Yes |
UD-Q3_K_XL |
13.15 | Yes | Yes |
UD-IQ4_XS |
14.35 | Yes | Yes |
UD-Q4_K_M |
16.56 | Yes | Yes |
UD-Q4_K_XL |
17.66 | Yes, comfortable | Yes |
UD-Q5_K_M |
19.87 | Yes | Yes |
UD-Q5_K_XL |
20.98 | Marginal | Yes |
UD-Q6_K |
21.98 | No, offload needed | Yes, with offload |
UD-Q6_K_XL |
25.30 | No, offload needed | Yes, with offload |
UD-Q8_K_L |
28.05 | No, offload needed | Yes, with offload |
UD-Q8_K_XL |
31.46 | No, offload needed | Yes, with offload |
Unsloth’s page gives a looser rule: your RAM plus VRAM should be about the size of the quant. It lists 4 bit as needing 16 to 19 GB, 6 bit as 23 to 26 GB and 8 bit as 31 GB. Our table is stricter because it adds the context cache and a reserve. The page also says Multi Token Prediction (MTP) needs 1 to 2 GB extra. The repo’s vision projector file (mmproj) is 0.93 GB (Hugging Face API, checked 2026-11-14).
UD-Q5_K_XL is marginal: it fits at 64K context with only about 0.7 GB to spare in our arithmetic. Adding the 0.93 GB vision file or the MTP file (1.37 GB) puts UD-Q5_K_XL over 28 GB (inferred).
A “Yes, with offload” doesn’t mean fast. When layers live in system RAM, they have to be computed on the CPU or moved over the PCIe bus, and that is usually slower than keeping everything on the GPUs. We have not measured how much slower on any hardware, so we won’t put a number on it.
KV cache estimate
The KV cache is the memory a model uses to remember the conversation so far. It grows with context length. For most models it’s a big cost. Qwen3.8 27B is unusual because only 16 of its 64 layers use full attention (the Gated DeltaNet layers do not keep a growing cache the same way). The model card gives the gated attention config as 4 KV heads with a head dimension of 256.
Here’s the arithmetic (inferred, not measured), assuming the cache is stored in f16, which is 2 bytes per value:
16 layers x 2 (keys and values) x 4 KV heads x 256 head dim x 2 bytes
= 65,536 bytes per token
= 64 KiB per token
64K tokens (65,536): 65,536 x 65,536 = 4.29 GB (4 GiB)
262,144 tokens: 65,536 x 262,144 = 17.18 GB (16 GiB)
So at the full native 262K context the cache alone would be about 16 GiB, which is why the long context choices change which quant fits. Treat this as a floor. Real runtimes also allocate compute buffers, and some of the DeltaNet layers keep their own fixed size state. We don’t have those numbers, so the script below uses a flat reserve instead. If your runtime lets you quantize the cache, that changes the arithmetic, and the Unsloth page doesn’t cover it.
Run the fit script
Download the fit script (zip). It holds quant_fit.py, a sample JSON file with the sizes from the table, a blank tps_log_template.csv and a README. It uses only the Python standard library and loads no model. Everything is plain arithmetic, and it makes no speed claim.
We unzipped it into a fresh folder and ran it with Python’s isolated mode. This is the script’s real output on the sample data (sizes from Hugging Face API, checked 2026-11-14), with 28 GB VRAM, 36 GB RAM, a 64K context and the reserves described above:
$ python3 -I quant_fit.py sample_quants.json
Source of sizes: sizes from Hugging Face API, checked 2026-11-14 (unsloth/Qwen3.8-27B-GGUF)
VRAM 28 GB, RAM 36 GB, context 65536 tokens
KV cache = 65536 bytes/token x 65536 tokens = 4.29 GB
Reserve: 2.0 GB on GPU, 6.0 GB of RAM (assumptions)
quant size GB need GB result arithmetic
UD-IQ1_S 6.19 10.48 GPU only 10.48 + 2.0 <= 28
UD-IQ2_XXS 7.21 11.50 GPU only 11.50 + 2.0 <= 28
UD-Q2_K_XL 9.95 14.24 GPU only 14.24 + 2.0 <= 28
UD-IQ3_S 12.04 16.33 GPU only 16.33 + 2.0 <= 28
UD-Q3_K_XL 13.15 17.44 GPU only 17.44 + 2.0 <= 28
UD-IQ4_XS 14.35 18.64 GPU only 18.64 + 2.0 <= 28
UD-Q4_K_M 16.56 20.85 GPU only 20.85 + 2.0 <= 28
UD-Q4_K_XL 17.66 21.95 GPU only 21.95 + 2.0 <= 28
UD-Q5_K_M 19.87 24.16 GPU only 24.16 + 2.0 <= 28
UD-Q5_K_XL 20.98 25.27 GPU only 25.27 + 2.0 <= 28
UD-Q6_K 21.98 26.27 GPU + RAM offload 26.27 + 8.0 <= 64
UD-Q6_K_XL 25.30 29.59 GPU + RAM offload 29.59 + 8.0 <= 64
UD-Q8_K_L 28.05 32.34 GPU + RAM offload 32.34 + 8.0 <= 64
UD-Q8_K_XL 31.46 35.75 GPU + RAM offload 35.75 + 8.0 <= 64
GPU only: UD-IQ1_S, UD-IQ2_XXS, UD-Q2_K_XL, UD-IQ3_S, UD-Q3_K_XL, UD-IQ4_XS, UD-Q4_K_M, UD-Q4_K_XL, UD-Q5_K_M, UD-Q5_K_XL
GPU + RAM offload: UD-Q6_K, UD-Q6_K_XL, UD-Q8_K_L, UD-Q8_K_XL
does not fit: none
Note: fit is not speed. This script makes no speed claim.
Notice the limits of the check. Run it with 131072 or 262144 as a second argument and more quants move from “GPU only” to “GPU + RAM offload”. The script treats RAM and VRAM as one pool, and real runtimes do not. Per card limits and uneven splits can make a quant that “fits” on paper fail to load. Edit sample_quants.json with your own memory and reserves, and treat the result as a first filter.
Documented settings
The Unsloth page lists the same sampling settings as the Qwen model card (checked 2026-11-14).
| Setting | Thinking mode | Non thinking mode |
|---|---|---|
| temperature | 1.0 | 0.7 |
| top_p | 0.95 | 0.8 |
| top_k | 20 | 20 |
| min_p | 0.0 | 0.0 |
| presence_penalty | 0.0 | 1.5 |
Thinking is on by default. The page documents a reasoning_effort setting with the levels xhigh (the default), medium, low and none. You pass it through chat template kwargs. In llama-server or unsloth run the page shows --chat-template-kwargs '{"reasoning_effort":"medium"}', and for PowerShell it shows the quotes escaped as "{\"reasoning_effort\":\"medium\"}". Preserved thinking is on by default (per the model card) and keeps earlier thinking blocks in context.
The Unsloth page doesn’t spell out how to switch to non thinking mode. The Qwen model card (checked 2026-11-14) shows "chat_template_kwargs": {"enable_thinking": False} for it, so check that against your own build before you rely on it. The presence penalty of 1.5 belongs to the non thinking settings only.
Documented ways to run it
The page documents these routes (checked 2026-11-14). We didn’t run any of them for this post.
- llama.cpp. Build it with CUDA (
cmake -DGGML_CUDA=ON), download a quant with thehf downloadcommand, then callllama-cli. unsloth run. A one line command that takes a model and quant, for exampleunsloth run --model unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_XLplus the sampling flags and--reasoning-effort medium.- vLLM and SGLang. The page covers these for the NVFP4 build, which is aimed at Blackwell GPUs and is not a GGUF.
- Unsloth Desktop. A graphical app. The page says it automatically offloads to RAM and detects multi GPU setups.
Here is the llama-cli example in the shape the page gives it (not run here):
# Not run here: shape taken from the Unsloth page, checked 2026-11-14
hf download unsloth/Qwen3.8-27B-GGUF \
--local-dir unsloth/Qwen3.8-27B-GGUF \
--include "*UD-Q4_K_XL*"
./llama.cpp/llama-cli \
--model unsloth/Qwen3.8-27B-GGUF/Qwen3.8-27B-UD-Q4_K_XL.gguf \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0
What the page does not document
Plainly: the Unsloth page doesn’t document Ollama, LM Studio, a llama-server command, the -ngl flag or --tensor-split. If you’ve seen those flags in a forum post, they’re standard llama.cpp usage, not something this page promises for this model. We show some below and label them “not run here”. If you want the Ollama basics, our local LLM with Ollama post covers install and the API, though we have not checked whether Ollama has a Qwen3.8 27B build.
Three mixed GPUs
The documented answer for multi GPU is thin. The page only says Unsloth Desktop detects multi GPU setups. For llama.cpp, the general approach is standard llama.cpp usage, not from the Unsloth page. You offload all layers to the GPUs and tell llama.cpp what share of the model each card should hold, weighted by VRAM. This sketch uses made up cards of 12, 8 and 8 GB. Your cards will differ (not run here):
# Not run here. Standard llama.cpp flags, NOT from the Unsloth page.
# The 12,8,8 split is a made up example that matches a 28 GB total.
./llama.cpp/llama-server \
--model unsloth/Qwen3.8-27B-GGUF/Qwen3.8-27B-UD-Q4_K_XL.gguf \
--jinja \
-ngl 99 \
--tensor-split 12,8,8 \
-c 65536
Here is what we would expect, all of it inferred and none of it measured:
- Split by VRAM. A card with 12 GB should hold about 12 shares of the weights and cache, and a card with 8 GB about 8. Leave headroom on each card, because compute buffers are not split evenly.
- The slowest piece sets the pace. With mixed cards, each chunk of layers runs on its own card, so a slower card can hold back the whole pass. Whether that matters for you depends on the cards.
- PCIe lanes. If your cards sit on narrow links, loading the model may take longer. Whether generation speed suffers on your board is something to measure, not something we can tell you.
- Uneven fit. Because the weights are split across cards, a quant that fits the 28 GB total can still fail if one card runs out first. Move the ratio a little and try again.
Gotchas
- Use the Unsloth chat template. The page says Unsloth patched the template: it added developer role support and improved parsing of nested objects in tool calls. Our reading of the template shows it raising errors if the system message is not first, or if tool arguments arrive as a JSON string instead of an object. With llama.cpp, the
--jinjaflag is how you ask for the model’s own template (inferred, standard usage). - Thinking tokens show up in output. Thinking is on by default, so responses contain a thinking section. Servers like vLLM have reasoning parser options for this. The
--reasoning-parser qwen3option is standard vLLM usage for Qwen3 models, not checked against this model card. - Tool calls use an XML style format. The template follows the
qwen3_coderstyle, and--tool-call-parser qwen3_coderis standard vLLM usage for Qwen3 models, not checked against this model card. If you’re building an agent against a local server, the agent in Python with tool calling post shows the loop, though it is written for a different model. - The page is not perfectly consistent. We spotted contradictions, such as the 3 bit status above, and a couple of statements about NVFP4 support that disagree with each other. Read the repo, not just the page.
- Unverified community reports. The Hugging Face discussion list includes titles such as “Uniform GGUF quants silently break Qwen3.8-27B’s deep thinking,” plus reports of repeated spelling errors, random stopping and an error with a draft token setting for MTP. We read the titles only. We have not reproduced any of them, so treat them as unverified. They’re a reason to test your own prompts, not a reason to avoid the model.
Measure it yourself
Everything above says what fits. Nothing above says how fast it runs, how good the answers are, or whether your three cards cooperate. Those are yours to measure. Our post on measuring tokens per second with a short Python script shows the idea for Ollama’s API, and the same habit works for any local server. The zip includes a blank tps_log_template.csv with these columns: timestamp, quant, context_tokens, prompt_tokens, generated_tokens, seconds, tokens_per_second, gpu_split and notes.
Here is a blank log to copy. We have not filled in a single cell:
| Quant | Context | GPU split | Prompt tokens | Generated tokens | Seconds | Tokens per second | Notes |
|---|---|---|---|---|---|---|---|
And a blank pass or fail table for your own 10 tasks. Write the tasks first, and decide what counts as a pass before you run anything:
| Task | Pass rule | Quant A | Quant B | Quant C |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | ||||
| 8 | ||||
| 9 | ||||
| 10 |
Run each quant on the same 10 tasks with the same settings, from the documented values above. Change one thing at a time: the quant, the context length or the GPU split. If two quants pass the same tasks, take the smaller one and keep the memory for context.
FAQ
Which quant should you start with on 28 GB of VRAM?
Start with UD-Q4_K_XL, which is 17.66 GB and the quant the Unsloth page uses in its own examples. By our inferred arithmetic it is the comfortable pick and leaves room for a long context across the cards. UD-Q5_K_XL (20.98 GB of weights) is marginal on 28 GB at 64K context, and adding the 0.93 GB vision file or the MTP file (1.37 GB) puts it over 28 GB (inferred). Step up to it only if your tests show a quality gap and you don’t need a long context.
Do you need to re-download if you got the files before November 10?
Yes, the safe move is to re-download. Unsloth re-made most 2 bit to 6 bit quants with Dynamic V3.1 on November 10 and 11, and says the new files are 5 to 10 percent more accurate at the same size. That accuracy figure is Unsloth’s own claim, so test it on your tasks.
Are the 3 bit quants updated?
We couldn’t confirm it. The page says they weren’t updated, but a commit on November 12 touched UD-Q3_K_XL, and an open discussion says UD-IQ3_S is still the old file. Check the commit date of the file you plan to use.
Can you run Qwen3.8 27B in Ollama or LM Studio?
The Unsloth page doesn’t document either one (checked 2026-11-14), so we can’t say. The documented routes are llama.cpp, unsloth run, vLLM, SGLang and Unsloth Desktop.
Does a quant that fits mean it runs fast?
No. Our fit table only checks memory. Offloading to system RAM and the layout of your cards can both change speed, and we have made no speed measurements here. Use the blank log above to record yours.
Is Qwen3.8 27B free to use commercially?
The 27B is licensed Apache 2.0 according to the Hugging Face tag and the license file (checked 2026-11-14). Read the license file yourself before you ship anything, because that’s the document that counts.
Where to go next
- Run the fit script with your own VRAM, RAM and context numbers, then pick two quants to compare.
- Fill in the blank pass or fail table with 10 tasks from your own work. The task test post shows a small grader you can adapt.
- Time a few runs with the habit from the tokens per second post, and write the real numbers in the log.
- Re-check the Unsloth Qwen3.8 page before you download. It changed on November 11, and it may change again.


