Skip to content
Run LLM Locally

Model · Google

Gemma 3 27B IT: VRAM and hardware requirements

At Q4_K_M with an 8K context, Gemma 3 27B IT needs about 18.6 GB: a GPU with 20 GB or more runs it entirely in VRAM.

  • Parameters27.4B
  • Max context128K
  • LicenseGemma Terms of Use

Specifications

Organization
Google
Architecture
gemma3
Released
March 2025
Layers
62
Hidden size
5376
Attention heads
32
KV heads
16
Head dimension
128
Vocabulary
262,208
KV cache per 1K tokens (f16)
0.484 GB

Official specData updated 24 days agoSource: Hugging Face config.json + model card

Quantizations and memory

Gemma 3 27B IT: memory by quantization at 8K context
QuantizationFile sizeMemory neededMinimum GPU memoryQuality
BF1650.3 GB~55.8 GB80 GBReference (unquantized)
Q8_026.7 GB~30.6 GB32 GBNear-lossless
Q6_K20.6 GB~24.2 GB32 GBNear-lossless
Q5_K_M17.9 GB~21.3 GB24 GBVery good
Q4_K_MMost used15.4 GB~18.6 GB20 GBGood — the usual choice
IQ4_XS13.8 GB~17.1 GB20 GBGood — the usual choice
Q3_K_M12.5 GB~15.6 GB16 GBNoticeable loss
Q2_K9.8 GB~12.8 GB16 GBSignificant loss

File sizes: not available until imported from the model repository. Memory = weights (estimated from bits per weight) + KV cache + runtime overhead + safety margin. (BF16 ≈ 16 bpw, Q8_0 ≈ 8.5 bpw, Q6_K ≈ 6.57 bpw, Q5_K_M ≈ 5.7 bpw, Q4_K_M ≈ 4.9 bpw, IQ4_XS ≈ 4.46 bpw, Q3_K_M ≈ 4 bpw, Q2_K ≈ 3.17 bpw)

Q4, Q5 or Q8: how to choose a quantization

GPUs that run Gemma 3 27B IT

Gemma 3 27B IT Q4_K_M · 8K context, one GPU
RTX 509032 GB · 64 GB RAM~18.3 GB · 62–92 tok/s estimateExcellent
RTX 409024 GB · 64 GB RAM~18.3 GB · 39–54 tok/s estimateExcellent
RTX 309024 GB · 64 GB RAM~18.3 GB · 37–51 tok/s estimateExcellent
RX 7900 XTX24 GB · 64 GB RAM~18.4 GB · 32–47 tok/s estimateExcellent
RTX 5060 Ti 16 GB16 GB · 64 GB RAM~18.3 GB · 5.5–10 tok/s estimateCPU/GPU offload
RTX 5070 Ti16 GB · 64 GB RAM~18.3 GB · 6–12 tok/s estimateCPU/GPU offload
RTX 508016 GB · 64 GB RAM~18.3 GB · 6–12 tok/s estimateCPU/GPU offload
RTX 4060 Ti 16 GB16 GB · 64 GB RAM~18.3 GB · 4.5–8.5 tok/s estimateCPU/GPU offload
RTX 4070 Ti SUPER16 GB · 64 GB RAM~18.3 GB · 6–11 tok/s estimateCPU/GPU offload
RX 9070 XT16 GB · 64 GB RAM~18.4 GB · 5.5–11 tok/s estimateCPU/GPU offload
RTX 3060 12 GB12 GB · 64 GB RAM~18.3 GB · 2.5–5 tok/s estimateCPU/GPU offload
RTX 407012 GB · 64 GB RAM~18.3 GB · 3–5.5 tok/s estimateCPU/GPU offload
RTX 507012 GB · 64 GB RAM~18.3 GB · 3–5.5 tok/s estimateCPU/GPU offload
RTX 40608 GB · 64 GB RAM~18.3 GB · 1.8–3.5 tok/s estimatePossible but slow

Macs that run Gemma 3 27B IT

Gemma 3 27B IT Q4_K_M · 8K context
M3 Ultra (80-core GPU) · 512 GBMac Studio~18.1 GB · 27–44 tok/s estimateExcellent
M4 Max (40-core GPU) · 128 GBMacBook Pro 14, MacBook Pro 16~18.1 GB · 19–29 tok/s estimateExcellent
M3 Max (40-core GPU) · 128 GBMacBook Pro 14, MacBook Pro 16~18.1 GB · 14–22 tok/s estimateExcellent
M4 Pro (20-core GPU) · 64 GBMac mini, MacBook Pro 14~18.1 GB · 10–15 tok/s estimateExcellent
M4 Max (32-core GPU) · 36 GBMacBook Pro 14, MacBook Pro 16~18.1 GB · 15–22 tok/s estimateExcellent
M4 · 32 GBMacBook Air, MacBook Pro 14~18.1 GB · 4.5–6.5 tok/s estimateCompatible
M5 · 32 GBMacBook Pro 14~18.1 GB · 5.5–8.5 tok/s estimateCompatible
M3 · 24 GBMacBook Air, MacBook Pro 14~18.1 GB · No dataIncompatible

EstimateData updated 24 days agoSource: Run LLM Locally engine

Limits in plain words

The KV cache grows with context: at 32K it adds about 2.9 GB on top of the weights.

With under 8 GB of VRAM, use a smaller quantization or a smaller model of the same family.

Where to buy

Prices and links follow the market you choose.

Radeon RX 7900 XT

AMD

CompatibleRuns Gemma 3 27B IT Q4_K_M entirely in memory

Price not available

Availability unknown

View on amazon.com

Affiliate link

AMD Ryzen AI Max+ 395

Unified memory PC

CompatibleRuns Gemma 3 27B IT Q4_K_M entirely in memory

Price not available

Availability unknown

View on amazon.com

Affiliate link

No current offer imported for this market: the link opens a marketplace search.

Frequently asked questions

How much VRAM does Gemma 3 27B IT need?
About 18.6 GB at Q4_K_M with an 8K context, including the KV cache and runtime overhead. At Q8_0 it needs about 30.6 GB. A longer context adds more: about 2.9 GB of KV cache at 32K.
Can Gemma 3 27B IT run on a Mac?
Yes on a Mac whose GPU can use at least 18.1 GB, e.g. M4 32 GB. macOS lets the GPU use about two thirds to three quarters of unified memory by default.
How fast is Gemma 3 27B IT?
On a RTX 4090, we estimate 39–54 tok/s at Q4_K_M. This is an estimate from memory bandwidth (confidence low) until benchmarks are imported.