Gemma 4 12B
googleapache-2.0textvision

Gemma 4 12B

Updated Nov 9, 2026
Parameters
12B
Context
262,144
License
apache-2.0
Q4 GGUF
6.98 GB
Updated
Nov 9, 2026

Q4 GGUF download: google/gemma-4-12B-it-qat-q4_0-gguf - 6.98 GB on disk, read 2026-10-31. VRAM figures above are estimates; this is the actual file size.

Hosted API cost & speed

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

MetricValue
Input (per 1M tokens)$0.10
Output (per 1M tokens)$0.30
Median speed (hosted API)116 tok/s

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

Standard benchmarks

Performance across standard evaluations

BenchmarkScore
GPQA Diamond66.1
HLE6.3
IFBench45.2
Terminal-Bench11.4

Source: Artificial Analysis component evals - updated 2026-11-09.

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 Q8_0
3 of 4 quantizations fit Gemma 4 12B with real runtime overhead.
Q4_K_M
7 GB
Q5_K_M
9 GB
Q8_0
13 GB
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-12B-it

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

Stacks using this model

Complete local setups built around it

Run a powerful local model on a 10GB VRAM laptop

advanced~25 min

Run a local multimodal model on a 16GB laptop

advanced~30 min

Replace cloud Gemini with a local multimodal model

intermediate~25 min

Private chat and agents on Apple Silicon

intermediate~25 min

Deep dive

Notes, sources, and the full write-up

Gemma 4 12B is a 12B-parameter apache-2.0 model from Google. At Q4_K_M it needs roughly 7 GB of VRAM, placing it in the 8–12 GB GPU hardware tier.

PopularityLink to this section

Gemma 4 12B has 554,173 downloads in the last month on HuggingFace and 713 likes.

Frequently asked

Quick answers to common questions

How much VRAM does Gemma 4 12B need?

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

Is Gemma 4 12B better than other google models?

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

What license is Gemma 4 12B under?

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

What hardware runs Gemma 4 12B well?

With 12B parameters, Gemma 4 12B 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 12B?

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

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

Gemma 4 12B 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 12B?

Gemma 4 12B competes with other models in its class. Browse our model directory for comparisons, benchmarks, and community reviews to find the best fit.

Can my GPU run Gemma 4 12B?

Fit and estimated speed on popular hardware

Nearby options

Similar models and compatible hardware by spec