Alibaba Releases Qwen4-35B-A3B, an Apache 2.0 Model That Runs Locally in About 22GB of Memory
Source: huggingface.co

Image: Goumbik on Pixabay
Tech news by email, once a week
Unsubscribe any time. Privacy policy
Alibaba's Qwen team released Qwen4-35B-A3B on Friday, December 4, publishing the first downloadable model of its Qwen4 family under the Apache 2.0 licence for people who want to run it on their own computers.
The weights are on Hugging Face and ModelScope. The model accepts text, images and video, and has a native context window of 1,048,576 tokens, according to the launch post on Hugging Face. Formats include full-precision BF16, FP8, GGUF for llama.cpp and builds for Apple Silicon.
Qwen said the model outperforms its denser Qwen3.8-27B and matches Qwen3.8-Flash-Next at about a third of the size. It also said a quantized copy, compressed to use fewer bits per weight, runs on a single GPU.
A 35B model with a large lookup table on the side
Qwen4-35B-A3B is a mixture-of-experts model, which means only part of the network works on each token. Qwen puts the main model at 35 billion parameters with 3 billion active. Its model card lists two further components: a 20-billion-parameter n-gram embedding table and a 2-billion-parameter module for multi-token prediction (MTP), a technique that drafts several tokens ahead to speed up output.
Hugging Face counts differently, giving about 3.8 billion active parameters and roughly 56 billion in total once the embedding table is included. Anyone comparing the model with others by size should check which figure is in use.
The table matters for memory because software can leave it on the SSD and read entries as needed. It still takes up disk space, but much of it never has to sit in RAM or graphics memory.
Users can set reasoning effort to xhigh, high, low or off. Lower settings are meant to cut the time and tokens the model spends thinking before it answers.
Memory needs range from 18GB to more than 36GB
LM Studio said the model takes about 22GB to run locally. Unsloth, which publishes its own compressed versions, said 3-bit builds can run with 18GB of RAM while about 20GB of the lookup table stays on the SSD. For 4-bit, it lists 21GB to 25GB of combined memory and suggests its UD-IQ4_XS file for a 24GB graphics card or a Mac with 24GB of unified memory.
Other packages are much larger. The main Q4_K_M GGUF file from ggml-org, the llama.cpp organization, is 36GB, with a separate 1.29GB MTP file. Ollama's default downloads are 36GB to 37GB. Someone with a 24GB machine should therefore pick a build made for that size and avoid assuming every 4-bit file will fit.
Long context costs extra memory. The minimum figures should not be read as enough to use the full 1-million-token window.
How to run it with LM Studio, Ollama, llama.cpp or MLX
In LM Studio, update the runtimes first with lms runtime update –all, then download qwen/qwen4-35b-a3b.
Ollama users with enough memory and disk space can start with this command:
ollama run qwen4:35b-a3b
Ollama also lists an MLX-based tag for Apple Silicon, qwen4:35b-a3b-nvfp4, at 36GB.
For llama.cpp, install a current build, since older ones will not load the model. This command starts a local server with MTP drafting turned on:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M –spec-type draft-mtp –spec-draft-n-max 3
On smaller machines, Unsloth's documented route keeps the lookup table off the GPU:
llama-server -hf unsloth/Qwen4-35B-A3B-GGUF:UD-IQ4_XS –load-mode mmap –lazy-mode on -ot per_layer_token_embd=CPU
Mac owners can also use MLX builds. Check whether a given file supports images, because Unsloth's MLX quant is text only. To estimate what your hardware can handle before downloading tens of gigabytes, use our local AI model checker.
Qwen's scores and an outside test
On DeepSWE v1.1, a test of long software engineering tasks, Qwen reported 61.8 for the new model, compared with 58.7 for Qwen3.8-Flash-Next and 42.2 for Qwen3.8-27B. Across 12 benchmarks in its comparison, the new model beat the 27B on ten, tied it on one and trailed it on GPQA, a science question test.
The results are less favorable on some coding measures. On Terminal-Bench 4.1, the model scored 21.2, well above the 27B's 5.6 but below Flash-Next's 24.2. It also trailed Flash-Next on FrontierCode-AA 2.0, with 16.1 against 27.1.
Artificial Analysis, an independent benchmarking firm, gave the model 25 on its Intelligence Index at the xhigh setting. That was the top score among 17 open-weight models between 4 billion and 40 billion parameters. Qwen3.8-27B scored 20, and Flash-Next scored 28.
The same testing found heavy token use, at about 205,000 output tokens per task, including 160,000 for reasoning. A model that writes that much takes longer to finish, particularly on home hardware.
Early users report uneven results
Launch-day reports from users are anecdotal and depend heavily on the setup. One Hacker News commenter reported more than 100 tokens per second from a 4-bit version on an M5 Max Mac. Another, using an AMD RX 7900 XTX, reported about 35 tokens per second, slower than the 50 to 60 they got from Qwen3.8-27B. A third said 4-bit versions did worse than the 27B on their own programming tests.
There are also early software complaints. Users have filed reports of crashes or incoherent output with MTP in some llama.cpp configurations, including a split across two GPUs. If output looks broken, remove the two speculative decoding flags and try again.
What changed from earlier Qwen models
The "35B-A3B" size is familiar. Qwen3.6-35B-A3B, released in April, also had 35 billion parameters with 3 billion active, under Apache 2.0, but its native context was 262,144 tokens. Qwen3.8-27B followed in August with the same native context length and a dense design, in which the whole network works on every token.
The new release extends native context to about four times that length and adds the disk-based table. It also differs from Qwen4-Max, the flagship Alibaba launched in November as a closed API model.
Gemma 4 needs less memory for its weights
Google's Gemma 4 is a close rival for the same class of hardware, and it also uses Apache 2.0. Google lists 4-bit weight memory of 14.4GB for the 26B mixture-of-experts model and 17.5GB for the 31B dense model, both with 256K context. Those numbers cover weights and are not directly comparable with the total figures given for Qwen4. Thinking Machines' Inkling 2 Mini is another recent Apache 2.0 option near this size.
For users, Apache 2.0 permits commercial use, modification and redistribution, subject to its notice conditions. Running the model locally keeps prompts and files on your machine, provided the app around it does not send them elsewhere.
Hosted pricing and hardware costs
Those without suitable hardware can use Alibaba's hosted version. Qwen Cloud lists it at $0.06 per million input tokens and $0.36 per million output tokens, with cached input at $0.003. Qwen4-Max costs $1.50 and $4.50. The high token use measured by Artificial Analysis means the bill per task can be larger than the unit price suggests.
Buying hardware is a bigger outlay. A used RTX 3090, a common 24GB card for local models, had a median eBay sale price of about $1,600 in the US as of December 1, based on price tracking data. Try the model through a hosted service or on a computer you already own before buying one.
US government users and contractors have a policy question to follow. In November, the House Homeland Security Committee and the House China committee recommended barring models developed in China from federal systems. The recommendation is not law.
Smaller Qwen4 models still have no date
Alibaba has said more Qwen4 models will be released with open weights. It pointed to a 27B model at its Apsara conference in September, but that model did not arrive on Friday and has no announced release date. Friday's release also includes nothing small enough for a typical phone, despite the on-device framing.
Independent testing has yet to establish how much quality each compressed version loses, how well the model holds up near the 1-million-token limit, or how much a slow SSD affects speed when the lookup table stays on disk. Anyone moving from Qwen3.8-27B can keep both installed and compare them on their own tasks, recording completion time along with answer quality.
Featured image: Goumbik on Pixabay
Get the week's tech news by email
One email a week with Trendblog's stories on AI, hardware, apps and crypto.
We'll email you to confirm your address. Unsubscribe any time. Privacy policy