Alibaba’s New Qwen4 Model Runs on a Single GPU

Jump to comments

Alibaba Group office buildings in Hangzhou with a white facade patterned with irregular dark openings and a white lattice canopy between two glass towers
Alibaba Group’s campus in Hangzhou, China, home of the company behind the Qwen models.
Photo: Thomas Lombard, 2012, via Wikimedia Commons (CC BY-SA 3.0)

Alibaba’s Qwen team released Qwen4-35B-A3B on Thursday evening, Dec. 3, Pacific time, the first model from its new Qwen4 family that anyone can download, run and use commercially. The weights went up on Hugging Face and ModelScope under the Apache 2.0 license, and within hours the model could be pulled with a single command in Ollama and run through llama.cpp, the Llama desktop app and Apple’s MLX framework.

The pitch fits in one line of the team’s announcement on X: "Runs on a single GPU when quantized." That post drew close to 590,000 views in under three hours. The model has 35 billion parameters in its main network but uses only about 3 billion of them for each token it reads or writes, and it accepts text, images and video with a context window of about a million tokens.

Independent testing put it at the top of its size class. Artificial Analysis, which runs its own benchmark suite, called it "the most intelligent model under 150B parameters" and scored it 5 points ahead of Thinking Machines Lab’s laptop model, Inkling 2 Mini, at about the same cost per task.

A 35-billion-parameter model that thinks with 3 billion

Qwen4-35B-A3B is a mixture-of-experts model. Its feed-forward layers hold 256 small "expert" networks, and a router picks 8 of them, plus one shared expert, for every token. Most of the model sits idle at any given moment, which is why it runs far faster than a dense model of the same size. The name spells this out: 35B total, A3B for "3 billion active."

The exact active count depends on who is counting. The model card says 3 billion; Hugging Face’s launch post puts it at about 3.8 billion once every piece that runs per token is included. Either way, it is a small fraction of the whole.

The newer part is how the model reads long inputs. Its 40 layers repeat one pattern ten times: three layers of Gated DeltaNet, a form of linear attention that squeezes everything read so far into a fixed-size memory, then one layer of what Alibaba calls Qwen Sparse Attention. That fourth layer can look back at specific earlier tokens anywhere in the context, but only up to 2,048 of them at a time, chosen by a small indexer. Because three of every four layers keep a memory that does not grow, the cache grows far more slowly than in a conventional model, which is what makes the million-token window practical.

Then there is the piece that makes the parameter count confusing. On top of the 35 billion, the model carries a 20-billion-parameter n-gram embedding table, a giant lookup of two- and three-token phrases that the second layer consults for every token. Each token reads just 16 rows of it. Add a 2-billion-parameter module for multi-token prediction and the download totals about 57 billion parameters.

That lookup table matters for anyone running the model at home. Because each token touches only a few rows, the table does not have to sit in fast memory. Unsloth, which publishes compressed versions of popular models, says the table, which it calls the engram, is about 30% of a 4-bit file and can stay on an SSD when RAM runs short.

What hardware you need

The full-precision weights are far too big for a home machine. Ollama lists the BF16 version at 114GB. Compressed copies are another story.

  • 36 to 37GB: the size of Ollama’s default qwen4 download, a 4-bit build. That is too big for a 32GB Mac to hold comfortably, so plan on more memory than that.
  • 24GB: Unsloth’s suggested starting point, a 4-bit build on a 24GB Mac or a 24GB graphics card such as Nvidia’s GeForce RTX 4090 or AMD’s Radeon RX 7900 XTX, with Unsloth’s software moving the lookup table to the SSD when memory runs short.
  • 18GB: a 3-bit build with a short context, the setup behind Unsloth’s "Run on 18GB RAM" headline, with roughly 20GB of the table left on the SSD.
  • 16GB graphics cards: 2-bit or 3-bit builds, which Unsloth suggests for cards like the RTX 5080. Expect some quality loss the further the model is squeezed.

Unsloth’s own table puts total memory at 10 to 11GB for a 1-bit build, 21 to 25GB at 4 bits and 41GB at 8 bits. Hugging Face and the llama.cpp project published three official GGUF files, at 4, 6 and 8 bits, and reported that turning on the model’s built-in multi-token prediction raised generation speed by 22% on an Apple M5 machine with the 4-bit file.

An Asus ROG Strix GeForce RTX 4090 graphics card lit with purple and green lights inside a desktop computer case
An Nvidia GeForce RTX 4090, a 24GB graphics card of the kind Unsloth suggests for its 4-bit Qwen4 build, running inside a desktop PC.
Photo: Benlisquare, 2022, via Wikimedia Commons (CC BY-SA 4.0)

For people who would rather not run anything, Alibaba sells access through its Qwen Cloud API at $0.06 per million input tokens and $0.36 per million output tokens, with cached input at $0.003. Prices were checked on December 3, 2026. Artificial Analysis calculated the cost of its test suite at $0.55 per task, against $3.53 for the older Qwen3.8 27B and $0.59 for Inkling 2 Mini.

As an Amazon Associate, Aglena earns from qualifying purchases.

How it stacks up

Alibaba published scores on 12 benchmarks comparing the new model with two of its own predecessors, the dense Qwen3.8-27B from August and the much larger Qwen3.8-Flash-Next, and with Inkling 2 Mini. A selection:

