Gemma 4 31B
googleapache-2.0textvision

Gemma 4 31B

Updated Oct 19, 2026
Parameters
32.7B
Context
262,144
License
apache-2.0
Q4 GGUF
18.32 GB
Updated
Oct 19, 2026

Q4 GGUF download: unsloth/gemma-4-31B-it-GGUF - 18.32 GB on disk, read 2026-10-10. VRAM figures above are estimates; this is the actual file size.

Intelligence benchmarks

Artificial Analysis indexes - compared with the best open and proprietary models

Intelligence

14.7

AA Index

Coding

43.4

AA Index

Agentic

4.2

AA Index

Intelligence Index - Gemma 4 31B vs. the field

Best open-weight models (you can run locally) and leading proprietary models for context.

Claude Opus 5.5
57.6
closed
Claude Sonnet 5.5
56
closed
Muse Wonder Full
55.8
closed
Claude Fable 5.1
53.4
closed
GPT-6 Astra
52.7
closed
MiMo-V2.6-Pro
46.3
open
GLM-5.3
44.8
open
Gemma 4 31B
14.7
open

Coding Index comparison

Claude Fable 5.1
81.6
closed
Gemini 3.8 Flash
76.3
closed
Kimi K3
76.2
open
Qwen3.8 Max
76.2
closed
GLM-5.3
74.8
open
GLM-5.3-Flash
71.5
open
Qwen3.8 27B
68.1
open
Gemma 4 31B
43.4
open

Agentic Index comparison

Claude Fable 5.1
57.9
closed
Qwen3.8 Max
56
closed
GLM-5.3
53.1
open
GPT-6 Astra
51
closed
GLM-5.3-Flash
50.9
open
Kimi K3
50
open
Qwen3.8 27B
45.8
open
Gemma 4 31B
4.2
open

Benchmark data from Artificial Analysis · updated 2026-10-19.

Hosted API cost & speed

What it costs to rent this model instead of running it locally

MetricValue
Input (per 1M tokens)$0.00
Output (per 1M tokens)$0.00
Median speed (hosted API)36 tok/s

Median across hosted providers, measured by Artificial Analysis - updated 2026-10-19. Local llama.cpp speed depends on your hardware — see the hardware pages for estimates.

Arena rating (LMArena)

Human preference wins from head-to-head chat battles

MetricValue
Overall arena rating1442.9
Rank (overall)#67
Battle votes6,147

Overall rating published by LMArena on 2026-10-15 - a pairwise human-preference Elo across live chat battles; higher is better. Fetched 2026-10-19. Open-weights models compete head-to-head with proprietary ones here — no benchmark prompts, just what people pick.

Standard benchmarks

Performance across standard evaluations

BenchmarkScore
GPQA Diamond85.7
HLE23.6
SciCode45.5
IFBench75.6
Terminal-Bench36.4

Source: Artificial Analysis component evals - updated 2026-10-19.

Will it run on your hardware?

Pick your GPU memory - see which quantizations fit, and the cheapest card for the rest

Runs on your 24 GB - best at Q4_K_M
1 of 4 quantizations fit Gemma 4 31B with real runtime overhead.
fits tight too big

Need an exact figure for your context length? Use the VRAM calculator.

Run it locally

Copy-paste - running in under a minute

vLLMOpenAI-compatible API
vllm serve google/gemma-4-31B-it

New to this? Start with Ollama · serve to many users with vLLM.

Deep dive

Notes, sources, and the full write-up

Gemma 4 31B is a 32.7B-parameter apache-2.0 model from Google. It scores 14.7 on the Artificial Analysis Intelligence Index (coding 38.7). At Q4_K_M it needs roughly 19 GB of VRAM, placing it in the 12–24 GB GPU hardware tier.

Benchmarks

Artificial Analysis Intelligence Index - Gemma 4 31B vs. leading closed models:

ModelIntelligenceCodingGPQA
Gemma 4 31B39.238.785.7
GPT-5.5 (xhigh)60.259.193.5
Claude Opus 4.8 (max)61.456.792
Gemini 3.1 Pro Preview57.255.594.1
Grok 4.3 (high)53.24190.1

Source: Artificial Analysis (2026-06-07).

Popularity

Gemma 4 31B has 11,182,475 downloads in the last month on HuggingFace and 2,925 likes.

Frequently asked

Quick answers to common questions

How much VRAM does Gemma 4 31B need?

Gemma 4 31B with 32.7B parameters needs approximately 19 GB at Q4_K_M quantization. Use our VRAM calculator for an exact estimate.

Is Gemma 4 31B better than other google models?

Gemma 4 31B has 32.7B parameters with 262,144 context - a strong choice for general use.

What license is Gemma 4 31B under?

Gemma 4 31B is released under the apache-2.0 license, making it suitable for most commercial and personal projects.

What hardware runs Gemma 4 31B well?

With 32.7B parameters, Gemma 4 31B requires adequate VRAM. High-end GPUs like the RTX 4090 (24GB), RTX 5090 (32GB), or Mac Studio with unified memory are good options. Check our hardware directory for specific recommendations.

What is the best quantization for Gemma 4 31B?

Q4_K_M is the recommended sweet spot - ~98% of FP16 quality at ~27% of the size. Q5_K_M (~23 GB) is an option if you have spare VRAM. Use our VRAM calculator to compare.

How long can Gemma 4 31B's context window handle?

Gemma 4 31B supports a 262,144-token context window - enough for very long documents, codebases, or multi-turn conversations. Real-world usable context may vary by implementation.

What models compete with Gemma 4 31B?

Gemma 4 31B competes with other 16B–49B. Browse our model directory for comparisons, benchmarks, and community reviews to find the best fit.

Nearby options

Similar models and compatible hardware by spec