Qwen 3.8 27B locally: Ollama installation and VRAM

To install Qwen 3.8 27B with Ollama, run "ollama run qwen3.8:27b". The default file (q4_K_M) is 18 GB, and the advertised context is 256k tokens. Plan for 24 GB of VRAM or a Mac with 32 GB of unified memory; with less, part of the model spills over to the CPU. The table below shows how much memory to plan for each tag.
#The verdict in 30 seconds
Qwen 3.8 27B installs with a single command. The default tag (q4_K_M) weighs 18 GB, according to the Ollama library page, and in practice requires a card with 24 GB of VRAM (RTX 3090, 4090, 5090) or an Apple Silicon Mac with at least 32 GB of unified memory. Below that, the model can run, but some layers spill over to the CPU and throughput drops sharply.
| Tag | File size | Memory requirements | Who it's for |
|---|---|---|---|
| qwen3.8:27b (also qwen3.8:latest; q4_K_M) | 18 GB | 24 GB of VRAM, or a 32 GB Mac | The default choice: RTX 3090, 4090, 5090 |
| qwen3.8:27b-q4_K_M; qwen3.8:27b-mtp-q4_K_M | 18 GB | 24 GB | Same size as the default; the "mtp" variant is designed for multi-token prediction |
| qwen3.8:27b-q8_0; qwen3.8:27b-mtp-q8_0 | 30 GB | 40 GB and up | Quality closer to the original weights: 48 GB card, two cards, 64 GB Mac |
| qwen3.8:27b-bf16; qwen3.8:27b-mtp-bf16 | 56 GB | 80 GB | Unquantized weights: compute machines, 128 GB Macs |
| qwen3.8:27b-mlx; qwen3.8:27b-nvfp4 | 18 GB | Mac with 32 GB of unified memory | Apple Silicon: tags marked MLX by Ollama |
| qwen3.8:27b-dflash2-nvfp4 | 19 GB | Mac with 32 GB of unified memory | More recent MLX variant (page updated two weeks ago) |
| qwen3.8:27b-mxfp8 | 30 GB | Mac with 48 GB of unified memory | Apple Silicon, higher precision |
| qwen3.8:27b-mlx-bf16 | 56 GB | Mac with 96 GB of unified memory | Apple Silicon, no quantization |
- What it is
- A dense 27-billion-parameter model with a vision encoder (images and videos), a native context of 262,144 tokens, and the Apache 2.0 license, which allows commercial use under the license's terms.
- The realistic prerequisite
- 24 GB of VRAM or 32 GB of unified memory for q4_K_M (18 GB). The q8_0 is 30 GB and the bf16 is 56 GB: plan for significantly more memory than the file size.
- The #1 trap
- The advertised context is 256k, but Ollama starts with a much smaller window depending on your VRAM (4k under 24 GiB, 32k between 24 and 48 GiB). Set it yourself: see the section on context.
- Pitfall No. 2
- Thinking mode is on by default: the model reasons before it answers. Lower reasoning_effort or turn thinking off for simple tasks.
#What Qwen 3.8 27B really is
Benefit from our experience and a guided path to build your local assistant and use your AI every day.
- Lifetime online access
- PDF + files
- Refunded within 30 days
Unlike the Mixture-of-Experts trend, Qwen3.8-27B is a dense model: all 27 billion parameters are activated for every token. That makes its memory usage predictable—no pleasant surprises in throughput, no unpleasant surprises in VRAM—and it also explains its lower local throughput than a comparably sized MoE.
- Output
- The weights were released on Hugging Face in August 2026 (on August 14, according to press reports; the model card only gives the month). The official repository is Qwen/Qwen3.8-27B.
- Architecture
- 64 layers organized into 16 blocks of “3 × (Gated DeltaNet → FFN) followed by 1 × (Gated Attention → FFN).” A hybrid attention design: most layers use memory-efficient linear attention, interspersed with true attention layers for precision.
- Terms
- Native vision-language: still images, documents, scientific diagrams, and videos. This is not an adapter bolted on afterward.
- Context
- 262,144 tokens natively. The model card mentions extending this to 1,000,000 tokens with YaRN, which isn't enabled by default and isn't recommended for short texts; it recommends SGLang, vLLM, or TokenSpeed for serving the model. We didn't find a documented procedure for enabling it in Ollama.
- License
- Apache 2.0: commercial use, modification, and redistribution allowed under the terms of the license.
- Special feature
- The model is trained with multi-token prediction (MTP), which is why Ollama has "mtp" tags. The speedup depends on the engine and isn't quantified here.
#The hardware you need
The table at the top of the page lists the size of each tag. That alone isn't enough: you also need to account for the context cache (which grows with context length) and the vision encoder. As a rule of thumb, budget 15 to 25% above the file size, then check with ollama ps, which shows the split between GPU and CPU.
For speed, you can get a theoretical ceiling by dividing memory bandwidth by file size, since a dense model rereads most of its weights for every token. Using the bandwidth figures announced by Apple and an 18 GB file, the M5 chip (153 GB/s) gets about 8 tokens per second, the M5 Pro (307 GB/s) about 17, and the M5 Max (614 GB/s) about 34. These are calculations, not measurements. Real-world speeds are lower, and thinking mode adds to the wait before the first line of the response.
#Install Qwen 3.8 27B with Ollama
- 01Update OllamaQwen 3.8 requires a recent version of Ollama. The latest version published on the official repository as of November 16, 2026 is 0.40.16 (November 9). Reinstall from the official website, or rerun the install script on Linux. A version that's too old may respond with "model not found" or report an architecture error.
- 02Download the model18 GB to download: make sure you have space on the drive where Ollama stores its models. If the download is interrupted, run the same command again.
- 03Start a first exchangeThe first response is slower while the weights are loaded into memory. If startup takes more than a minute, that indicates an overflow onto the processor.
- 04Check where the model is runningThe ollama ps command displays the GPU/CPU split. Until you see 100% GPU, every token is expensive — drop down one quantization level or reduce the context.
#On Mac Apple Silicon: choose the MLX variant
Ollama publishes tags marked MLX, for Apple's MLX engine, which it describes as taking advantage of unified memory. In a June 11, 2026 blog post, Ollama announced an engine up to 20% faster than before and support for the NVFP4 format. These figures relate to a different model (Gemma 4 12B): we don't apply them to Qwen 3.8.
- 16 GB Mac
- Not enough: the 18 GB file exceeds total memory.
- Mac 24 GB
- Very tight: the file leaves little room for context and the system. Fine for trying it out, not for real work.
- 32 GB Mac
- The sensible entry point: the model fits, with headroom left for the context cache and the system.
- Mac 64 GB and up
- Comfortable, with room to move up to mxfp8 or work on long documents.
The M5 chips mainly change memory bandwidth and available memory. Apple quotes 153 GB/s for the M5 chip, up to 307 GB/s and 64 GB of memory for the M5 Pro, and up to 614 GB/s and 128 GB for the M5 Max. More memory lets you target the mxfp8 and bf16 tags; more bandwidth raises the speed ceiling. These are the manufacturer's figures, not measurements with Qwen 3.8.
#The 256k context trap
This is a common mistake on first attempts. The model advertises 262,144 tokens, but Ollama picks a default window based on VRAM: 4K tokens below 24 GiB, 32K between 24 and 48 GiB, and 256K from 48 GiB up (per Ollama's documentation). A document longer than the window may be truncated, and the model then answers based on text it hasn't seen in full. Ollama recommends at least 64,000 tokens for agents, coding, and web search.
As for the advertised one million tokens: it relies on a YaRN extension that is set in the model configuration and that the model card advises against for short texts. The model card recommends SGLang, vLLM, or TokenSpeed to serve it; we found no documented way to get it with Ollama. On a 24 GB card, it isn't realistic anyway.
#Thinking mode and sampling parameters
Qwen 3.8 thinks before it answers: it produces a reasoning block, then the final answer. This is on by default and accounts for most of the perceived latency. The official model card offers three reasoning_effort levels: xhigh (the default, for complex tasks), medium, and low (which favors speed). In Ollama, the API accepts the think: false parameter to turn off reasoning.
| Mode | temperature | top_p | top_k | presence_penalty |
|---|---|---|---|---|
| Thinking (default) | 1.0 | 0.95 | 20 | 0.0 |
| Instruct (no reasoning) | 0.7 | 0.80 | 20 | 1.5 |
- Short local tasks
- Lower reasoning_effort to low or medium, or turn off thinking: for rephrasing or extraction, long reasoning mostly just adds wait time.
- Agentic tasks
- Keep the default value, xhigh, which the model card recommends for complex tasks. A lower effort may be enough, but compare the results on your own tasks.
- Responses that get stuck in a loop
- The model card recommends a presence_penalty of 1.5 in instruct mode and 0.0 in thinking mode. Increase the value in small steps.
- Output polluted by reasoning
- In the Ollama API, the reasoning is returned separately (thinking field) and the answer in content. If your app displays the reasoning, it isn't separating the two fields; disable thinking rather than filtering the text.
#Analyze an image or document
Vision is native: screenshots, whiteboard photos, technical diagrams, scanned pages. On the command line, just provide the file path in the prompt; through the API, images are passed as base64 in the field provided by Ollama.
#What the reported scores are worth
The claimed jump over Qwen 3.6-27B, the previous generation's model of the same size, is significant, especially in agentic coding and computer use. Here are the figures Alibaba published on the official model card. We have not reproduced them.
| Test | Qwen3.8-27B | Qwen3.6-27B |
|---|---|---|
| Terminal Bench 2.1 (agentic coding) | 73,0 | 63,4 |
| SWE-bench Pro | 61,7 | 53,5 |
| LiveCodeBench v6 | 90,3 | 83,9 |
| IFBench (instruction following) | 79,5 | 69,1 |
| GPQA Diamond (science) | 89,2 | 87,8 |
| OSWorld-Verified (computer use) | 84,3 | 63,9 |
| OmniDocBench 1.5 (documents) | 91,1 | 89,4 |
What to take away for local use: the gains are concentrated in long, tool-driven tasks — operating a terminal, fixing a repository, and chaining steps without going off track. In a simple conversation or summary, the difference from the previous generation will be far less noticeable than these figures suggest.
#Should you move on from Qwen 3.6, Gemma 4, or gpt-oss?
- You are on Qwen 3.6-27B
- Probably: similar size (17 to 19 GB according to Ollama's tags page), same license, and claimed gains in coding and agentic tasks. Keep the old tag while you validate your prompts, since the output style may change.
- You're on Gemma 4 26B
- Qwen 3.8 claims better scores on coding and agentic tasks; as for licensing, both are Apache 2.0, with Gemma 4 having switched to that license in April 2026. Compare them on your own French texts; we don't have any measurements to give you.
- You're running gpt-oss-20b
- Two philosophies: gpt-oss 20B (14 GB on Ollama, 128k context, text only) is lighter; Qwen 3.8 accepts images and advertises a 256k context. Choose based on available memory.
- You're mainly looking to code
- A code-specialized 30-billion-parameter MoE model, such as Qwen3-Coder 30B-A3B (19 GB), is lighter to run. Qwen 3.8 27B makes sense when the agent needs to read, plan, and edit multiple files.
- You have less than 24 GB
- Don't push it. A 12 to 14 billion parameter model will give you a better experience than a 27B that spills over onto the CPU.
#Troubleshooting
- “model not found” on pull
- Ollama is too old to know about this repository, or the tag is misspelled—it is “qwen3.8:27b,” with a dot, not a hyphen. Update Ollama and then restart it.
- Architecture error during loading
- Same likely cause: your version of Ollama is too old for the hybrid architecture of Qwen 3.8.
- Very slow generation
- The model is probably spilling over onto the CPU. Check with ollama ps: if the split isn't 100% GPU, reduce the context, close other GPU applications, or switch to a smaller model.
- Responses that ignore the beginning of the document
- Truncated context. Set the context to match the size of your input (OLLAMA_CONTEXT_LENGTH or num_ctx), or split the document.
- The model “thinks” forever
- reasoning_effort is too high for the task. Lower it to medium or low, or disable reasoning for simple tasks.
- The image is ignored
- The file path must be accessible from the Ollama process, and the vision parser requires an up-to-date version. Test with a simple local image before blaming the model.
- Not enough disk space
- Leave headroom beyond the advertised size during installation. A download interrupted by a full disk can leave fragments behind: delete the model with ollama rm, then rerun the pull.
#Frequently asked questions
How much VRAM does Qwen 3.8 27B need?+
How do I install Qwen 3.8 27B locally?+
Is Qwen 3.8 27B free and suitable for business use?+
Is there a 14 or 8 billion parameter Qwen 3.8?+
What is the difference between Qwen 3.8 27B and Qwen 3.8-Max?+
Can you run Qwen 3.8 27B with 16 GB of VRAM?+
Is Qwen 3.8 27B better than Qwen 3.6 27B?+
Can Qwen 3.8's reasoning mode be disabled?+
Is a one-million-token context available locally?+
#Sources and verification as of November 16, 2026
Sizes and tags come from the official Ollama library pages, specs and scores from Alibaba's Hugging Face model card, and the default context from the Ollama documentation. Recommended memory figures are the site's estimates, not measurements.
- Qwen 3.8 in the Ollama library
- List of Qwen 3.8 tags and file sizes, Ollama
- Official Qwen3.8-27B model card, Hugging Face
- Qwen3.8-2.4T-A95B model card (base of Qwen3.8-Max), Hugging Face
- Default context length, Ollama documentation
- Reasoning (think parameter), Ollama documentation
- Latest Ollama release, official repository
- Ollama and MLX on Apple Silicon, blog post from June 11, 2026
- M5 Pro and M5 Max chips, Apple press release
- M5 chip, Apple press release
- Release of the 27B under Apache 2.0 and the Max model's license, eWeek (press)
#Go further
This guide assumes a working Ollama installation and a deliberate quantization choice. These pages provide additional coverage:
- Install Ollama
- The prerequisite if the engine is not yet set up on Windows, macOS, or Linux—and the update, required for Qwen 3.8.
- Choose your quantization
- To make informed choices between Q4, Q8, and BF16: what each step costs in memory and delivers in quality.
- Qwen 3.8: the open-weights timeline
- Where the confusion between the Max in the API and the open 27B comes from, and what was actually announced when.
- Which LLM for 24 GB of VRAM
- The comparison of models that fit on a 24 GB card, if you're still deciding between Qwen 3.8 27B and a lighter alternative.
- Install Ollama in 5 minutes (Windows, macOS, Linux)
- Choose your quantization (Q4, Q5, Q8, FP16)
- Qwen 3.8 open weights: released August 14, 2026
- Which LLM for 24 GB of VRAM?
- Qwen 3 locally: complete testing and real-world benchmarks
Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.