Skip to main content
Experiments · Local AI

Understanding Qwen 3.8

A frontier-class language model from China, released with open weights under Apache 2.0, that runs entirely on one consumer graphics card. What it is, where it came from, what 27 billion parameters and 262,144 tokens actually mean, and why it fits in 17 GB.

Where it comes from

Verified August 26, 2026 · 12:45

Qwen (通义千问, Tongyi Qianwen — roughly "truth from a thousand questions") is the model family built by the Qwen team at Alibaba Cloud, the cloud-computing arm of Alibaba Group in Hangzhou. Since 2023 the team has followed a consistent strategy that sets it apart from the American labs: it serves its largest models through an API like everyone else, but it also publishes open weights — the trained parameters as downloadable files — for a ladder of sizes that anyone can run.

That strategy is why Qwen is, by download count, one of the most-used model families on Hugging Face, and why it sits at the centre of the open-weight ecosystem alongside DeepSeek, Kimi and Meta's Llama. The 3.8 generation, released in August 2026, is the first in which the small open model is credibly close to the closed frontier on the benchmarks that matter for real work.

ModelParametersWhat it is
Qwen3.8-Max
Not used: even with only ~95 B parameters active per token, all 2.4 T must sit in memory — a multi-server cluster, not a desktop. Reaching it means Alibaba's paid API, which makes it just another hosted vendor rather than a local, $0, private experiment. Its weights also carry unresolved regional licence questions the 27B does not.
2.4 trillion (≈95 B active) Mixture-of-experts flagship. Each token is routed through roughly 4% of the network. 1M-token context. Served through Alibaba's API; weights released separately from the 27B.
Qwen3.8-27B
We are testing this one.
27.3 billion (dense) The deployable companion. Every parameter fires on every token. Text, image and video in; text out. This is the one that runs on a desktop.
Limits worth knowing: the model has no native access to anything outside itself — no internet, no web search, no file system, no ability to call an API or reach the network. Its knowledge stops at its training cut-off, and it can only reason over what is placed in its prompt. Any "browsing" or tool use seen in demos is a surrounding program handing it results and acting on its replies; the weights alone are inert. It also has no memory between requests and, at 4-bit, gives up a small measurable amount of accuracy versus the full model.
Qwen3.6 (Apr 2026) 27 B dense · 35B-A3B MoE Previous generation — the same two shapes, one dense and one sparse.
Qwen3.5 0.8 B → 397B-A17B A full ladder of sizes, from phone-scale to data-centre MoE; 201 languages and dialects.

Open weights are not the same as open source. The weights and the inference code are Apache 2.0; the training data and the training code are not published. You can run it, fine-tune it and ship it commercially — you cannot rebuild it from scratch.

Qwen3.8-27B at a glance

Verified August 26, 2026 · 12:45
SpecValueWhat it means
ReleasedAugust 14, 2026Weights posted to Hugging Face and ModelScope the same evening
PublisherQwen team, Alibaba Cloud (Hangzhou, China)Alibaba Group's cloud division; Qwen is its open-weight model line
LicenseApache 2.0Permits commercial use, modification and redistribution — read straight from the license text inside the model file
Parameters27.3 billion27,781,427,952 at full precision once the vision encoder is counted
Architecture65 transformer blocks · 5,120 wide24 attention heads over 4 key/value heads (grouped-query attention); trained with multi-token prediction
Native context262,144 tokensAbout 200,000 words in one prompt; extendable to 1,000,000 tokens with YaRN position scaling
ModalitiesText · images · video → textVision is part of the model, not a bolt-on encoder
Thinking modeHybrid: on by default, switchableReasoning effort xhigh / medium / low / none — the same weights serve as a reasoner or a fast responder

Parameters, tokens and context — the three numbers

Written August 26, 2026 · 12:45

