Google Gemma 4 31B Fits a 24GB GPU at 4-bit: Which Size Suits Which Card

Gemma 4 31B can run on a single 24GB GPU if you quantize it to 4-bit: by our calculation its weights come to about 15.5 GB, which leaves about 8.5 GB for KV cache and overhead. According to Google’s release notes (checked 2026-11-15), Gemma 4 was released on March 31, 2026 as a four-model family, and the 12B Unified model was added on June 3, 2026. On Google’s model card, the 31B tops the family on the three benchmarks below, but that card compares it with other Gemma models, not with Llama 4, DeepSeek V4 or GPT.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

The Gemma 4 lineup

The launch family had four models, and Google’s model card still listed five sizes as of September 2026: Effective 2B (E2B), with 2.3 billion effective parameters; Effective 4B (E4B), with 4.5 billion effective parameters; the 26B Mixture of Experts (MoE, listed as 26B A4B); the 12B Unified model (11.95 billion parameters) added in June 2026; and the 31B Dense flagship.

As of 2026-11-15, the model card lists native audio input (speech recognition and speech-to-translated-text translation) on the E2B, E4B and 12B Unified models only, so the 31B has no audio. According to the card, the E2B and E4B variants have a 128K-token context window, while the 26B MoE and 31B Dense models extend to 256K tokens. All of them support over 140 languages.

Gemma 4 31B against the rest of the Gemma family

As of 2026-11-15, the benchmark table on Google’s model card compares Gemma 4 31B with the 26B A4B, 12B Unified, E4B and E2B models and with Gemma 3 27B (no think). The 31B scores 85.2% on MMLU Pro, 89.2% on AIME 2026 (no tools) and 76.9% on Ď„2-bench, which the card reports as an average over 3 tasks.

BenchmarkGemma 4 31B26B A4B12B UnifiedE4BE2BGemma 3 27B (no think)
MMLU Pro85.2%82.6%77.2%69.4%60.0%67.6%
AIME 2026 (no tools)89.2%88.3%77.5%42.5%37.5%20.8%
τ2-bench (average over 3)76.9%68.2%69.0%42.2%24.5%16.2%

These are Google’s own figures, not independent tests. Against the 26B A4B the 31B leads by 2.6 points on MMLU Pro, 0.9 on AIME 2026 and 8.7 on Ď„2-bench, so the widest gap is on the agentic test and the narrowest on math. The table lists only Gemma models, so this page makes no claim about the 31B against Llama 4, DeepSeek V4 or GPT.

For scale against Llama 4, Meta’s Llama 4 blog post gives Maverick 17 billion active parameters and 400 billion total. Gemma 4 31B is dense, so all of its roughly 31 billion parameters work on every token. That is about 1.8 times Maverick’s active parameters, a much narrower per-token compute gap than the headline sizes suggest. Memory is where the gap stays wide: even at 4-bit, about 400 billion parameters would need roughly 200 GB for weights alone, against 15.5 GB for the 31B.

Which size fits which GPU

The 26B MoE (listed as 26B A4B) activates only about 4 billion parameters per token, which cuts compute but not the weights that must be loaded. The 12B Unified model, at 11.95 billion parameters, needs less than half the weight memory of the 26B at any precision (11.95 / 26 = 0.46). The 31B Dense is the largest size in the family.

Weights-only memory is the parameter count times bytes per parameter: 2 bytes at 16-bit, 1 byte at 8-bit and 0.5 bytes at 4-bit. The table below is our calculation from the model card parameter counts. It excludes KV cache, activations and runtime overhead, and it leaves out E2B and E4B because the card gives effective rather than total counts for them.

ModelParameters16-bit weights8-bit weights4-bit weights
31B Dense31B (all active)62 GB31 GB15.5 GB
26B MoE26B (about 4B active)52 GB26 GB13 GB
12B Unified11.95B23.9 GB11.95 GB5.98 GB

On a 24GB card the 31B fits only at 4-bit, with about 8.5 GB left for KV cache and overhead; at 8-bit it needs 31 GB. The 26B MoE fits at 4-bit (13 GB) and the 12B Unified fits at every precision in the table, though at 16-bit its 23.9 GB of weights leave almost nothing for KV cache. On a 16GB card the 4-bit 26B MoE fits with about 3 GB to spare, which is tight at long context, and the 12B Unified fits even at 8-bit. How much of the 256K window you can use on 24GB depends on KV cache size, which the table excludes. If you have 24GB and want the best quality, run the 31B at 4-bit. With 16GB, choose the 26B at 4-bit or test the 12B first if memory is the constraint. Use E2B or E4B only when the model has to run on-device.

License

Gemma 4 is released under Apache 2.0, according to Google’s model card; earlier Gemma versions shipped under Google’s Gemma Terms of Use. Teams that cleared the older terms for Gemma 3 should read the Apache 2.0 text again before shipping.

Sofia Lindström

Sofia Lindström

Security and privacy

Sofia Lindström writes about security and privacy for Tech Insider: software vulnerabilities and the updates that fix them, data breaches, privacy rules and how products handle personal data. She works from vendor advisories, official vulnerability catalogues and the documents behind each story.

View all articles