Intermediate 14 minOllama

Qwen 3.8 27B locally: Ollama installation and VRAM

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.

By Mohamed Meguedmi·Update 2026-11-19·Tested on Windows, macOS, and Linux

#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.

The exact command (Ollama 0.40.16 as of November 9, 2026)
# Télécharger puis discuter (18 Go à télécharger)
ollama run qwen3.8:27b

# Ou en deux temps
ollama pull qwen3.8:27b
ollama run qwen3.8:27b
Official Qwen 3.8 tags on Ollama: file size (tags page, accessed November 16, 2026) and memory to plan for (site estimate: file + context cache + headroom)
TagFile sizeMemory requirementsWho it's for
qwen3.8:27b (also qwen3.8:latest; q4_K_M)18 GB24 GB of VRAM, or a 32 GB MacThe default choice: RTX 3090, 4090, 5090
qwen3.8:27b-q4_K_M; qwen3.8:27b-mtp-q4_K_M18 GB24 GBSame size as the default; the "mtp" variant is designed for multi-token prediction
qwen3.8:27b-q8_0; qwen3.8:27b-mtp-q8_030 GB40 GB and upQuality closer to the original weights: 48 GB card, two cards, 64 GB Mac
qwen3.8:27b-bf16; qwen3.8:27b-mtp-bf1656 GB80 GBUnquantized weights: compute machines, 128 GB Macs
qwen3.8:27b-mlx; qwen3.8:27b-nvfp418 GBMac with 32 GB of unified memoryApple Silicon: tags marked MLX by Ollama
qwen3.8:27b-dflash2-nvfp419 GBMac with 32 GB of unified memoryMore recent MLX variant (page updated two weeks ago)
qwen3.8:27b-mxfp830 GBMac with 48 GB of unified memoryApple Silicon, higher precision
qwen3.8:27b-mlx-bf1656 GBMac with 96 GB of unified memoryApple 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.
!
The performance figures come from Alibaba
All the scores cited below come from Alibaba's official model card on Hugging Face. We haven't found any independent reproduction: treat them as vendor figures, consistent with the previous generation but not verified here.

#What Qwen 3.8 27B really is

The complete kit for building your own AI assistant.

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.
i
Do not confuse it with Qwen 3.8-Max
Qwen3.8-Max is the official version, available through the Qwen Cloud API, of a 2.4-trillion-parameter model with 95 billion active parameters per token. Alibaba also publishes this model's weights as Qwen3.8-2.4T-A95B, under a "qwen3.8-max" license separate from Apache 2.0. It's far too large for a personal computer: the 27B is the variant for your machine.

#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.

!
16 GB of VRAM: possible, but not comfortable
On a 16 GB RTX 4060 Ti or a 5070 Ti, the 18 GB file doesn't fit entirely in memory: Ollama offloads the rest to the CPU and generation slows down significantly. For 16 GB, a 12 to 14 billion parameter model makes better use of the machine.

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

  1. 01
    Update Ollama
    Qwen 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.
  2. 02
    Download the model
    18 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.
  3. 03
    Start a first exchange
    The 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.
  4. 04
    Check where the model is running
    The 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.
Installation and first test
# 1. Récupérer le modèle (18 Go)
ollama pull qwen3.8:27b

# 2. Discuter avec
ollama run qwen3.8:27b

# 3. Vérifier la répartition GPU / CPU et le contexte alloué
ollama ps
i
qwen3.8 by itself = the 27B
Ollama's tags page shows that “qwen3.8:latest” and “qwen3.8:27b” are the same size (18 GB), so “ollama run qwen3.8” gets you the same thing. The 27B is the only size published for Qwen 3.8 on Ollama, but there are several quantization tags. Pinning the tag in your scripts avoids surprises if other sizes are released.

#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.

On Mac Apple Silicon
# Tag MLX (Apple Silicon)
ollama run qwen3.8:27b-mlx

# Mac 64 Go ou plus : précision supérieure
ollama run qwen3.8:27b-mxfp8
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.

Set the context window
# Pour tout le serveur Ollama (valeur recommandée pour les agents)
OLLAMA_CONTEXT_LENGTH=64000 ollama serve

# Dans une session interactive
/set parameter num_ctx 32768

