Gemma 4 (31B)
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).
- reasoning.strip-channel-tags
- reasoning.capture-pre-tool-prose
- prompt.private-reasoning-guidance
- prompt.tool-cookbook-full
- prompt.meester-build-prelude
- fabrication.detect-past-tense-no-tools
- fabrication.detect-claim-without-tool
- turn.preamble-folding
- turn.ramble-detection
- turn.auto-acknowledge-tool-errors
- turn.continuation-budget
- mcp.validate-ids-strict
- turn.single-tool-per-turn
- parse.gemma-special-token
- tools.mlx-grammar
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
- multimodal
- vision
- video
- tools
- reasoning
- large
- qat