Gemma 4 / Compare / Qwen3.8-Max

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 ·

Qwen3.8-Max2.4 trillion parameters 95B active per token Gemma 4 31B31 billion 77× Circle areas drawn to scale by parameter count
Different weight classes.
Short answer

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 →

Scale

Side by side

Gemma 4 31BQwen3.8-Max
Made byGoogle DeepMindAlibaba
ReleasedMarch 31, 2026August 3, 2026; weights on August 14
Parameters30.7B, all active2.4 trillion, 95B active per token
DesignDenseMixture of Experts
Context window256K1M through the API
InputsText, image, video framesText, image, video through the API
Audio inputOn the 12B, E4B and E2BNot listed
LicenceApache 2.0Qwen3.8-Max License, with conditions
Weights downloadAbout 19 GB at 4-bitAbout 4.89 TB, or 2.50 TB at FP8
Hardware to run itOne 24 GB graphics cardA 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.

Benchmarks

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

Graduate-level science, percent
Qwen3.8-Max92.6
Gemma 4 31B84.3

Humanity's Last Exam

Hardest reasoning, percent, no tools
Qwen3.8-Max43.6
Gemma 4 31B19.5
TestGemma 4 31BQwen3.8-MaxGap
GPQA Diamond · science84.392.68.3
Humanity's Last Exam · hardest reasoning19.543.624.1
MMMU Pro · vision76.982.75.8
IFBench · following instructions76.082.86.8
Arena text score · human preference, October 21453148229

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.

Read the small print

"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 31BQwen3.8-Max One 24 GB graphics card17.5 GB at 4-bit A data centre cluster4.89 TB of weights
One fits under a desk. The other fills a room.
Gemma 4 31B, downloadedQwen3.8-Max, downloadedQwen3.8-Max, through the API
Image and video inputYesNo - text onlyYes
Context256K262K, extensible1M
Thinking can be turned offYesNoYes
Size on diskAbout 19 GB at 4-bit4.89 TB, or 2.50 TB at FP8Nothing to download
Official small buildsQAT 4-bit for every sizeFP8 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.

Licence

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.

Like for like

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 31BQwen3.8-27B
ReleasedMarch 31, 2026August 14, 2026
Parameters30.7B, dense27B, dense
LicenceApache 2.0Apache 2.0
Context256K262K; extensible towards 1M
InputsText, image, video framesText, image, video
Full-precision download-About 55.6 GB; 30.9 GB at FP8
Official 4-bit buildYes - 17.5 GB of memoryNot published by Qwen
GPQA Diamond84.389.2
LiveCodeBench v680.090.3
IFBench76.079.5
Arena text score14531438
SWE-bench ProNot published61.7
Terminal-Bench 2.1Not published73.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.

Cost

What each costs to use

RouteInput, per million tokensOutput, per million tokensNotes
Gemma 4 31B · OpenRouter$0.09$0.34Several providers
Gemma 4 26B A4B · OpenRouter$0.042$0.22The 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.00Cached 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.

Decide

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.

Careful

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.

FAQ

Gemma 4 and Qwen questions

More answers on the full FAQ page.

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.

Should I switch from Gemma 4 to Qwen?

Only if you are hitting a specific wall: agent reliability, the hardest reasoning, or context beyond 256K. Otherwise the cost and deployment differences favour staying. Usage notes are in prompting and safety.

Try the one that fits on your desk

Download Gemma 4 and test it on your own tasks before paying for something larger.

Top '