Gemma 3 12B IT (Multimodal) — VRAM Requirements, Quantization Matrix & GPU Guide
Gemma 3 12B IT (Multimodal) (Google Gemma, Gemma Terms) is a Dense Transformer architecture with 12.2B resident parameters (12.2B active per token), 48 layers, and Hybrid Sliding-Window (SWA) supporting up to 131,072 context tokens.
Interactive Gemma 3 12B IT (Multimodal) Memory & Context Simulator
Precision & Quantization VRAM Matrix (8K / 32K / 128K Context)
| Precision / Format | Effective bpw | Weights Only | Total @ 8K ctx | Total @ 32K ctx | Total @ 128K ctx | Recommended Tier (@ 32K) |
|---|---|---|---|---|---|---|
| FP16 / BF16 | 16.00 bpw | 22.72 GB | 25.34 GB | 26.84 GB | 32.84 GB | RTX 5090 32GB |
| FP8 | 8.50 bpw | 12.07 GB | 14.37 GB | 15.87 GB | 21.87 GB | RTX 3090 24GB |
| Q8_0 | 8.50 bpw | 12.07 GB | 14.37 GB | 15.87 GB | 21.87 GB | RTX 3090 24GB |
| Q6_K | 6.56 bpw | 9.32 GB | 11.53 GB | 13.03 GB | 19.03 GB | RTX 4060 Ti 16GB |
| Q5_K_M | 5.69 bpw | 8.08 GB | 10.26 GB | 11.76 GB | 17.76 GB | RTX 4060 Ti 16GB |
| Q4_K_M | 4.85 bpw | 6.89 GB | 9.03 GB | 10.53 GB | 16.53 GB | RTX 3060 12GB |
| AWQ INT4 | 4.50 bpw | 6.39 GB | 8.52 GB | 10.02 GB | 16.02 GB | RTX 3060 12GB |
| IQ4_XS | 4.25 bpw | 6.04 GB | 8.15 GB | 9.65 GB | 15.65 GB | RTX 3060 12GB |
Hardware Compatibility & Decode Speed (Gemma 3 12B IT (Multimodal) @ Q4_K_M, 32K Context)
| Hardware Tier | Memory & Bandwidth | Required (32K) | Fit Verdict | Est. Decode Speed |
|---|---|---|---|---|
| RTX 3090 24GB | 24 GB · 936 GB/s | 10.53 GB (44%) | Fits Comfortably | 59.3 tok/s |
| RTX 4090 24GB | 24 GB · 1008 GB/s | 10.53 GB (44%) | Fits Comfortably | 63.8 tok/s |
| RTX 5090 32GB | 32 GB · 1792 GB/s | 10.53 GB (33%) | Fits Comfortably | 113.5 tok/s |
| Apple M-Max 64GB | 64 GB · 546 GB/s | 10.09 GB (16%) | Fits Comfortably | 32.5 tok/s |
| Mac Studio 128GB | 128 GB · 546 GB/s | 10.09 GB (8%) | Fits Comfortably | 32.5 tok/s |
| Mac Studio 192GB | 192 GB · 800 GB/s | 10.09 GB (5%) | Fits Comfortably | 47.7 tok/s |
| NVIDIA A100 80GB | 80 GB · 2039 GB/s | 10.53 GB (13%) | Fits Comfortably | 136.7 tok/s |
| NVIDIA H100 80GB | 80 GB · 3350 GB/s | 10.53 GB (13%) | Fits Comfortably | 224.6 tok/s |
Verified Transformer Architecture Parameters
- Checkpoint ID
- google/gemma-3-12b-it
- Ollama Tag
- gemma3:12b
- License / Release
- Gemma Terms · 2025-Q1
- Topology & Attention
- Dense Transformer
- Attention Mechanism
- Hybrid Sliding-Window (SWA)
- Total Params (B)
- 12.2B
- Active Params / Token (B)
- 12.2B
- Hidden Layers / Hidden Size
- 48 / 3840
- Query Heads / KV Heads
- 16Q / 8KV (d=256)
- Sliding Window
- 1024 (83% local)
- Vocab / Max Position
- 262,208 / 131,072
Quantized formats store per-block scale factors and zero-points alongside packed integer weights. A 4-bit GGUF Q4_K_M checkpoint averages 4.85 effective bits per parameter (not 4.00), while Q8_0 averages 8.50 bpw. For Mixture-of-Experts models, all routed and shared experts remain resident in memory to prevent token-by-token host paging.
Standard Grouped-Query Attention allocates 2 × L × H_kv × d_head × S × B × bytes_kv across layers. DeepSeek Multi-head Latent Attention (MLA) compresses keys and values into L × (d_kv_lora + d_qk_rope) × S × B × bytes_kv, slashing long-context memory by over 90%. Hybrid sliding-window models cap local-attention layers at min(S, window_size) while scaling global layers linearly with S.
Quick-Start vLLM & Ollama Commands for Gemma 3 12B IT (Multimodal)
vllm serve google/gemma-3-12b-it \
--tensor-parallel-size 1 \
--max-model-len 32768 \
--max-num-seqs 8 \
--gpu-memory-utilization 0.95 \
--kv-cache-dtype fp8 \
--enable-prefix-caching \
--port 8000
# Save as Modelfile, then run: ollama create gemma-3-12b-custom -f Modelfile
FROM gemma3:12b
PARAMETER num_ctx 32768
PARAMETER num_batch 512
PARAMETER flash_attn true
# Environment variables for ollama serve:
# OLLAMA_NUM_PARALLEL=8 OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 ollama serve
Compare Sibling & Similar-Scale Open-Weight Models
Gemma 3 27B IT (Multimodal)
Google Gemma · 27.4B (HYBRID_SWA)
Microsoft Phi-4 (14B)
Microsoft Phi · 14.7B (GQA)
Qwen3-14B
Qwen · 14.8B (GQA)
GLM-4-9B-0414
Zhipu GLM · 9.4B (GQA)
Qwen3-8B
Qwen · 8.2B (GQA)
Llama 3.1 8B Instruct
Meta Llama · 8.03B (GQA)