To run an open Qwen model on a GPU, you need memory for the weights (roughly the parameter count times the bytes per weight), for the KV cache, and for the engine's own working memory, which vLLM's documentation describes as activations plus CUDA graph and warmup buffers. The Qwen3.8-27B checkpoint has 27.78B parameters, so by this arithmetic its weights take about 55.6 GB at 16 bits, 27.8 GB at 8 bits and 13.9 GB at 4 bits (estimate). Real 4-bit downloads are larger: Ollama's default Qwen3.8-27B download is 18 GB.
This page covers a selection of the open-weight Qwen models that are current on 2 December 2026: the small Qwen3.5 models, the 27B dense models, the 35B-A3B mixture-of-experts (MoE) model and two larger MoE models. The figures marked "estimate" are arithmetic, shown so you can check them. The figures marked as file sizes or measurements come from the linked pages.
Which Qwen models to run locally
As of 2 December 2026, these are the open-weight Qwen language models on Qwen's Hugging Face account that this page covers. The account also has Qwen3.5-27B and Qwen3.5-35B-A3B, which are left out because the table has the newer Qwen3.6 models of the same sizes.
| Model | Type | Parameters in the checkpoint | Native context |
|---|---|---|---|
| Qwen3.5-0.8B | dense | 0.87B | 262,144 |
| Qwen3.5-2B | dense | 2.27B | 262,144 |
| Qwen3.5-4B | dense | 4.66B | 262,144 |
| Qwen3.5-9B | dense | 9.65B | 262,144 |
| Qwen3.6-27B | dense | 27.78B | 262,144 |
| Qwen3.8-27B | dense | 27.78B | 262,144 |
| Qwen3.6-35B-A3B | MoE, 3B active | 35.95B | 262,144 |
| Qwen3.5-122B-A10B | MoE, 10B active | 125.09B | 262,144 |
| Qwen3.8-Flash-Next | MoE, 6B active | 180.00B | 262,144 |
"Parameters in the checkpoint" is the count Hugging Face reports for the weight files. It is a little higher than the size in the name, which the model cards give for the language model alone; the checkpoints also contain a vision encoder. For Qwen3.8-Flash-Next the model card lists 125B parameters plus a 51B n-gram embedding and a 4B multi-token-prediction head, which is where 180B comes from. All of these models accept text and images.
The news list in Qwen's release repository shows no general-purpose Qwen3.6 or Qwen3.8 model smaller than 27B, so below 27B the Qwen3.5 models are the newest general-purpose options. The two largest open models, Qwen3.5-397B-A17B and Qwen3.8-2.4T-A95B, are left out here. By the parameter counts in their names, their weights alone come to about 200 GB and 1,200 GB at 4 bits (estimate). Alibaba has said that smaller open-weight Qwen4 models will follow Qwen4-Max, without giving sizes or a date; see Qwen4 open weights. The full list is on /models.
Memory for the weights
The arithmetic is parameters × bytes per weight. BF16 uses 2 bytes. The estimates below use 1 byte for 8-bit formats and 0.5 bytes for 4-bit formats. Formats with block scales use a little more: in llama.cpp's block definitions, Q8_0 stores 32 one-byte values plus a 2-byte scale (34 bytes per 32 weights), and Q4_K is commented as 4.5 bits per weight. These are estimates in decimal gigabytes, using the parameter counts above:
| Model | BF16 (estimate) | 8-bit (estimate) | 4-bit (estimate) | Ollama default tag, as listed |
|---|---|---|---|---|
| Qwen3.5-0.8B | 1.7 GB | 0.9 GB | 0.4 GB | 1.2-1.3 GB |
| Qwen3.5-2B | 4.5 GB | 2.3 GB | 1.1 GB | 2.7-3.1 GB |
| Qwen3.5-4B | 9.3 GB | 4.7 GB | 2.3 GB | 3.3-4.0 GB |
| Qwen3.5-9B | 19.3 GB | 9.7 GB | 4.8 GB | 6.6-7.6 GB |
| Qwen3.6-27B / Qwen3.8-27B | 55.6 GB | 27.8 GB | 13.9 GB | 18-19 GB / 18 GB |
| Qwen3.6-35B-A3B | 71.9 GB | 36.0 GB | 18.0 GB | 23 GB |
| Qwen3.5-122B-A10B | 250.2 GB | 125.1 GB | 62.5 GB | 81 GB |
| Qwen3.8-Flash-Next | 360.0 GB | 180.0 GB | 90.0 GB | no default tag; 120 GB for 125b-a6b-q4_K_M |
The last column is the size Ollama shows on its tag pages for qwen3.5, qwen3.6, qwen3.8 and qwen3.8-flash-next. Where Ollama shows a range, the range is copied as shown. qwen3.8-flash-next has no latest tag on its tag page, so the table gives its 125b-a6b-q4_K_M tag; its model page features a 105 GB MLX tag, 125b-mlx.
Real 4-bit files are bigger than the 0.5-byte estimate. Part of the difference is the block scales described above, and some files keep tensors at higher precision. The ggml-org Flash-Next GGUF card, for example, keeps the small non-expert tensors (embeddings, attention, shared experts) at Q8_0, except the PLE embedding at Q4_0, and uses the lower-bit type only for the routed experts. Use the file size, not the estimate, when you plan.
An MoE model runs only a few experts per token, but the weights of all experts still have to be held somewhere. Qwen3.6-35B-A3B runs about 3B parameters per token, and its checkpoint has 35.95B. The runtime decides where the experts go: vLLM's expert parallelism spreads them across GPUs, and llama.cpp's --cpu-moe options keep them in system RAM (see llama.cpp below).
Memory for the KV cache
The KV cache stores keys and values for every token in the context, so it grows with context length. The models in the table below keep it small because only one layer in four uses full attention. The other three in each group of four use Gated DeltaNet, a linear-attention layer with a fixed-size state that does not grow with context. The Qwen3.8-27B card lists 64 layers in a pattern of 16 × (3 DeltaNet + 1 attention), with 4 KV heads of dimension 256.
The estimate for a 16-bit KV cache, in bytes per token, is 2 (keys and values) × full-attention layers × KV heads × head dimension × 2 bytes per stored value. With the values from each model card:
| Model | Full-attention layers | KV heads × head dim | Per token | At 32,768 tokens | At 262,144 tokens |
|---|---|---|---|---|---|
| Qwen3.5-0.8B / 2B | 6 | 2 × 256 | 12,288 bytes | 0.4 GB | 3.2 GB |
| Qwen3.5-4B / 9B | 8 | 4 × 256 | 32,768 bytes | 1.1 GB | 8.6 GB |
| Qwen3.6-27B / Qwen3.8-27B | 16 | 4 × 256 | 65,536 bytes | 2.1 GB | 17.2 GB |
| Qwen3.6-35B-A3B | 10 | 2 × 256 | 20,480 bytes | 0.7 GB | 5.4 GB |
| Qwen3.5-122B-A10B | 12 | 2 × 256 | 24,576 bytes | 0.8 GB | 6.4 GB |
These are estimates for one sequence. They leave out the fixed DeltaNet state, the vision encoder's working memory and the engine's own overhead. An 8-bit KV cache roughly halves the figures; llama.cpp's Q8_0 takes 34 bytes per 32 values, about 53% of the 16-bit size. The Qwen3.8-Flash-Next card describes a different layout: the fourth layer in each group uses Qwen Sparse Attention with an indexer, so it is not in this table.
The Qwen3.6-35B-A3B card says to shorten the context if you run out of memory, but to keep at least 128K tokens, because the model uses long context for thinking.
Rough GPU sizes
The first three lines below are estimates: the Ollama download size plus the 32,768-token KV figure from the tables above, before the engine's own overhead. The rest come from vLLM's recipes.
- 8 GB GPU (estimate): Qwen3.5-4B at 4 bits comes to 4.4-5.1 GB (3.3-4.0 GB plus 1.1 GB of cache). Qwen3.5-9B at 4 bits comes to 7.7-8.7 GB (6.6-7.6 GB plus 1.1 GB), which at the upper end is more than the card holds, so use a shorter context.
- 16 GB GPU (estimate): Qwen3.5-9B at 8 bits (10 GB for the
qwen3.5:9b-q8_0tag plus 1.1 GB). - 24 GB GPU (estimate): a 4-bit 27B model (18-19 GB plus 2.1 GB). Qwen3.6-35B-A3B comes to about 23.7 GB (23 GB plus 0.7 GB), close to the whole card before overhead. llama.cpp can keep some expert layers in system RAM to make room (see below).
- 32 GB GPU: the vLLM recipe for Qwen3.8-27B runs an NVFP4 build on one RTX 5090 at a 32,768-token context. It reports 31.4 GiB usable on the card and a KV pool of 91,022 tokens.
- Two 32 GB GPUs: the same recipe runs Qwen3.8-27B at the full 262,144-token context on two RTX 5090 cards, with 10.6 to 14.3 GiB of weights per GPU depending on the build.
- 80 GB or more: the vLLM recipe for Qwen3.6-35B-A3B lists one H100 or H200 for the FP8 checkpoint, and one H200 or two H100s for BF16, under its hardware prerequisites.
- Flash-Next: the vLLM recipe for Qwen3.8-Flash-Next gives the FP8 checkpoint as 172.78 GiB, which fits on one 288 GB GB300. vLLM can offload the 51B n-gram embedding to host memory, which then needs at least 51 GB plus headroom. The recipe says the offload is required on 80 GB-class GPUs such as the H100 and optional on H200 and larger.
Ollama
Ollama is the shortest path. The model names match the Qwen versions:
ollama run qwen3.5:9b
ollama run qwen3.8:27b
ollama run qwen3.6:35b-a3b
Most sizes also have tags for other precisions, such as qwen3.8:27b-q8_0 (30 GB) and qwen3.8:27b-bf16 (56 GB) on the qwen3.8 tags page. The tag pages also list MLX builds.
Watch the context length. Ollama's context length docs say it picks a default from your VRAM: 4k tokens below 24 GiB, 32k from 24 to 48 GiB, and 256k at 48 GiB or more. The same page recommends at least 64,000 tokens for tasks that need large context, such as web search, agents and coding tools. Set OLLAMA_CONTEXT_LENGTH, or the num_ctx parameter, higher if you have the memory, and use the KV table above to see what it costs.
llama.cpp
Qwen's Hugging Face account has official GGUF repos for older models such as Qwen3-8B and for Qwen3-Coder-Next, an 80B MoE coding model whose Q4_K_M files total about 48 GB. It has none for Qwen3.5, 3.6 or 3.8. Ollama lists Qwen3-Coder-Next as qwen3-coder-next at 52 GB. For Qwen3.5, 3.6 and 3.8, the llama.cpp project's own ggml-org account publishes conversions, such as Qwen3.5-0.8B-GGUF, which the llama.cpp README uses in its quick start with llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF. The Qwen3.8-27B and Qwen3.6-35B-A3B repos linked below give these commands:
llama serve -hf ggml-org/Qwen3.8-27B-GGUF
llama serve -hf ggml-org/Qwen3.6-35B-A3B-GGUF
The -hf option downloads Q4_K_M by default, or the first file in the repo if there is no Q4_K_M file. The Qwen3.8-27B GGUF repo has a 19.4 GB Q4_K_M file and a 28.6 GB Q8_0 file. The Qwen3.6-35B-A3B GGUF repo has 20.5 GB and 36.9 GB files. Each repo also has a vision projector file of about 0.6 GB to 0.9 GB, and optional draft files for speculative decoding.
The llama-server options that matter for memory:
-csets the context size. The default of 0 takes the context from the model. With--fiton, which is the default, llama-server lowers settings you did not set, the context included, to fit device memory, down to a minimum of 4,096 tokens set by--fit-ctx.-nglsets how many layers go on the GPU. The rest run on the CPU from system RAM.--cpu-moekeeps all MoE expert weights in system RAM, and--n-cpu-moe Ndoes this for the first N layers. With it, the expert weights of Qwen3.6-35B-A3B or Qwen3.5-122B-A10B can sit in system RAM while attention and the KV cache stay on the GPU.-ctk q8_0 -ctv q8_0stores the KV cache at 8 bits, about half the 16-bit size. A quantized V cache requires Flash Attention (-fa); the llama.cpp source stops with an error if it is off.
vLLM
For production use, the Qwen3.6-35B-A3B and Qwen3.8-Flash-Next cards recommend dedicated serving engines such as SGLang, KTransformers or vLLM, and the Qwen3.8-27B card names SGLang, vLLM or TokenSpeed. The Qwen3.6-35B-A3B recipe covers the BF16 model, Qwen's official FP8 checkpoint and an NVFP4 build. This is the vLLM recipe's command for Qwen3.8-27B on one 32 GB RTX 5090, using an NVFP4 build:
vllm serve Inferact/Qwen3.8-27B-NVFP4 \
--tensor-parallel-size 1 \
--max-model-len 32768 \
--kv-cache-dtype fp8 \
--enforce-eager \
--reasoning-parser qwen3
On CUDA and ROCm, vLLM sizes the KV cache from the memory that is free after CUDA graph capture and warmup, and keeps a safety margin. --max-model-len caps the context per request. The Qwen3.6-35B-A3B card also gives --language-model-only, which skips the vision encoder and leaves more memory for the cache when you only need text. On the RTX 5090, the recipe says start-up ran out of memory during CUDA graph capture, and --enforce-eager, which skips graph capture, let the server start.
Settings Qwen recommends
The Qwen3.8-27B card gives these sampling settings:
- Thinking mode (the default):
temperature=1.0,top_p=0.95,top_k=20,presence_penalty=0.0. - Non-thinking mode:
temperature=0.7,top_p=0.80,top_k=20,presence_penalty=1.5.
It also says to use the latest framework versions, and that the 262,144-token context can be stretched to about 1,000,000 tokens with YaRN, which may lower quality on short texts.
Qwen's documentation site still leads with Qwen3-2507, and its home page and its llama.cpp and vLLM pages do not mention Qwen3.5 or later. For current models, use the model cards and the engine docs linked above. For the order in which these models came out, see the /timeline.