How to Deploy Qwen3.8 27B Locally
Qwen3.8 27B is a 27B dense model that Qwen released in August 2026, and it understands images and video. It's now the first choice for running a Qwen dense model on a single graphics card. One 24GB card runs its 4-bit version at about 40 tokens/s with context up to about 122K; only 1 in every 4 layers sees the full context, so long context doesn't take much VRAM.
Qwen3.8 27B details
- Min VRAM at 4-bit19 GB · 8K
- Parameters27.8B
- Max context256K
- Architecture
- Dense
- License
- Apache-2.0
- Launch date
- Aug 14, 2026
- Vendor
- Alibaba
- Hugging Face repo
- Qwen/Qwen3.8-27B
- GGUF repo
- unsloth/Qwen3.8-27B-GGUF
- NVFP4 repo (Blackwell)
- nvidia/Qwen3.8-27B-NVFP4
- MLX repo (Apple)
- mlx-community/Qwen3.8-27B-4bit
- Ollama tag
- qwen3.8:27b
- Layers
- 64
- Hidden size
- 5,120
- KV heads
- 4
- Head dim
- 256
How much VRAM does Qwen3.8 27B need for local deployment?
| Quantization | WeightsGB | 8K contextGB | 32K contextGB | 128K contextGB | 256K context (max)GB |
|---|---|---|---|---|---|
| 1-bit | 6.7GGUF | 8.3 | 9.9 | 16.4 | 25 |
| 2-bit | 9.8GGUF | 11.4 | 13 | 19.5 | 28.1 |
| 3-bit | 13.1GGUF | 14.7 | 16.3 | 22.8 | 31.4 |
| 4-bit | 16.5GGUF | 18.1 | 19.7 | 26.2 | 34.8 |
| 5-bit | 19.8GGUF | 21.4 | 23 | 29.5 | 38.1 |
| 8-bit | 29GGUF | 30.6 | 32.2 | 38.7 | 47.3 |
| BF16/FP16 | 54.7GGUF | 56.3 | 57.9 | 64.4 | 73 |
Full calculation rules are on the Methodology page.
Can a single GPU run Qwen3.8 27B?
Yes. A 24GB card is the natural starting point, and 16GB can squeeze it in. On a 24GB card, 4-bit runs at about 40 tokens/s with roughly 122K of context, and the 32GB RTX 5090 is nearly twice as fast. 16GB works because Unsloth's 2-bit build is only about 10 GB, small enough for a card like the Tesla V100, though answer quality takes a hit. By default it keeps the reasoning from every earlier turn in the conversation, so context fills fast in long chats and spare VRAM helps. 128GB unified-memory machines hold even 8-bit, but their bandwidth is low and a dense model reads all of its weights for every token, so 4-bit manages only about 12 tokens/s.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $37024 listings | 62.6 | 93K | |
| $86958 listings | 32.6 | 93K | |
| $89518 listings | 62.6 | 256K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 66.3 | 221K |
| $1,799107 listings | 64.8 | 221K | |
| $3,75868 listings | 69.3 | 221K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 19 | 256K |
| $4,89916 listings | 54.1 | 256K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 82.8 | 256K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 43.9 | 256K |
| $8,24022 listings | 20.2 | 256K | |
| $8,395123 listings | 114.6 | 256K | |
| $22,50011 listings | 114.6 | 256K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $89518 listings | 38.9 | 250K | |
| Radeon RX 7900 XTX24 GB | $1,25029 listings | 41.4 | 122K |
| $1,799107 listings | 40.4 | 122K | |
| $3,75868 listings | 43.3 | 122K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 11.5 | 256K |
| $4,89916 listings | 33.5 | 256K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 52.1 | 256K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 27 | 256K |
| $8,24022 listings | 12.3 | 256K | |
| $8,395123 listings | 73.5 | 250K | |
| $22,50011 listings | 73.5 | 256K |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| $89518 listings | 22.8 | 63K | |
| Ryzen AI Max+ 395 128GBWhole system · 128 GB | $4,46420 listings | 6.6 | 256K |
| $4,89916 listings | 19.6 | 256K | |
| Mac Studio M5 Ultra 96GBWhole system · 96 GB | $7,27412 listings | 30.8 | 256K |
| MacBook Pro M5 Max 128GBWhole system · 128 GB | $7,54920 listings | 15.7 | 256K |
| $8,24022 listings | 7.1 | 256K | |
| $8,395123 listings | 44 | 63K | |
| $22,50011 listings | 44 | 256K |
Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.
What to know before running Qwen3.8 27B locally
Three thinking levels
Set thinking depth with
reasoning_effort: xhigh (the default), medium or low. Qwen notes that in multi-turn agent tasks, a lower setting isn't necessarily faster: if each turn doesn't think enough, it's more likely to fail and retry. In llama.cpp, passreasoning_effortvia--chat-template-kwargs.Thinking is kept by default
By default, 3.8 keeps the thinking from every earlier turn in the context, so context grows quickly in multi-turn conversations. Fortunately its context cache is very light: at 4-bit, going from 8K to 128K adds only about 8.1 GB. To keep only the latest turn's thinking, set
preserve_thinkingto false.Official sampling parameters
Thinking mode:
temperature1.0,top_p0.95,top_k20,presence_penalty0. Non-thinking mode:temperature0.7,top_p0.8,top_k20,presence_penalty1.5.Quantization and formats
For GGUF, use Unsloth's Dynamic 3.0 version; 4-bit is about 16.5 GB, and the Ollama tag is qwen3.8:27b. RTX 50 series cards and the DGX Spark can run Unsloth's NVFP4 version in vLLM, which Unsloth says is about 1.5x faster than BF16; Qwen also offers an official FP8 version.
Launch commands
Ollama
- Windows
- macOS
- Linux
ollama run qwen3.8:27bllama.cpp
- NVIDIA
- AMD
- Mac
- CPU
llama-server -hf unsloth/Qwen3.8-27B-GGUF:Q4_K_M -c 8192
vLLM
- Linux
- NVIDIA
- AMD
vllm serve Qwen/Qwen3.8-27BBlackwell GPUs (RTX 50 series, RTX PRO 6000, B200) run NVFP4 weights natively, at about 30% of the original size.
vllm serve nvidia/Qwen3.8-27B-NVFP4MLX
- Apple Silicon
Vision models run on mlx-vlm: on a Mac, pip install mlx-vlm first; this command downloads the MLX weights from Hugging Face and starts a server.
mlx_vlm.server --model mlx-community/Qwen3.8-27B-4bitFile names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
Other models in the Qwen family
| Model | Total params | Active params | 4-bit size |
|---|---|---|---|
| 8.2B | 8.2B | 5 GB | |
| 9.7B | 9.7B | 5.7 GB | |
| 27.8B | 27.8B | 16.8 GB | |
| 32.8B | 32.8B | 19.8 GB | |
| 36B | 3B | 22.1 GB | |
| 176B | 6B | 111.3 GB | |
| 2,446B | 95B | 1,310.9 GB |