Open-weight model guide · released Aug 14, 2026 · checked 2026-10-21

Qwen 3.8
27B

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

The local-sized half of the Qwen 3.8 launch

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.

Evidence boundarySpecs and benchmarks come from Qwen’s model card; file sizes from the published Hugging Face and Ollama listings; prices from OpenRouter on 2026-10-21. Memory figures are our estimate from the published architecture.

02 / VRAM calculator

Will it fit on my GPU?

Decimal GB · single user, one request at a time

Estimated memory

0 GB

Weights
—
KV cache
—
State, vision, runtime
—
HardwareThis setupLongest context that fits
16 GB GPU (RTX 5080 / 4080)——
24 GB GPU (RTX 4090 / 3090)——
32 GB GPU (RTX 5090)——
48 GB GPU (RTX 6000 Ada / A6000)——
80 GB GPU (H100 / A100)——
Mac, 36 GB unified memory——
Mac, 64 GB unified memory——
Mac / DGX Spark, 128 GB unified——

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

One command per runtime

Ollama tags and GGUF files are community builds of the official weights

Ollama

Default tag is about 18 GB (4-bit).

ollama run qwen3.8:27b

llama.cpp

Unsloth GGUF; add the mmproj file for images.

llama-server -hf unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M

vLLM

Official BF16 weights. Use Qwen/Qwen3.8-27B-FP8 for half the memory.

vllm serve "Qwen/Qwen3.8-27B"

SGLang

Official serving recipe from the model card.

python3 -m sglang.launch_server --model-path "Qwen/Qwen3.8-27B" --port 30000

For 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 3.8 27B vs 3.6 27B

Qwen-reported model-card scores · higher is better

BenchmarkQwen 3.8 27BQwen 3.6 27BChangeClaude Opus 4.6 Max
SWE-bench ProRepository coding (Claude Code harness)61.753.5+8.253.4
Terminal Bench 2.1Terminal agent tasks73.063.4+9.678.2
LiveCodeBench v6Competitive coding90.383.9+6.488.8
GPQA DiamondGraduate-level science89.287.8+1.491.3
HLEHard multi-domain questions30.824.0+6.840.0
IFBenchInstruction following79.569.1+10.462.5
OSWorld-VerifiedComputer use84.363.9+20.472.7
OmniDocBench 1.5Document parsing91.189.4+1.786.6

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

What hosted access costs

USD per 1M tokens · 20 providers on OpenRouter

ProviderInputOutputCached input
Chutes$0.039$1.25$0.0039
Darkbloom$0.035$2.20$0.0175
DeepInfra$0.15$1.88$0.0375
Alibaba Cloud Int.First-party$0.425$2.55$0.085
Cerebras$0.99$1.49$0.99
Cloudflare$0.45$3.20$0.05

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.

Monthly bill: Qwen 3.8 27B vs Claude Haiku 5.5

Qwen 3.8 27B

Alibaba Cloud (first-party)

$0.00

estimated / month

Qwen 3.8 27B

Cheapest listed output (Chutes)

$0.00

estimated / month

Claude Haiku 5.5

Anthropic list price

$0.00

estimated / month

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

Try Qwen 3.8 27B online

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.

Live OpenRouter testExact model snapshots, one shared prompt
2 free runs per day

Qwen 3.8 27B

qwen/qwen3.8-27b
Waiting
First token
—
Total
—
Tokens in / out
—
Estimated cost
—

Claude Haiku 5.5

anthropic/claude-haiku-5.5
Waiting
First token
—
Total
—
Tokens in / out
—
Estimated cost
—
Use your own OpenRouter keyThe key stays in this browser. This site still caps own-key runs at 60 per IP each day.

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.

Qwen 3.8 27B questions

How much VRAM does Qwen 3.8 27B need?

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.

Why does long context cost less memory than I expected?

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.

Can Qwen 3.8 27B run on a Mac?

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.

Is Qwen 3.8 27B free and open source?

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.

How do I turn off thinking mode?

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.

Is Qwen 3.8 27B better than Qwen 3.6 27B?

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.

Is Qwen 4 27B out yet?

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.