Benchmark (what it tests)Qwen4-35B-A3BQwen3.8-Flash-NextQwen3.8-27BInkling 2 Mini
DeepSWE v1.1 (software engineering)61.858.742.248.2
Terminal Bench 4.1 (command-line agent)21.224.25.65.6
FrontierCode-AA 2.0 (hard coding)16.127.114.915.1
NL2Repo (building a whole repository)51.748.142.341.8
APEX Agents v1.1 (professional agent tasks)59.061.047.550.9
HealthBench Professional (medical reasoning)47.434.829.845.7
GPQA (graduate-level science)86.991.789.286.9
VideoIndex (video understanding)52.951.451.944.0

Against the dense 27B model, the new one wins 10 of the 12 tests, ties on chart reading and loses only on GPQA. Against Qwen3.8-Flash-Next it splits six and six, which is still a strong result: Flash-Next has 125 billion parameters in its main network and 6 billion active, against 35 billion and 3 billion here. Alibaba’s summary, that the new model matches Flash-Next "at ~1/3 the size," holds up on its own chart.

The weak spots are real, though. On FrontierCode, a coding test on which every model in the comparison scores low, it scores 16.1 to Flash-Next’s 27.1. Artificial Analysis found its biggest gains over Qwen3.8 27B on Terminal-Bench and a physics benchmark, and one material regression, a 4-point drop on HLE-Diamond, a test of expert-level questions. On the firm’s overall Intelligence Index it scores 25, against 20 for Inkling 2 Mini and Qwen3.8 27B; the first model to beat it, Qwen3.8-Flash-Next at 28, is about three times bigger.

Alibaba chose all 12 tests and ran most of them itself; a few scores are taken from Artificial Analysis and from Mercor’s APEX leaderboard. Work360, one of the 12, is Alibaba’s own in-house benchmark. AI Weekly, in its write-up of the release, put the open question plainly.

Whether the sparse-attention hybrid holds at length against workloads Qwen did not pick is what the next week of community runs will show.

AI Weekly, Dec. 4, 2026

Why Alibaba keeps giving models away

Qwen models are a fixture of the open-source world, and the dense 27B model that the new one outscores shows how much they get used. Qwen3.8-27B has been downloaded about 4.6 million times in the past month, according to Hugging Face’s own count, and has more than 20,000 likes.

The Qwen4 design is not brand new. Alibaba released an open preview of the architecture in August, Qwen3.8-Flash-Next, a model of about 180 billion parameters in all, then used it at full scale in Qwen4-Max, which it introduced on Nov. 15 with a 2.4-trillion-parameter backbone, 71 billion active parameters and a 328-billion-parameter n-gram table. Thursday’s model is the first open release under the Qwen4 name and the first small one, and Alibaba’s model card says the rest of the open Qwen4 series is "on its way."

Giving the weights away under Apache 2.0 means anyone can fine-tune the model, build it into a product and sell that product without paying Alibaba. Alibaba’s return comes from elsewhere: API sales, Alibaba Cloud and the habit of developers who start their projects on Qwen. In a statement carried by Sina Finance, Alibaba Cloud pitched the model for long-document analysis, company knowledge bases, private deployments and on-device use, and said its own Qwen AI platform serves it on chips from T-Head, Alibaba’s in-house chip unit.

The release also lands in a busy week for open models. Amazon released its 1.1-trillion-parameter Ergo at re:Invent on Dec. 1, 11 days after Thinking Machines Lab put out Inkling 2 Mini on Nov. 20. On Alibaba’s chart, the new Qwen model beats it on 11 of 12 tests and ties on the 12th, though it is a bigger download.

Getting it running

The quickest route is Ollama: after installing it, typing ollama run qwen4 downloads the 4-bit build and opens a chat. Ollama also lists one-line commands to plug the model into coding agents such as Claude Code, OpenCode and Hermes Agent, so the model runs locally while the agent handles the files. The Llama desktop app, Unsloth’s desktop app and Apple’s MLX tools had builds on day one.

The model thinks before it answers by default. Its reasoning effort can be set to xhigh, high, low or off, and Alibaba warns that turning it down is not always faster on multi-step jobs, because a model that thinks less can make more mistakes and need more retries.

Two cautions apply to any newly hot model. Unofficial "Qwen4" files are likely to multiply on Hugging Face over the coming days, and GGUF files on Hugging Face have carried malware before, so stick to the Qwen, ggml-org, Unsloth and Ollama repositories. And the million-token window is a ceiling, not a promise: a long context needs memory for the cache, which is why Unsloth pairs its smallest builds with a short one.

Hugging Face’s own engineers ended their launch post by calling it "a high-quality mid-sized model for local setups." Whether it is the one to keep will depend on what people throw at it this week.

Further reading

Cover of Build a Large Language Model (From Scratch) by Sebastian Raschka
Build a Large Language Model (From Scratch)

Sebastian Raschka walks through coding a small GPT-style model step by step, a good way to understand what tools like Ollama are running.

Cover of Hands-On Large Language Models by Jay Alammar and Maarten Grootendorst
Hands-On Large Language Models

A heavily illustrated guide to how language models work and how to use open models in your own projects.

Samsung 990 PRO 2TB M.2 solid-state drive with a black label
Samsung 990 PRO 2TB PCIe 4.0 NVMe SSD

Room for several large model files, and fast enough to serve as the spill-over space Qwen4’s lookup table can use.

Gray Samsung T7 portable solid-state drive, a small aluminum rectangle
Samsung T7 Portable SSD 1TB

A pocket-size USB drive for carrying multi-gigabyte model files between machines.

NVIDIA Jetson Orin Nano Super developer kit, a small black board with a fan-cooled heat sink and USB and Ethernet ports
NVIDIA Jetson Orin Nano Super Developer Kit

Nvidia’s palm-sized AI computer for experimenting with small local models and robotics projects.

Aglena Best Of product picks

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Aglena