Key takeaways
- Artificial Analysis scores Qwen4-35B-A3B at 25 on its Intelligence Index and Gemma 4 26B A4B and 31B at 4 each, as of December 4, 2026.
- The gap is in agent tasks: on what the models know, the three land within two points of each other on AA-Omniscience accuracy.
- Gemma 4 26B A4B needs 14.4 GB at 4-bit by Google's figures, while Unsloth lists 21 to 25 GB for 4-bit Qwen 4 with its 20B table left on SSD.
Qwen 4 vs Gemma 4 has a lopsided answer on agent work and a close one on everything else. Qwen4-35B-A3B, which Alibaba's Qwen team put on Hugging Face on December 3, 2026, scores 25 on the Artificial Analysis Intelligence Index. Google's two largest Gemma 4 models, the 26B A4B and the 31B, score 4 each. Gemma 4 still needs a lot less memory, comes in five sizes down to a phone, and takes audio on its smaller models.
Both are free to download under the Apache 2.0 license. This comparison is based on the products' model cards, docs and published results, read on December 4, 2026. Neither model was run for it.
The short answer
Pick Qwen 4 if the model has to do long jobs on its own: fix code in a repository, work in a terminal, fill in a business workflow. That is where the gap is, and it is large. Qwen 4 also reads 1,048,576 tokens at once, four times Gemma's 256K.
Pick Gemma 4 if you have 16 GB of memory or less, want a model for a phone or a browser, or need speech input. Qwen 4 has one open model so far, and it is a big download.
Qwen 4 and Gemma 4 side by side
The closest match for Qwen4-35B-A3B is Gemma 4 26B A4B. Both are mixture-of-experts models, which run only part of their network for each token, and both keep about 3 to 4 billion parameters active. Gemma 4 31B is Google's dense flagship.
| Qwen4-35B-A3B | Gemma 4 26B A4B | Gemma 4 31B | |
|---|---|---|---|
| Maker | Alibaba (Qwen) | Google DeepMind | Google DeepMind |
| Type | Mixture of experts | Mixture of experts | Dense |
| Parameters | 35B, 3B active, plus a 20B n-gram table and a 2B drafting head | 25.2B, 3.8B active | 30.7B |
| License | Apache 2.0 | Apache 2.0 | Apache 2.0 |
| Context window | 1,048,576 tokens | 256K tokens | 256K tokens |
| Input | Text, images, video | Text, images, video as frames | Text, images, video as frames |
| Reasoning control | Four levels: xhigh, high, low, off | Thinking on or off | Thinking on or off |
| Memory at 4-bit | 21 to 25 GB (Unsloth), table on SSD | 14.4 GB (Google) | 17.5 GB (Google) |
| Artificial Analysis Intelligence Index | 25 | 4 | 4 |
| Released | December 2026 | April 2026 | April 2026 |
Sources: the Qwen4-35B-A3B card, the Gemma 4 26B A4B card, Google's Gemma 4 docs, Unsloth's Qwen4 guide and Artificial Analysis, all as of December 4, 2026.
Independent benchmarks: Qwen 4 is far ahead on agent tasks
Artificial Analysis runs every model through the same tests, so its numbers are the only like-for-like ones here. Its Intelligence Index, version 5.0.2, combines nine evaluations. At least four of them are agent tasks, where the model works through a job step by step with tools.
| Artificial Analysis test, as of December 4, 2026 | Qwen4-35B-A3B (xhigh) | Gemma 4 26B A4B (reasoning) | Gemma 4 31B (reasoning) |
|---|---|---|---|
| Intelligence Index | 25 | 4 | 4 |
| Terminal-Bench 4.1, coding in a terminal | 21.2% | 0.0% | 0.0% |
| FrontierCode-AA 2.0, software engineering in open-source repositories | 16.1% | 0.0% | 0.0% |
| AutomationBench-AA, SaaS workflows | 57.9% | 1.9% | 4.9% |
| AA-Briefcase v1.1, knowledge work (Elo) | 1485 | 327 | 378 |
| HLE-Diamond | 11.1% | 6.2% | 7.2% |
| AA-Omniscience v1.1 accuracy | 18.93% | 18.40% | 19.93% |
| AA-Omniscience v1.1 non-hallucination rate | 79.56% | 13.68% | 14.49% |
| MMMU-Pro, image questions | 76% | 69% | 73% |
Look at where the gap is and where it isn't. On AA-Omniscience accuracy, a test of what a model knows, the three land within two points of each other, and Gemma 4 31B is slightly ahead. On MMMU-Pro, the gap is three to seven points. The 25-to-4 result comes from the agent tests, where both Gemma models score zero on the two coding ones.
The other big difference is the non-hallucination rate, which Artificial Analysis defines as one minus the hallucination rate: 79.56% for Qwen 4 against roughly 14% for both Gemmas. The three know about as much. Qwen 4 is far less likely to make up an answer when it doesn't know.
Three caveats. Artificial Analysis tested Qwen 4 at xhigh, its top reasoning level, where the model's default is high. Qwen 4 wrote 175 million output tokens during the index and Gemma 4 26B A4B wrote 114 million, so some of the score is bought with extra thinking. A task cost $0.55 on Qwen 4 and $0.16 on Gemma 4 26B A4B. And the site puts the models in different size classes. It counts Qwen 4 as a 57B-parameter model, table included, and ranks it first of six among open models of 40B to 150B. The Gemmas rank 15th and 14th of 16 in the 4B to 40B class, where the median score is 11.
So Gemma 4 isn't only behind Qwen 4. Eight months after release it is behind most open models its own size on this index.
What the model cards claim
The companies' own numbers overlap less than you would hope. Qwen's chart compares Qwen4-35B-A3B with Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling2 Mini, and Google's table compares Gemma 4 with Gemma 3. Neither tests the other.
One benchmark shows up on both cards. Qwen reports 86.9 on GPQA, a graduate-level science test. Google reports 84.3% for Gemma 4 31B and 82.3% for the 26B A4B on GPQA Diamond. The setups differ, so treat a 2.6-point gap as a tie. Artificial Analysis measured 85.7% for the 31B and 79.2% for the 26B A4B, and has no GPQA result for Qwen 4.
Qwen's chart leads with agent benchmarks, including 61.8 on DeepSWE v1.1, and it cites Artificial Analysis for four of its 12 scores. Google's card leads with exams and coding puzzles: 80.0% on LiveCodeBench v6 and 89.2% on AIME 2026 for the 31B. The two companies were measuring different things, and that matches what the independent results show. Our Qwen 4 vs Qwen 3.8 comparison goes through Qwen's chart line by line.
Memory: Gemma 4 runs on smaller machines
The name Qwen4-35B-A3B undersells the download. The card lists 35B parameters "plus 20B n-gram embedding and 2B MTP", and Hugging Face counts 56.8 billion in total. The 4-bit Q4_K_M file in the llama.cpp repository is 36 GB. Google's own 4-bit file for Gemma 4 26B A4B is 14.4 GB.
Qwen 4 has a trick that narrows this. The 20B table is only looked up, never computed on, so runtimes can leave it on the SSD. With that, Unsloth lists 21 to 25 GB of combined RAM and VRAM for its 4-bit builds and 17 to 19 GB for 3-bit. Google's docs list 14.4 GB for Gemma 4 26B A4B and 17.5 GB for the 31B at 4-bit, weights only. The 4-bit Gemma 4 26B A4B weights fit on a 16 GB graphics card, with not much left over for context. For Qwen 4 on that card, Unsloth says to use a 2-bit or 3-bit build.
Below that, there is no contest yet. Gemma 4 E2B needs 2.9 GB at 4-bit and E4B needs 4.5 GB, and Google ships mobile builds of both. Qwen says its open Qwen 4 series "is now on its way" and has named no smaller models. Our guide on how to run Qwen 4 locally has the commands.
Context, video and audio
Qwen 4's context is 1,048,576 tokens natively. Gemma 4's medium models stop at 256K and its two small ones at 128K. Long context is also where Gemma's MoE model is weakest on Google's own card: 44.1% on an eight-needle retrieval test at 128K, against 66.4% for the 31B.
Both families read images and video. Gemma 4 handles video as frames, up to 60 seconds at one frame per second. Qwen's card describes settings for hour-long video. Audio goes the other way. Gemma 4 E2B, E4B and 12B take speech, in clips of up to 30 seconds. Qwen4-35B-A3B lists no audio input, and Gemma's 26B A4B and 31B have none either.
Both come with a small drafting model that guesses tokens ahead to speed up output. One practical snag on the Qwen side: its reference tokenizer needs trust_remote_code=True in Transformers.
What the APIs cost
If you would rather not host either, Qwen 4 is $0.06 per million input tokens and $0.36 per million output tokens on Qwen Cloud, as of December 4, 2026. Google's Gemini API pricing page lists Gemma 4 as free of charge on the free tier with no paid tier. Other hosts charge for it. Artificial Analysis puts the median for Gemma 4 26B A4B at $0.09 input and $0.30 output per million tokens, as of the same date.
What we don't know
Nobody has published Qwen 4 results at its default or low reasoning levels on the same tests, so the gap at equal effort is unmeasured. Qwen hasn't said which sizes come next or when.
Our earlier Gemma 4 vs Qwen 3.8 comparison noted that Artificial Analysis had no index score for Gemma 4 31B. It has one now, and the next thing to watch is whether Qwen ships a 4 model small enough to meet Gemma 4 12B and E4B on their own hardware. The launch details are in our news article on the open weights.
Frequently asked questions
Is Qwen 4 better than Gemma 4?
On agent tasks, yes by a wide margin: Artificial Analysis scores Qwen4-35B-A3B at 25 on its Intelligence Index against 4 for Gemma 4 26B A4B and 31B, as of December 4, 2026. On knowledge and image questions the three are close, and Gemma 4 needs less memory.
Which needs less memory, Qwen 4 or Gemma 4?
Gemma 4. Google lists 14.4 GB for the 26B A4B and 17.5 GB for the 31B at 4-bit, weights only. Unsloth lists 21 to 25 GB of combined RAM and VRAM for 4-bit Qwen4-35B-A3B, with its 20B n-gram table kept on SSD.
Are Qwen 4 and Gemma 4 free for commercial use?
Both model cards list the Apache 2.0 license, which allows commercial use. That covers Qwen4-35B-A3B and all five Gemma 4 sizes.
Is there a small Qwen 4 model like Gemma 4 E2B or E4B?
Not yet. Qwen4-35B-A3B is the only open Qwen 4 model as of December 4, 2026. Its model card says the open Qwen 4 series is on its way and names no other sizes.
Sources
- Qwen4-35B-A3B model cardQwen
- Gemma 4 26B A4B model cardGoogle
- Gemma 4 31B model cardGoogle
- Gemma 4 model overviewGoogle
- Welcome Qwen 4: Cutting-edge intelligence on-deviceHugging Face
- Qwen4 35B A3B: Intelligence, Performance & Price AnalysisArtificial Analysis
- Gemma 4 26B A4B: Intelligence, Performance & Price AnalysisArtificial Analysis
- Gemma 4 31B: Intelligence, Performance & Price AnalysisArtificial Analysis
- Qwen4-35B-A3B on Qwen CloudAlibaba
- Gemini Developer API pricingGoogle
- Qwen4: how to run guideUnsloth
- Qwen4-35B-A3B GGUF filesggml-org
- Gemma 4 26B A4B QAT Q4_0 GGUF filesGoogle



