๐ Google
Google
Gemma 4 31B
FrontierApr 2026Released256K tokensContextApache-2.0License86 StrongQuality
Gemma 4 31B (30.700000762939453B parameters) requires approximately 35.2 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 41 GB of VRAM.
Get started
โ copy & paste to run locallyCopy-paste commands to run Gemma 4 31B on your machine.
Run
ollama run gemma4:31bQuick specs
Parameters30.7B
Architecturedense
Context256K tokens
Modalitytext
Min RAM12 GB
Rec. RAM18.7 GB (Q4_K_M)
LicenseApache-2.0
FamilyGemma
โ Codeโ Chatโ Reasoning
About this model
- โขHighest quality open Gemma model
- โข256K context window
- โข2150 Codeforces ELO
- โขApache 2.0 license
- โข89.2% AIME 2026
Related models
Your hardware
Detecting...
Quick picks
Best hardware
Top picks for Gemma 4 31B
Run this model
Quantization options
VRAM estimates by quant level
No hardware detected โ fit column shows raw VRAM estimates
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 12.0 GB | Low | โ |
Q3_K_S | 3 | 15.0 GB | Low | โ |
NVFP4 | 4 | 17.2 GB | Medium | โ |
Q4_K_M | 4 | 18.7 GB | Medium | โ |
Q5_K_M | 5 | 22.1 GB | High | โ |
Q6_K | 6 | 25.2 GB | High | โ |
Q8_0 | 8 | 32.8 GB | Very High | โ |
F16 | 16 | 62.9 GB | Maximum | โ |
Quality benchmarks
Gemma 4 31B benchmark scores
Coding
SWE-bench Verifiedโ
HumanEval+โ
Aider Polyglotโ
LiveCodeBench80.0%
Reasoning
MMLU-Pro85.2%
GPQA Diamond84.3%
MATH-500โ
ARC Challengeโ
Source: official ยท 2026-04-02
Hardware compatibility
Fit estimates across all hardware
Computing compatibility...
Memory breakdown
Reference: RTX 2060 6GB
Weights18.7 GB
KV Cache14.6 GB
Runtime1.2 GB
Headroom0.6 GB
Frequently asked questions
FAQ โ Gemma 4 31B
See also
