FitMyLLM
Google/Dense

GoogleGemma 4 12B

Gemma 4 12B — the mid-size dense model of the Gemma 4 generation. Vision-language, 256K context, and a 1024-token sliding window on five layers in six, which keeps its KV cache small for its size.

chatcodingreasoningmultilingualvisionmath
11.96B
Parameters
256K
Context length
9
Benchmarks
10
Quantizations
3.3M
HF downloads
Architecture
Dense
Released
2026-06-03
Layers
48
KV Heads
8
Head Dim
256
Family
gemma

Quantization Options

Context length:
QuantBitsVRAM @ 16KQuality
Q3_K_M4
7.5 GB
6.5 + 1.1 KV
low
Q3_K_L4.3
8.0 GB
6.9 + 1.1 KV
moderate
IQ4_XS4.46
8.2 GB
7.2 + 1.1 KV
moderate
Q4_K_S4.67
8.5 GB
7.5 + 1.1 KV
moderate
Q4_K_M4.89
8.9 GB
7.8 + 1.1 KV
good
Q5_K_S5.57
9.9 GB
8.8 + 1.1 KV
good
Q5_K_M5.7
10.1 GB
9.0 + 1.1 KV
good
Q6_K6.56
11.4 GB
10.3 + 1.1 KV
excellent
Q8_08.5
14.3 GB
13.2 + 1.1 KV
lossless
FP1616
25.5 GB
24.4 + 1.1 KV
lossless

Select your GPU above to see speed estimates and compatibility for each quantization.

Deploying for a team or in production? Size GPUs, cost & scaling in Enterprise →
READY TO RUN THIS?RENT BY THE HOUR

RENT A GPU AND RUN GEMMA 4 12B NOW

Spin up an A100 / H100 / 4090 in ~60s. Pay by the second. Cancel anytime.

Community Ratings

Loading ratings...

Benchmarks (9)

GPQA Diamond75.3
IFBench73.5
AA Long Context61.7
SciCode38.2
τ²-Bench36.3
AA Coding31.0
AA Intelligence22.2
Terminal-Bench18.2
HLE15.7

Run this model

Easiest way to get started·Beginners
DOCS ↗
curl -fsSL https://ollama.com/install.sh | sh
$ollama run gemma4:12b-it-q4_K_M

Downloads and runs automatically. Add --verbose for speed stats.

▸ SETUP GUIDE
>_

Auto-setup with fitmyllm CLI

Detects your GPU, recommends the best model, downloads it, and starts chatting — zero config. Benchmarks your speed and contributes anonymous data to improve predictions.

pip install fitmyllmthen run fitmyllmLearn more
Auto-detect GPULive tok/s in chatSpeed benchmarks9 inference engines

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

Apple M1 (8GB)
8 GB VRAM • 68 GB/s
APPLE
$499
Apple M2 (8GB)
8 GB VRAM • 100 GB/s
APPLE
$599
Apple M3 (8GB)
8 GB VRAM • 100 GB/s
APPLE
$599
NVIDIA Tesla K8
8 GB VRAM • 160 GB/s
NVIDIA
NVIDIA Tesla M60
8 GB VRAM • 160 GB/s
NVIDIA

Find the best GPU for Gemma 4 12B

Build Hardware for Gemma 4 12B
▸ SPEC SHEET

Gemma 4 12B11.96B Dense.

▸ SPECIFICATIONS
PARAMETERS
11.96B
ARCHITECTURE
Dense Transformer
CONTEXT LENGTH
256K tokens
CAPABILITIES
chat, coding, reasoning, multilingual, vision, math
RELEASE DATE
2026-06-03
PROVIDER
Google
FAMILY
gemma
▸ VRAM REQUIREMENTS
QUANTBPWVRAMQUALITY
Q3_K_M46.5 GB88%
Q3_K_L4.36.9 GB90%
IQ4_XS4.467.2 GB92%
Q4_K_S4.677.5 GB93%
Q4_K_M4.897.8 GB94%
Q5_K_S5.578.8 GB96%
Q5_K_M5.79.0 GB96%
Q6_K6.5610.3 GB97%
Q8_08.513.2 GB100%
FP161624.4 GB100%
§ 01BENCHMARK SCORES
GPQA Diamond75.3
HLE15.7
AA Intelligence22.2
AA Coding31.0
aa_ifbench73.5
aa_terminal_bench18.2
aa_tau236.3
aa_scicode38.2
aa_lcr61.7
§ 02RUN COMMAND

Run Gemma 4 12B locally with Ollama — needs 7.8 GB VRAM at Q4_K_M:

$ollama run gemma4:12b
§ 03COMPATIBLE GPUs
30 @ Q4_K_M