AI ShortsOpen the app
Under the Hood ยท

How Qwen4-35B-A3B fits long memory on a laptop

Alibaba's Qwen team released Qwen4-35B-A3B on 4 December under the Apache 2.0 licence. Only about 3.8 billion of its numbers work on each word. It reads text, images and video and can hold roughly 1 million words of context. Alibaba did not publish its training data or compute, and gave no memory needs.

What it is: Qwen4-35B-A3B is an open model from the Qwen team, published on Hugging Face on 4 December under Apache 2.0. It takes text, image and video input, writes text, and supports a 1 million token context. The Hub lists 57B in total, while the post says about 35B main parameters plus 20.5B in a per-layer embedding table.

How it works inside: The post describes 256 routed experts, with eight routed experts plus one shared expert used per token. The text part repeats a four-layer pattern ten times: three Gated DeltaNet layers, then one Qwen Sparse Attention layer, which groups tokens in fours and attends to a limited set of them. Each token carries four residual streams mixed by learned gates.

Why it was built this way: Sparse attention and expert routing cut the work per token, which is what lets a long context and a laptop-sized run coexist. The post reports a 22% speed-up from multi-token drafting on an M5 Mac with a 4-bit version.

Limits: The post does not describe pretraining data, compute or the training recipe, and it gives no memory requirements. Benchmark numbers appear only as images. It also does not explain the 35B versus 57B count.

New to this? The key idea

A mixture of experts is a model made of many small specialist networks. For each word, a router picks only a few of them, like sending a question to the right desk instead of asking the whole office. You get a big model's knowledge at a small model's running cost.

Use it at work

Use it for: running a capable multimodal model locally where data cannot leave the machine; long documents and screenshots. Expect weaker results than hosted frontier models on hard tasks, which the post does not compare.

Copy this: layer a cheap linear-attention block three times for every full-attention block, so most layers stay inexpensive while one in four keeps global reach.

Try it: the post shows

 serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K

for llama.cpp, and mlx_lm.generate with mlx-community/Qwen4-35B-A3B-4bit-text on Apple Silicon.

Before you roll it out: Apache 2.0 licence; hardware needs not stated.

Summaries are written by AI from the linked source. Always check the original.

Get AI Shorts by email

Every morning, the day's stories in one short email. Unsubscribe in one tap.