Gemma 4 vs Qwen3.8-Max
Alibaba's Qwen3.8-Max is one of the strongest models with downloadable weights - and 77 times the size of Gemma 4's largest. It wins on raw capability. Gemma 4 wins on everything that depends on running the model yourself.
Independent page, not affiliated with Google or Alibaba · scores are each company's own ·
Which is better?
Qwen3.8-Max is more capable
It leads on every benchmark the two share, by wide margins on the hardest reasoning, and has a 1M-token context through its API.
Gemma 4 is the one you can run
The 31B fits a single 24 GB graphics card; smaller sizes run on laptops and phones. Qwen3.8-Max needs a data centre.
The fair fight is Qwen3.8-27B
Alibaba's 27B model is the same class as Gemma 4 31B and is also Apache 2.0. See that comparison →
Side by side
| Gemma 4 31B | Qwen3.8-Max | |
|---|---|---|
| Made by | Google DeepMind | Alibaba |
| Released | March 31, 2026 | August 3, 2026; weights on August 14 |
| Parameters | 30.7B, all active | 2.4 trillion, 95B active per token |
| Design | Dense | Mixture of Experts |
| Context window | 256K | 1M through the API |
| Inputs | Text, image, video frames | Text, image, video through the API |
| Audio input | On the 12B, E4B and E2B | Not listed |
| Licence | Apache 2.0 | Qwen3.8-Max License, with conditions |
| Weights download | About 19 GB at 4-bit | About 4.89 TB, or 2.50 TB at FP8 |
| Hardware to run it | One 24 GB graphics card | A data centre deployment |
| Hosted price, per million tokens | $0.09 in, $0.34 out | $2.00 in, $6.00 out |
Gemma 4 from Google's model card. Qwen3.8-Max from its Hugging Face model page, OpenRouter listing and launch coverage (MarkTechPost, XenoSpectrum). Prices as listed on October 7, 2026. The rest of the Gemma 4 family is on the models page.
Scores on the tests they share
Only five results can be put side by side. Each figure comes from the model's own maker, apart from Arena, so read them as a guide, not a controlled test.
GPQA Diamond
Humanity's Last Exam
| Test | Gemma 4 31B | Qwen3.8-Max | Gap |
|---|---|---|---|
| GPQA Diamond · science | 84.3 | 92.6 | 8.3 |
| Humanity's Last Exam · hardest reasoning | 19.5 | 43.6 | 24.1 |
| MMMU Pro · vision | 76.9 | 82.7 | 5.8 |
| IFBench · following instructions | 76.0 | 82.8 | 6.8 |
| Arena text score · human preference, October 2 | 1453 | 1482 | 29 |
Where Qwen3.8-Max is built to lead
Alibaba also reports 86.6 on Terminal-Bench 2.1, 67.7 on SWE-bench Pro, 93.0 on PaperBench and 86.1 on OSWorld-Verified. Google has not published Gemma 4 results on these agent and software-engineering tests, so there is nothing to set beside them.
Where Gemma 4 is known to be weak
Multi-step agent work. On Tau2, the agent test Google does publish, the 31B scores 76.9 and the small models far less. If agents are your main use, that points towards Qwen.
Gemma 4 from Google's model card and technical report. Qwen3.8-Max from its model page; its MMMU Pro figure is for the September update, as reported by DataCamp. Arena scores from the Arena text leaderboard, last updated October 2, 2026. Gemma 4's full results are on the benchmarks page.
"Open weights" means something different here
Both models can be downloaded. What you get, and what you can do with it, is not the same. The Qwen3.8-Max you download is not the full model you reach through Alibaba's API.
| Gemma 4 31B, downloaded | Qwen3.8-Max, downloaded | Qwen3.8-Max, through the API | |
|---|---|---|---|
| Image and video input | Yes | No - text only | Yes |
| Context | 256K | 262K, extensible | 1M |
| Thinking can be turned off | Yes | No | Yes |
| Size on disk | About 19 GB at 4-bit | 4.89 TB, or 2.50 TB at FP8 | Nothing to download |
| Official small builds | QAT 4-bit for every size | FP8 only | - |
Qwen's model page states that for the open weights "multimodal inputs are not supported, and thinking cannot be disabled", and lists vision input, non-thinking mode and the default 1M context as things only the hosted version has. Download sizes as reported by XenoSpectrum. Gemma 4's files are in the download hub; its 4-bit builds are explained under QAT builds.
Apache 2.0 against a custom licence
Qwen3.8-Max is not Apache 2.0. Its smaller sibling, Qwen3.8-27B, is.
Gemma 4, every size - Apache 2.0
- Commercial use, modification and redistribution allowed.
- No conditions tied to your revenue or number of users.
- Keep the licence and copyright notices when you redistribute.
- The same terms for all five sizes.
Qwen3.8-Max - Qwen3.8-Max License
- Use, modification and distribution are permitted.
- Above 100 million monthly active users or $20 million in monthly revenue, the product must display the model's name.
- A Model-as-a-Service or AI work-assistant business with more than $50 million in revenue over 12 months needs a separate licence from Qwen.
Qwen terms as reported by XenoSpectrum and SQ Magazine; the Hugging Face page tags the licence qwen3.8-max. This is a summary, not legal advice - read the licence text before you build on it.
For most teams the thresholds are far away; for a large platform they are a real difference.
The fairer match-up: Gemma 4 31B vs Qwen3.8-27B
Released the same week as the Max weights, Qwen3.8-27B is a dense model in the same size class as Gemma 4 31B, under the same licence. It is five months newer.
| Gemma 4 31B | Qwen3.8-27B | |
|---|---|---|
| Released | March 31, 2026 | August 14, 2026 |
| Parameters | 30.7B, dense | 27B, dense |
| Licence | Apache 2.0 | Apache 2.0 |
| Context | 256K | 262K; extensible towards 1M |
| Inputs | Text, image, video frames | Text, image, video |
| Full-precision download | - | About 55.6 GB; 30.9 GB at FP8 |
| Official 4-bit build | Yes - 17.5 GB of memory | Not published by Qwen |
| GPQA Diamond | 84.3 | 89.2 |
| LiveCodeBench v6 | 80.0 | 90.3 |
| IFBench | 76.0 | 79.5 |
| Arena text score | 1453 | 1438 |
| SWE-bench Pro | Not published | 61.7 |
| Terminal-Bench 2.1 | Not published | 73.0 |
Qwen3.8-27B looks stronger on paper
Ahead on all three vendor-reported tests the two share, by ten points on coding.
People rate Gemma 4 slightly higher
On Arena's blind comparisons the 31B scores 1453 to 1438 - a small lead, within a few points of the margin of error.
Gemma 4 has the wider family
Official 4-bit builds, phone-sized models, audio on three sizes and a matching drafter for each. Qwen3.8's open weights come in two sizes.
Qwen3.8-27B from its Hugging Face model page; download sizes from XenoSpectrum. Vendor-reported scores are not run under identical conditions. Test both on your own tasks; coding specifics for Gemma are in Gemma 4 coding.
What each costs to use
| Route | Input, per million tokens | Output, per million tokens | Notes |
|---|---|---|---|
| Gemma 4 31B · OpenRouter | $0.09 | $0.34 | Several providers |
| Gemma 4 26B A4B · OpenRouter | $0.042 | $0.22 | The faster option |
| Gemma 4 · your own hardware | - | - | No per-token cost; a 24 GB card runs the 31B |
| Qwen3.8-Max · Alibaba Cloud, OpenRouter | $2.00 | $6.00 | Cached input from $0.25 |
| Qwen3.8-Max · your own hardware | - | - | Possible only with a data centre cluster |
Listed prices on October 7, 2026; they move. On those figures Qwen3.8-Max costs about 22 times as much for input and 18 times as much for output as hosted Gemma 4 31B. Whether that is worth paying depends on whether the smaller model can do your task. More on the pricing page; calling Gemma 4 is covered on the API page.
Which to choose
Choose Gemma 4 when
- It must run on hardware you own
- Data cannot leave your network
- Cost per token matters most
- You need a phone or offline model
- You need audio input
- You want no licence conditions at any scale
Choose Qwen3.8-Max when
- You need the strongest reasoning available with open weights
- Agent and software-engineering work is the main job
- You need more than 256K of context
- A hosted API at $2 and $6 is acceptable
- Your scale is well below the licence thresholds
Or use both
Send everyday and private work to a local Gemma 4, and only the hardest requests to a larger hosted model. Most traffic does not need 2.4 trillion parameters.
If you want one mid-size open model, test Gemma 4 31B and Qwen3.8-27B side by side.
Recommendations are this site's reading of the published figures. To try Gemma 4, see the playground and chat; to run it, the install guide, how to download, runtime selector, Mac setup and self-hosting; memory planning is in the VRAM guide.
Three traps when comparing these two
The download is not the API model
Qwen's headline results and 1M context describe the hosted model. The open weights are text-only with a 262K native context.
OmniDocBench runs both ways
Google reports 0.131 for Gemma 4 31B as an error rate, where lower is better. Qwen reports 92.1 as a score, where higher is better. The two numbers cannot be compared.
Each company picks its tests
Google leads with maths and knowledge tests; Alibaba with agent and coding tests. The overlap is small, and neither set was run by a neutral party.
Gemma 4's own gaps are listed under limitations; what it can do is on features and capabilities.
Is Qwen3.8-Max better than Gemma 4?
On capability, yes: it leads on every shared test, with 43.6 against 19.5 on Humanity's Last Exam. It is also 77 times larger, costs about twenty times as much through an API and cannot run on ordinary hardware.
Is Qwen3.8-Max really open?
The weights are downloadable, under a custom licence with conditions at very large scale. The downloadable version is text-only; image and video input are available only through Alibaba's API.
Can I run Qwen3.8-Max myself?
In principle. In practice the weights are about 4.89 TB and need a multi-node data centre deployment. Gemma 4 31B runs at 4-bit on one 24 GB graphics card.
Which is better for building agents?
Qwen3.8-Max is designed for it and reports strong agent results. Agent work is Gemma 4's weakest area. If you need a local agent model, also look at Qwen3.8-27B.
Which has the longer context?
Qwen3.8-Max, at 1M tokens through its API, with about 991K usable as input. Gemma 4's larger models take 256K.
What about audio?
Qwen3.8-Max lists text, image and video. Gemma 4 takes audio on the 12B, E4B and E2B - see the 12B guide.
Is there a Qwen model I can run on a phone?
Qwen3.8's open weights are the 2.4T flagship and a 27B model, neither of them phone-sized. Gemma 4 E2B and E4B are built for phones - see mobile downloads and the Android page.
Try the one that fits on your desk
Download Gemma 4 and test it on your own tasks before paying for something larger.