Parameters are the learned weights — the numbers the model adjusts during training and reads during every answer. 27 billion of them is mid-sized by 2026 standards: large enough to hold real world knowledge and follow long, structured instructions, small enough to fit on one card. The flagship Qwen3.8-Max has 2.4 trillion, but as a mixture-of-experts it only activates about 95 billion per token; the 27B is dense, so all 27 billion take part every time. Dense models are simpler to run and quantise, which is why the deployable member of every Qwen generation is dense.

Tokens are the units the model reads and writes — word fragments, roughly three-quarters of an English word each. Speed is quoted in tokens per second and price in dollars per million tokens. A full company briefing of the kind we feed it is about 2,300 tokens; a four-paragraph written reply is about 1,200.

Context is how many tokens the model can hold in view at once. Qwen3.8-27B's native window is 262,144 tokens — a long novel — and Alibaba documents extension to one million using YaRN, a technique that rescales the position signal so the model can attend further than it was trained to. In practice a local runner sets a smaller window because the working memory for a long context (the KV cache) competes with the weights for the same graphics memory.

What it can do

Vendor-reported · verified August 26, 2026 · 12:45

Three things distinguish the 3.8 generation. It is natively multimodal — images and video go in alongside text, and the vision path is used during reasoning rather than merely captioned at the door. It is a hybrid reasoner: the same weights run in a slow "thinking" mode that writes out a chain of reasoning before answering, or a fast instruct mode that does not, selectable per request. And it was trained with a heavy emphasis on agentic work — long multi-step tasks in code repositories, terminals and documents rather than single-turn chat.

BenchmarkScoreWhat it tests
SWE-bench Pro61.7%Agentic software engineering — fixing real repository issues end to end
LiveCodeBench v690.3Competitive programming problems published after the training cut-off
GPQA Diamond89.2Graduate-level science questions written to be search-proof
MathVision90.0Mathematical reasoning over diagrams and figures
Terminal Bench 2.173.0%Completing multi-step tasks in a command-line environment
CoWorkBench70.7Office-style document and workflow automation

These are Alibaba's own published evaluations at release; independent replications typically land a few points lower and vary by harness. Treat them as the vendor's claim, not an audited result. The honest headline is narrower: on agentic coding benchmarks the open 27B is reported within range of closed frontier models that cost two orders of magnitude more to run.

Why 27 billion parameters fit in 17 GB

Verified August 26, 2026 · 12:45

Stored at the 16-bit precision it was trained in, the model needs about 56 GB — more than any consumer graphics card carries. Quantisation rounds each weight to fewer bits. The Q4_K_M scheme used by most local runners stores weights at roughly 4 bits in blocks, keeping the most sensitive tensors (attention and output layers) at slightly higher precision. The file shrinks to about 17 GB; the measured quality loss is small.

PrecisionMemory neededTrade-off
BF16 (full) ≈56 GB As trained; needs a workstation or server card
8-bit ≈31 GB Near-lossless; still over the consumer ceiling
4-bit Q4_K_M
We are testing this one — the 17.7 GB build.
16–19 GB The sweet spot: fits a 24 GB consumer card with room for context
2-bit 9–11 GB Runs on a laptop; noticeable quality loss

The quantised model ships as a single GGUF file — a container format from the llama.cpp project that bundles weights, tokenizer and metadata. It is data, not a program: it cannot execute code, open sockets or read the disk. Ollama, the open-source runner we used, wraps llama.cpp in a local HTTP API so any language can call the model with a plain JSON request — the same shape as calling a hosted model, with the vendor replaced by a local process. No account, no API key, and after the one-time download, no network traffic at all.

Where it stands against the frontier

Third-party + community · verified August 26, 2026 · 12:45

