← All models

Gemma 4 (31B)

generalApache 2.0toolsreco 15

Google's flagship Gemma 4 at 30.7B parameters. Multimodal (text + image + video), 256K context, configurable thinking mode, native function-calling, 140+ languages. Frontier-tier instruction-following on device — needs 32GB+ of usable memory.

At a glance

Parameters
30.7B
Quantization
UD-Q4_K_XL
Context window
256K tokens
Approx. size
17.3 GB
Engines
llama.cpp, MLX, Ollama
License
Apache-2.0 (open)
Version
v1.2.0 , released 2026-06-06
Family
gemma

Tuning

Defaults a gezel client applies out of the box, from real evaluation runs against this exact quantization.

sampling.temperature
1
sampling.topP
0.95
sampling.topK
64
sampling.maxTokens
8192
sampling.repetitionPenalty
1.1
sampling.repetitionContext
20
reasoning.thinkingBudget
96
profiles
thinking-general, thinking-coding, thinking-precise, instruct, creative

Model behaviors

Client-side behavior modules the catalog enables for this model (reasoning-tag handling, fabrication detection, prompt shaping).

Sources

llama.cpp (GGUF)
unsloth/gemma-4-31B-it-qat-GGUF · gemma-4-31B-it-qat-UD-Q4_K_XL.gguf · UD-Q4_K_XL
MLX
mlx-community/gemma-4-31b-it-4bit
Ollama
gemma4:31b-it-qat
Upstream
https://huggingface.co/google/gemma-4-31B-it
Manifest
View on GitHub

Tags