Ollama
Default tag is about 18 GB (4-bit).
ollama run qwen3.8:27bOpen-weight model guide · released Aug 14, 2026 · checked 2026-10-21
Alibaba’s dense 27B vision-language model under Apache 2.0. Work out whether it fits your GPU, copy the command to run it, and see what hosted API access costs.
01 / What it is
Qwen3.8-27B is a 27B-parameter dense model with a built-in vision encoder, released on Hugging Face and ModelScope on August 14, 2026.
It shipped alongside the 2.4-trillion-parameter Qwen 3.8-Max. The 27B is the version most people can actually run: about 17 GB at 4-bit, with text, image and video input, tool calling, and configurable reasoning. Thinking mode is on by default.
Its 64 layers are arranged as 16 repeating blocks of three Gated DeltaNet (linear attention) layers and one Gated Attention layer. That is why the KV cache is small for its size, and why the calculator below treats context more generously than a generic “27B” rule of thumb.
02 / VRAM calculator
Decimal GB · single user, one request at a time
Estimated memory
0 GB
Estimate, not a guarantee. Only 16 of the model’s layers keep a KV cache, so long context is cheaper than on a standard 27B model. Includes a 1.2 GB runtime allowance; GPUs are counted at 94% of capacity and Macs at 75% (the default GPU memory limit). Batching several requests multiplies the KV cache.
03 / Run locally
Ollama tags and GGUF files are community builds of the official weights
Default tag is about 18 GB (4-bit).
ollama run qwen3.8:27bUnsloth GGUF; add the mmproj file for images.
llama-server -hf unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_MOfficial BF16 weights. Use Qwen/Qwen3.8-27B-FP8 for half the memory.
vllm serve "Qwen/Qwen3.8-27B"Official serving recipe from the model card.
python3 -m sglang.launch_server --model-path "Qwen/Qwen3.8-27B" --port 30000For direct answers without a reasoning block, send enable_thinking: false (vLLM/SGLang: inside chat_template_kwargs). Qwen’s recommended sampling for thinking mode is temperature 1.0, top_p 0.95, top_k 20.
04 / Benchmarks
Qwen-reported model-card scores · higher is better
All numbers are from Qwen’s model card, which includes Claude Opus 4.6 Max (some rows use Anthropic’s officially reported score). Qwen’s in-house benchmarks are left out. The 27B beats the much larger Opus on several agent tests but not on GPQA, HLE or Terminal Bench; independent testers have also found it defaults to very long reasoning, so budget for output tokens.
05 / API price
USD per 1M tokens · 20 providers on OpenRouter
A selection spanning the cheapest, first-party and most expensive listings. OpenRouter routes qwen/qwen3.8-27b across providers unless you pin one, so your effective rate can move between these.
Qwen 3.8 27B
Alibaba Cloud (first-party)
$0.00
estimated / month Lowest
Qwen 3.8 27B
Cheapest listed output (Chutes)
$0.00
estimated / month Lowest
Claude Haiku 5.5
Anthropic list price
$0.00
estimated / month Lowest
Haiku 5.5 bills the whole request at $0.50 / $2.50 once the prompt exceeds 100K tokens. Output is where Qwen is expensive, and thinking mode multiplies output tokens—set the output field to what your runs actually produce. Self-hosting has no per-token price.
Hosted Qwen output is priced well above Haiku 5.5. The reason to pick Qwen is control—local deployment, open weights, fine-tuning—not a cheaper API. Full Qwen 3.8 27B vs Haiku 5.5 comparison →
06 / Live test
Real OpenRouter responses · thinking off for the demo
Each run sends the same prompt to Qwen 3.8 27B and Claude Haiku 5.5. Qwen runs with reasoning disabled so a short demo budget produces an answer; enable thinking in your own deployment for hard tasks.
The shared VS quota resets at midnight UTC. Use your own OpenRouter key to continue.
Free allowance is shared across all VS pages. Lark receives run metadata only—never your prompt, API key or raw IP. One run is a sample, not a benchmark.
The common 4-bit build (UD-Q4_K_M) is a 16.5 GB download. With a 32K context and FP16 KV cache it needs roughly 20 GB, so a 24 GB GPU runs it comfortably. The official FP8 weights are 30.9 GB and BF16 is 55.6 GB. Use the calculator above for other quantizations and context lengths.
Only 16 of the 64 layers use standard attention; the other 48 use Gated DeltaNet linear attention with a fixed-size state. The KV cache therefore grows by about 64 KB per token at FP16—roughly a quarter of what a standard 27B transformer needs. The full 262K native window adds about 17 GB.
Yes. A 36 GB Apple Silicon Mac fits the 4-bit build with a medium context under macOS’s default GPU memory limit. Ollama also publishes MLX tags (qwen3.8:27b-mlx). 64 GB or more leaves room for 8-bit weights or long context.
The weights are released under Apache 2.0, which allows commercial use and fine-tuning. Running it locally is free apart from hardware. Hosted API access is paid and varies by provider.
Thinking is on by default and the default reasoning_effort is xhigh. Pass enable_thinking: false (in chat_template_kwargs for vLLM/SGLang) for direct answers, or set reasoning_effort to medium or low. Qwen notes that lower effort does not always shorten multi-turn agent tasks.
On Qwen’s own model card it leads 3.6 27B on every benchmark shown, with the biggest gains in agentic work: SWE-bench Pro 61.7 vs 53.5 and OSWorld-Verified 84.3 vs 63.9. These are vendor-reported scores; test on your own tasks before switching.
Not as of 2026-10-21. Alibaba named a Qwen 4 27B open-weights model at its Apsara conference on September 22, 2026, but published no weights, specs, license or date. Qwen 3.8 27B is the current 27B release.
07 / Sources
Checked 2026-10-21. Provider prices and community builds change often; confirm them before committing.