Skip to content
E
Educatum
Google Dense + Sliding WindowVerified google/gemma-3-27b-it config.json

Gemma 3 27B VRAM & GPU Requirements Calculator

Gemma 3 27B requires 51.0 GiB in FP16, 25.5 GiB in FP8, and 15.6 GiB in GGUF Q4_K_M for weights alone (62L · 5:1 sliding window (1K local / 10 global) · GQA 32Q/16KV). At 8K context (batch=1, FP16 KV), KV-cache adds 1.03 GiB (7.5× smaller than MHA).

FP16 Inference (8K)
53.5 GiB
51.0 GiB weights
FP8 Weights + FP8 KV
27.5 GiB
25.5 GiB weights
GGUF Q4_K_M (8K)
18.1 GiB
15.6 GiB weights
32K KV-Cache (FP16)
2.91 GiB
7.5× vs MHA

Can Your GPU or Mac Run Gemma-3 27B? (8K Context, Batch=1)

Pre-computed fit verdict and estimated decode speed across RTX 4090/3090, Apple Silicon Unified Memory, and NVIDIA H100 clusters.

Hardware RigQ4_K_M (18.1 GiB)FP8 (27.5 GiB)FP16 (53.5 GiB)
1× RTX 4090 (23.9 GiB usable)FIT · ~44 tok/sOOM (-4G)OOM (-30G)
2× RTX 4090 / 3090 (47.8 GiB usable)FIT · ~51 tok/sFIT · ~37 tok/sOOM (-8G)
Apple M4 Max (128 GiB Unified · 96 GiB GPU)FIT · ~22 tok/sFIT · ~14 tok/sFIT · ~7 tok/s
Apple M3 Ultra (256 GiB Unified · 192 GiB GPU)FIT · ~33 tok/sFIT · ~21 tok/sFIT · ~11 tok/s
1× H100 SXM (79.6 GiB usable)FIT · ~147 tok/sFIT · ~93 tok/sFIT · ~47 tok/s
4× H100 SXM (318.4 GiB usable)FIT · ~156 tok/sFIT · ~133 tok/sFIT · ~95 tok/s
8× H100 SXM (636.8 GiB usable)FIT · ~129 tok/sFIT · ~120 tok/sFIT · ~100 tok/s
8× H200 SXM (1,123.2 GiB usable)FIT · ~135 tok/sFIT · ~128 tok/sFIT · ~111 tok/s

Interactive Gemma-3 27B VRAM & Roofline Simulator

1. Model & Workload

GQA · 27.4B Dense

62L · 5:1 sliding window (1K local / 10 global) · GQA 32Q/16KV

Execution Mode
Weight Precision (Datacenter & GGUF)
KV:
8,192 tok
1 reqs

2. Target GPU / Mac Silicon

23.9 GiB Usable · 1.01 TB/s eff.
GPU Count (Tensor Parallel)
OOM CLIFF (-29.6 GiB over limit)
53.5 / 23.9 GiB usable (224%)

Quantize weights to FP8 (~25.5 GiB) or GGUF Q4_K_M (~15.6 GiB).

Total VRAM
53.5 GiB
Weights 51.0 GiB (FP16)
KV-Cache
1.0 GiB
7.5× vs MHA
Decode / User
~14.1 tok/s
HBM Bound
Cluster Output
~14 tok/s
AI 1.0 FLOP/B

VRAM Allocation vs. Hardware Capacity

Binary GiB (1 GiB = 2³⁰ B) · Usable VRAM excludes ECC/OS & per-GPU CUDA/NCCL buffers

Dashed line = Usable VRAM
Used: 53.5 GiB · Usable: 23.9 GiB (224%) 23.9 GiB Usable Weights: 51.0 GiBKV-Cache: 1.0 GiBAct + CUDA: 1.5 GiB educatum.com/kv-cache

Decode Arithmetic Intensity Roofline

AI 1.0 vs Ridge 327 FLOPs/B
1416642561024 Ridge: 327 FLOPs/B · 330 TFLOPS Memory-Bandwidth Bound (1.0 FLOP/B) Arithmetic Intensity (FLOPs / Byte, log scale) educatum.com/kv-cache
Canonical URL stays clean; click Copy Shareable Link to share your exact slider config.
Gemma-3 27B IT · KV_tok (5:1 window) = (10G × 8192 + 52L × 1024)/8192 = 132.0 KiB/tok eff. (7.5× vs MHA)
Decode Step Read: 51.0 GiB active weights + 1.03 GiB KV-cache → AI = 0.98 FLOPs/Byte (Memory-Bandwidth Bound; BW in decimal GB/s)

Compare Other LLM VRAM Requirements

All 14 Models →

Frequently Asked Questions

Can 1× or 2× RTX 4090 (24 GiB / 48 GiB) run Gemma 3 27B?

At 8K context (batch=1) in GGUF Q4_K_M, Gemma 3 27B needs 18.1 GiB total VRAM including CUDA runtime overhead (15.6 GiB weights). Single 23.9 GiB usable RTX 4090: Fits at ~44 tok/s. Dual 47.8 GiB usable (2× 4090/3090): Fits Q4_K_M cleanly (~51 tok/s).

Can an Apple M4 Max (128 GiB) Mac Studio / MacBook Pro run Gemma 3 27B?

An Apple M4 Max 128 GiB reserves 96 GiB wired GPU memory by default. In GGUF Q4_K_M (18.1 GiB needed at 8K), it fits on M4 Max 128 GiB at ~22.1 tok/s.

How much KV-cache does Gemma 3 27B use at 32K context?

Gemma 3 27B uses GQA with a 5:1 sliding window (1,024 local tokens), giving a 7.5× KV-cache reduction vs standard MHA. At 32,768 context (batch=1, FP16 KV), KV-cache occupies 2.91 GiB.

Try keywords like RoPE, FlashAttention, DPO, or Blind 75.