The fairest yardstick is the closed models people actually pay for: Claude Opus 5 (Anthropic), GPT-5.6 Sol (OpenAI) and Grok 4.6 (xAI) — the three flagships of the American labs. Vendor benchmarks flatter whoever publishes them, so the table leans on independent aggregators where they exist and says so where they do not. Two numbers frame it. On the Artificial Analysis Intelligence Index — a composite of ten evaluations run by a third party — Qwen3.8-27B scores 52: seven points behind GPT-5.6 Sol, eleven behind Opus 5, level with OpenAI's smaller Luna tier, and one point behind the best open models, which are 25–60× its size. On Humanity's Last Exam, the hardest pure-knowledge test in wide use, it scores 30.8 against Opus 5's 54.9. Both are true at once, and together they are the whole story: a 27B model can be taught how to do things nearly as well as the big models; it simply does not know as much, because facts are stored in parameters and it has fewer of them.

Aspect Claude Opus 5
Anthropic · US
GPT-5.6 Sol
OpenAI · US
Grok 4.6
xAI · US
Qwen3.8-27B
Alibaba Cloud · China
Quick read
where Qwen stands
Weights
can you download it?
Closed Closed Closed Open · Apache 2.0 Its whole advantage starts here
Parameters
size of the model
Undisclosed Undisclosed Undisclosed 27.3 B Smallest by a wide margin
The three closed flagships are believed to be far larger; none publishes a count
Where it runs Vendor cloud only Vendor cloud only Vendor cloud only Any cloud, or one consumer GPU Only one that runs on a desk
Overall intelligence
Artificial Analysis index, 0–100
63.0 58.9 60.9 52.0 Frontier-adjacent, not frontier
Composite of ten third-party evaluations; BenchLM snapshot, August 26, 2026
Raw knowledge
Humanity's Last Exam
54.9 49.5 30.8 Clearly behind — knows less
HLE leaderboard August 22, 2026 (no tools); Qwen figure is vendor-reported. The biggest gap on the page
Science reasoning
GPQA Diamond
94.2 94.6 89.2 Close — a few points back
Agentic coding
DeepSWE 1.1 (hard repo tasks)
68.8 73.0 65.9 42.2 Well behind on the hardest tasks
The task type where model size still shows
Computer use
OSWorld family
70.6 62.6 84.3 Ahead outright
Qwen on OSWorld-Verified; Opus/GPT on OSWorld 2.0 — related but not identical harnesses
Context window
tokens
1 M 1.05 M 500 K 262 K (1 M w/ YaRN) Smaller, still huge in practice
Output speed
hosted API, tokens/sec
58 72 55 54 hosted · ~70 local On par hosted; faster local
Artificial Analysis / BenchLM measurements; the Qwen local figure is ours, thinking off
Price
per million tokens, in / out
$5 / $25 $5 / $30 $2 / $6 $0.50 / $3 hosted · $0 local 10× cheaper hosted, free local
GPT-5.6 Sol on a promotional $4 / $20 through November 2026
Data leaves your machine Yes Yes Yes No (local) Unmatched privacy

The community read, from people who have run it rather than read the model card: it is the first local model that feels like a frontier model for tasks with a defined shape — edit this code, fill this form, extract this table, follow this format. It is not the model you reach for when the task is open-ended judgment on obscure material, when the hardest part is knowing something the prompt did not include, or when you need a long document reasoned over end to end without losing the thread. Simon Willison, who tracks these releases closely, called it "a truly astonishing model" for its size and, in the same breath, noted that in its default thinking mode it tends to "wildly overthink."

Independent scores move as harnesses are re-run and vendors ship point releases; these are the figures on the verification date. The 4-bit build we test typically lands a point or two below the full-precision numbers quoted here.

Why it matters

Written August 26, 2026 · 12:45

Hosted frontier models are still better, and for the work that matters we keep using them. But the gap has become a matter of degree rather than kind, and the open model is free at the margin, private by construction, and always available. Two years ago a model of this capability meant a data centre and a vendor contract. Today it is a 17 GB download onto a gaming PC — published, notably, by a Chinese company under a licence that lets anyone in the world use it for anything.

Sources: Alibaba Cloud's release announcement, the QwenLM/Qwen3.8 repository on GitHub, Artificial Analysis, llm-stats.com, the public Code Arena leaderboard, Simon Willison's write-up, the Unsloth deployment guide, and the model manifest as read from the downloaded weights.