# Ou via un Modelfile réutilisable
cat > Modelfile <<'EOF'
FROM qwen3.8:27b
PARAMETER num_ctx 32768
PARAMETER temperature 1.0
PARAMETER top_p 0.95
PARAMETER top_k 20
EOF
ollama create qwen38-long -f Modelfile
!
256k on paper, 16k to 64k in your setup
The context cache grows with length and comes on top of the 18 GB of weights. On a 24 GB card, a 32,000-token window is a safe setting, 64,000 is possible at the cost of headroom, and 262,144 is out of reach: these are estimates, to be checked with ollama ps (CONTEXT and PROCESSOR columns). Flash attention and KV cache quantization (the OLLAMA_FLASH_ATTENTION and OLLAMA_KV_CACHE_TYPE variables) can free up memory.

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.

Sampling parameters recommended by Alibaba
Modetemperaturetop_ptop_kpresence_penalty
Thinking (default)1.00.95200.0
Instruct (no reasoning)0.70.80201.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.
Disabling thinking for a request (Ollama API)
curl http://localhost:11434/api/chat -d '{
  "model": "qwen3.8:27b",
  "messages": [{"role": "user", "content": "Bonjour"}],
  "think": false,
  "stream": false
}'

#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.

Command-line vision
ollama run qwen3.8:27b
>>> Décris ce schéma et liste les valeurs lisibles ./schema.png
!
Test vision before going to production
If your responses ignore the image or describe something else, update Ollama before digging further, then validate on about ten of your own documents before rolling it out at scale.

#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.

Qwen3.8-27B and Qwen3.6-27B: scores reported by Alibaba on the Hugging Face model card (not reproduced)
TestQwen3.8-27BQwen3.6-27B
Terminal Bench 2.1 (agentic coding)73,063,4
SWE-bench Pro61,753,5
LiveCodeBench v690,383,9
IFBench (instruction following)79,569,1
GPQA Diamond (science)89,287,8
OSWorld-Verified (computer use)84,363,9
OmniDocBench 1.5 (documents)91,189,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

Frequently asked questions
How much VRAM does Qwen 3.8 27B need?+
24 GB of VRAM for the default tag (q4_K_M), whose file is 18 GB, plus the context cache on top. The q8_0 is 30 GB (plan for 40 GB or more) and the bf16 is 56 GB. On a Mac, aim for at least 32 GB of unified memory.
How do I install Qwen 3.8 27B locally?+
Install or update Ollama, then run “ollama run qwen3.8:27b”: the 18 GB file downloads on first run. On an Apple Silicon Mac, try the qwen3.8:27b-mlx tag instead.
Is Qwen 3.8 27B free and suitable for business use?+
Yes. The weights are released under the Apache 2.0 license, which allows commercial use, modification, and redistribution under the license's conditions. Read it before using the model in any product.
Is there a 14 or 8 billion parameter Qwen 3.8?+
Not among the official models so far: the Qwen3.8 collection on Hugging Face contains the 27B (and its FP8 version) and the 2.4-trillion-parameter model. On Ollama, the qwen3.8 page only lists 27b tags. For 12 to 16 GB of memory, see the page on the Qwen family.
What is the difference between Qwen 3.8 27B and Qwen 3.8-Max?+
Qwen3.8-Max is the official, API-accessible version of a 2.4-trillion-parameter model (95 billion active). Its weights are available as Qwen3.8-2.4T-A95B, under a license separate from Apache 2.0, but they're out of reach for a personal computer. The 27B is the variant designed for your machine.
Can you run Qwen 3.8 27B with 16 GB of VRAM?+
Technically yes, but the 18 GB file exceeds 16 GB: part of the model spills over to the CPU, and generation slows down significantly. On 16 GB, a model with 12 to 14 billion parameters is a better choice.
Is Qwen 3.8 27B better than Qwen 3.6 27B?+
According to the scores published by Alibaba, yes for agentic coding (73.0 vs. 63.4 on Terminal Bench 2.1) and computer use (84.3 vs. 63.9 on OSWorld-Verified). These are the vendor's own scores, and the gap is probably less noticeable in a simple conversation.
Can Qwen 3.8's reasoning mode be disabled?+
Yes. Thinking is on by default; the Ollama page says it can be turned off per request, and the API accepts think: false. Its level is set with reasoning_effort (xhigh, medium, or low). In non-thinking mode, the model card recommends temperature 0.7 and top_p 0.80.
Is a one-million-token context available locally?+
Not in any documented way with Ollama, as far as we know. The native context is 262,144 tokens; extending it to one million relies on YaRN, which the model card pairs with SGLang, vLLM, or TokenSpeed. On 24 GB, a window of 16,000 to 64,000 tokens is a realistic setting.

#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.

#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.
Did this guide help you?

Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.