Qwen4-35B-A3B and Inkling 2 Mini: two opposite ways past 3B active parameters
Alibaba and Thinking Machines each shipped an Apache 2.0 mixture of experts that runs about 3 billion parameters per token. Qwen4 adds 20 billion parameters it only looks up. Inkling runs its middle layers three times. What each trade buys, what it costs on one card, and where each model breaks.
Alibaba released Qwen4-35B-A3B today under Apache 2.0, two weeks after Thinking Machines Lab released Inkling 2 Mini under the same license. Both are mixtures of experts that run about 3 billion parameters per token, both read images, both accept a million tokens of context, and both fit a 4-bit build on a single 24 to 32 GB card. They get more out of those 3 billion active parameters by opposite trades. Qwen4 adds 20 billion parameters that cost almost no arithmetic. Inkling adds arithmetic that costs no parameters, by running twelve of its layers three times.
On Artificial Analysis’s Intelligence Index v5, Qwen4 scores 25. Inkling 2 Mini scores 20, tied with the dense Qwen3.8-27B we wrote about in August. Version 5 uses a different set of evaluations from the one we quoted then, and Qwen3.8-27B, which scored 52 on the old version, scores 20 on this one, so none of these numbers compare with that post.
Qwen4 adds 20 billion parameters it only looks up
At the second layer, every token looks up 16 rows in a table of 10 million entries: eight rows keyed on the last two tokens and eight keyed on the last three. The layer merges the 16 embeddings, gates how much of the result enters the residual stream, and passes it on. Alibaba’s card counts the model as “35B with 3B activated, plus 20B n-gram embedding and 2B MTP,” which puts the checkpoint at about 57 billion parameters and 114 GB in BF16.
A lookup is an index into memory, with no matrix multiply behind it, so those 20 billion parameters add almost nothing to the compute per token. They also do not need to sit in fast memory. Under llama.cpp’s default lazy loading, the table stays on disk and the runtime reads the 16 rows it needs for each token. ggml-org’s first conversion documented the effect: a 36.0 GB Q4_K_M file with 21.9 GB resident in RAM, because the 14.1 GB table stayed on disk. Unsloth’s guide gives 21 to 25 GB of combined RAM and VRAM for its 4-bit builds and recommends UD-IQ4_XS on 24 GB devices. Alibaba’s card says the n-gram embeddings improve quality “without extra compute or accelerator memory overhead,” and on a local machine the second half of that sentence matters more than the first.
The rest of the network is built to keep long context cheap. Its 40 layers come in ten groups of four: three Gated DeltaNet layers, which carry a fixed-size state through the sequence, and one Qwen Sparse Attention layer. The sparse layer’s indexer averages keys in groups of four and selects at most 512 groups, or 2,048 tokens, for each query to attend to. Only those ten sparse layers keep a cache that grows with context, and each stores 2 key-value heads of 256 dimensions. From the published config, that comes to about 20 KiB per token in 16-bit, against roughly 64 KB for Qwen3.8-27B. The thirty DeltaNet layers hold about 60 MB of state at any length.
Two smaller pieces matter in practice. Each token carries four residual streams instead of one, mixed by learned gates before every attention and expert block. And a one-layer multi-token prediction head ships as an optional sidecar for speculative decoding. Hugging Face measured a 22 percent decode gain from it on an Apple M5, and Unsloth measured 175 to 224 tokens per second on an RTX 5090 with a draft depth of one.
Inkling 2 Mini runs twelve of its layers three times
Inkling 2 Mini stores 24 layers in four blocks of six. The first and last blocks run once. The middle twelve layers run three times with the same weights, so each token passes through 48 layer applications built from 24 layers of parameters. The model has 26.4 billion parameters and activates 3.4 billion per token, and Thinking Machines adds that each extra pass is worth about 1.0 billion effective active parameters, for 5.4 billion in total.
Passes two and three both start from the output of the first block, plus a message from the previous pass that rank-64 gates mix into each layer’s query, key, value and expert inputs. The gate starts fully closed, so early in training the looped model behaves like an ordinary 24-layer model, and it learns to let the message through. Thinking Machines tested where the loop should go. Looping the middle twelve layers beat looping the last twelve on 27 of 28 evaluations, at a compute-equivalent gain of 1.51 to 1.91 times against 1.24 to 1.36. By the lab’s own scaling ladder, a model without the loop needs more than 1.5 times the training compute to reach the same held-out loss.
The extra passes help reasoning and leave memorized facts flat. On GPQA Diamond questions that a research variant answered correctly at every pass count, it spent 3,703 reasoning tokens with one pass, 1,731 with three and 1,661 with five. The gains concentrate in long context, math and abstract reasoning, and long agentic tasks. Closed-book factual benchmarks barely move with the pass count, and the launch post says it directly: looping does not let the weights store more facts. Inkling’s non-hallucination rate on AA-Omniscience is 63.4 percent against 71.4 percent for Qwen3.8-27B.
The model also ships in the precision it was trained in. Its expert layers ran in NVFP4 from pretraining through reinforcement learning, with the last four layers’ experts in MXFP8, and the released checkpoint keeps that format at about 20 GB. ggml-org’s NVFP4 GGUF preserves the original experts and measures a KL divergence of 0.0029 against BF16, with the same top token 97.6 percent of the time. Its first Q4_K_M of Qwen4, a model trained in BF16 and quantized afterward, measures 0.1252 and 87.9 percent. The two were measured on different text, so read the gap as a direction, but a model trained at 4 bits has nothing left to lose when you run it at 4 bits.
The 26.4 billion parameters are themselves the result of surgery. Training started with 384 experts per layer. Midway through, Thinking Machines kept the 128 most used and pruned the rest, then healed the model with a trillion tokens distilled from a larger internal Inkling model. Supervised fine-tuning, 2.2 trillion tokens of reinforcement learning over 2,000 steps, and a pass of on-policy distillation for alignment followed.
The two designs side by side
| Qwen4-35B-A3B | Inkling 2 Mini | |
|---|---|---|
| Released | December 4, 2026 | November 20, 2026 |
| Parameters stored | 35B + 20B n-gram table + 2B MTP | 26.4B |
| Active per token | 3B | 3.4B, or 5.4B counting loop passes |
| Layers stored / applied | 40 / 40 | 24 / 48 |
| Experts | 256, 8 routed + 1 shared | 128, 8 routed |
| Attention | 30 Gated DeltaNet + 10 sparse | 20 sliding window (1,024) + 4 global |
| KV cache per token, 16-bit | ~20 KiB | ~32 KiB |
| Release precision | BF16, FP8 variant | NVFP4 + MXFP8, as trained |
| Intelligence Index v5 | 25 | 20 |
| License | Apache 2.0 | Apache 2.0, plus a separate use policy |
One row runs against intuition. The smaller model keeps the larger cache, because each loop pass keeps its own keys and values. Inkling has four global-attention layers, two of them inside the loop, so they fill eight cache slots of 4 KiB per token each. Its 40 sliding-window slots add a fixed 160 MB or so. Looping saves parameters and spends cache.
What the benchmarks say, and who ran them
Alibaba’s chart compares Qwen4 with Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling 2 Mini on twelve benchmarks it chose. Where Inkling appears, Alibaba used the numbers Thinking Machines published, so the two labs’ tables agree with each other.
| Benchmark | Qwen4-35B-A3B | Qwen3.8-Flash-Next | Qwen3.8-27B | Inkling 2 Mini |
|---|---|---|---|---|
| DeepSWE v1.1 | 61.8 | 58.7 | 42.2 | 48.2 |
| Terminal Bench 4.1 | 21.2 | 24.2 | 5.6 | 5.6 |
| FrontierCode-AA 2.0 | 16.1 | 27.1 | 14.9 | 15.1 |
| NL2Repo | 51.7 | 48.1 | 42.3 | 41.8 |
| AutomationBench-AA | 57.9 | 55.9 | 48.2 | 41.8 |
| APEX Agents v1.1 | 59.0 | 61.0 | 47.5 | 50.9 |
| GPQA | 86.9 | 91.7 | 89.2 | 86.9 |
Qwen4 leads Inkling on every agentic coding row and ties it on GPQA. Terminal Bench 4.1 shows the widest gap, 21.2 against 5.6, and Artificial Analysis ran that one. Qwen3.8-Flash-Next is the comparison Alibaba wants you to notice: it stores 125 billion parameters plus a 51 billion parameter n-gram table and activates 6 billion, and Qwen4 beats it on six of the twelve benchmarks in Alibaba’s full chart. On the independent index it still trails Flash-Next, 25 to 28.
Thinking Machines’ own table compares Inkling against Qwen3.8-27B, Gemma 4 31B, Muse Glimmer and Nemotron 3.5 Super VL, and Inkling leads most of it: 79.2 on SWE-bench Verified against 77.8, 79.0 on BrowseComp against 61.6, and 69.7 on GraphWalks BFS at 256K against 50.4. Qwen3.8-27B wins back Terminal Bench 2.1 and most of the office-work evaluations: AutomationBench, AA-Briefcase, GDPVal and EnterpriseOps. Every number in both tables comes from the labs except the Intelligence Index and the Artificial Analysis benchmarks the labs cite.
The index has one more figure worth knowing. Qwen4 used 175 million output tokens to complete it, against a median of 95.9 million for open models in its size class, and Artificial Analysis calls it very verbose. At API prices that still comes to $0.55 per task, and The Decoder puts Qwen3.8-27B at $3.53 on the same measure. On your own hardware, verbosity costs time, and Alibaba’s card warns that lowering the reasoning effort does not always finish agentic tasks sooner, because shallow turns fail and retry.
What each costs on one card
The cache figures below are our arithmetic from the published configs, in 16-bit, and they line up with what testers have measured. VRAMCalculator measured 1.19 GiB of Inkling cache at 32K and 4.28 GiB at 128K.
| Context | Qwen4 cache | Inkling cache |
|---|---|---|
| 32K | ~0.7 GiB | ~1.2 GiB |
| 128K | ~2.6 GiB | ~4.2 GiB |
| 262K | ~5.1 GiB | ~8.2 GiB |
| 1M | ~20 GiB | ~32 GiB |
Add the weights and the picture differs from what the parameter counts suggest. Inkling’s 4-bit GGUF is 17.6 GB and all of it stays resident, so 128K of context peaks near 22 GiB, which VRAMCalculator measured on a 22.5 GiB NVIDIA L4. Thinking Machines still recommends 32 GB of memory. Qwen4 needs about 21 GB resident at 4 bits with the n-gram table left on disk, so a 24 GB card holds it with a modest context, and 32 GB holds it with 128K and room to spare. Qwen3.8-27B needed 16 GB of cache for its 262K window. Qwen4 holds four times that context in 20 GiB.
Decode speed follows the bytes read per token. Qwen4 reads about 3 billion parameters per token. Inkling reads 3.4 billion and rereads the looped layers on each pass, which Thinking Machines counts as 5.4 billion. Community numbers show the result. On an RTX 5090 with llama.cpp and a 4-bit build, Unsloth measured Qwen4 at 175 tokens per second without speculative decoding, and one tester measured Inkling at 109 at 8K of context, or 165 under vLLM with the native NVFP4 weights. On an M5 Max, Unsloth measured Qwen4 at 91 tokens per second in llama.cpp, and Atomic Chat’s baseline for Inkling in llama.cpp was about 40. These come from different testers and builds, so read them as a ratio. In llama.cpp, Inkling decodes at roughly half to two-thirds of Qwen4’s speed on the same class of hardware, and the loop explains why.
Where each one breaks
Inkling’s model card lists its own failure modes, and the community has measured several. The card says it “sometimes became stuck in long reasoning loops,” that the lowest reasoning effort does not fully disable reasoning, and that in agentic use it “may take destructive actions, such as deleting or overwriting files, without confirmation.” One user logged 1,673 code-revision turns on vLLM with a 32,768-token budget. Median reasoning ran about 2,500 tokens against about 400 for Qwen3.8-27B on the same harness, and 3.9 percent of turns spent the whole budget without producing an answer. Extra drafts inside the reasoning did not help: one draft fixed a failing layout check 56 percent of the time and two or more fixed it 38 percent.
Tool calling depends on the engine and the chat template. In a 50-prompt probe, the stock vLLM image produced 35 valid single tool calls at temperature 0 and 47 when forced with tool_choice=required, while the Basalt engine produced 50. Early llama.cpp support had two serious bugs, both now fixed. Unsloth’s first GGUFs produced gibberish on mainline llama.cpp because the loader copied the looped layers before attaching their NVFP4 scales, so passes two and three ran without them. And builds before b12801 allocated a relative-position bias table of about 12 GiB at 128K, which made most long-context configurations fail to load on 24 GB cards.
Qwen4 is one day old and its list is shorter mostly for that reason. The reference tokenizer needs trust_remote_code=True and tiktoken. Alibaba ships a Jinja template for compatibility and notes that it produces the same text with different token IDs, because the reference implementation separates control tokens from ordinary text at the ID level. A user who types <think> gets literal text from the reference tokenizer, while a runtime that tokenizes the Jinja template’s output can turn the same characters into the control token. A discussion on the model page already reports English and Chinese words mixed into Japanese and Chinese answers across GPUs, engines and precisions. Unsloth warns that its smallest quantizations sometimes loop and ships tighter sampling settings for them. We found no published local decode speeds past a few thousand tokens of context, which is where the sparse attention and the disk-backed table will be tested hardest.
Inkling also carries a separate acceptable use policy that applies to anyone who downloads the weights and that Thinking Machines can update at any time. The Apache 2.0 license is real, and the policy still belongs in any client’s compliance review.
Which one we would run
For agentic coding on a single card, the work we do most, Qwen4 is the stronger choice on every number available today: higher on the independent index, ahead on the coding benchmarks both labs published, faster to decode, and lighter in cache at long context. We will run it against our own tasks before we trust it, because a model one day old has not met the bugs that Inkling spent two weeks shedding. Inkling is the more interesting engineering. Looped transformers have been a research idea for years, and this is a capable one you can download. Its weights arrive in the format they were trained in, and a research variant exposes the loop count as a setting for anyone who wants to study it.
Both models make the same point about the number on the label. “3B active” now describes a model that stores 57 billion parameters and another that computes as if it had 5.4 billion. Whether a model fits on your machine and how fast it runs depend on three other numbers: how much of it must stay resident, how many bytes it reads per token, and how much cache it keeps per token of context. Model cards rarely print all three, and they are worth working out before you buy hardware for a model.
Related posts
- Humanizing AI text: a fine-tuned 12B against general models with a rules file
We gave nine setups the same seven AI-written drafts and asked for three rewrites of each. The model trained for the job was the fastest by far and reworded most of the quotations its own prompt told it to keep. General models following the open humanizer skill kept nearly everything, including a 27B running on the same GPU.
- Jev guarantees the shape of an answer, not the answer
TypeSafe AI's Jev went viral on a promise it cannot hallucinate and numbers showing 193x faster and 445x cheaper. The guarantee is real and much narrower than reported, the numbers come from the company's own evaluations, and TypeSafe is more careful about both than the people quoting it.
- Bonsai 2: a 27B model in 5.9 GB, and the memory it does not save
PrismML compressed Qwen3.8-27B to ternary weights and kept 98.2% of its benchmark average by its own measurement. The weights shrank nine times. The KV cache did not move, and the capability that degraded most is the one we build on.