Will it fit? · prices checked 2026-11-19

How much GPU memory does Gemma 2 27B need?

Gemma 2 27B needs about 57.5 GB of GPU memory to run in BF16 with an 8K context (54.4 GB of weights, 3.1 GB of key-value cache), 30.3 GB in INT8 and 16.7 GB in INT4. The cheapest machine that holds it in BF16 today: 2 x RTX A6000 at $0.70 an hour (Thunder Compute).

Memory, 8K context, batch 1

By precision

PrecisionWeights GBKV cache GBTotal GB
BF1654.43.157.5
INT827.23.130.3
INT413.63.116.7

Gemma 2 27B: 27.2 billion parameters, 46 layers, 16 key-value heads of size 128, from its published configuration. Try other settings on the calculator.

Machines that hold it · 2026-11-19

The cheapest ones that fit (BF16)

One machine of up to 8 GPUs, each provider's cheapest listed price; running across several GPUs splits the model between them.

MachineOn-demand $/hourInterruptible $/hour
2 x RTX A600048 GB each$0.70Thunder Compute$0.92
3 x RTX 409024 GB each$1.02RunPod 
1 x A100 80GB80 GB each$1.09Thunder Compute$0.68
2 x RTX 509032 GB each$1.20Salad 
3 x L424 GB each$1.32RunPod$0.31
2 x L40S48 GB each$1.58RunPodfrom $1.48
4 x T416 GB each$1.60Hugging Face$0.27
2 x A100 40GB40 GB each$1.78Jarvislabs$1.43
1 x RTX PRO 600096 GB each$1.80Nebiusfrom $0.79
1 x H100 SXM80 GB each$1.99Voltage Parkfrom $0.79

Questions

Gemma 2 27B, answered

How much GPU memory does Gemma 2 27B need?

Gemma 2 27B needs about 57.5 GB of GPU memory to run in BF16 with an 8K context (54.4 GB of weights, 3.1 GB of key-value cache), 30.3 GB in INT8 and 16.7 GB in INT4. The cheapest machine that holds it in BF16 today: 2 x RTX A6000 at $0.70 an hour (Thunder Compute).

Can I fine-tune Gemma 2 27B on one GPU?

With QLoRA (4-bit weights) it needs at least 18.3 GB plus activations; a full fine-tune needs at least 438.3 GB, which takes several GPUs.

How is this worked out?

Weights: parameters times bytes per parameter (BF16 2, INT8 1, INT4 0.5). The key-value cache: 2 x layers x key-value heads x head size x 2 bytes x context x batch. LoRA adds about 4% of the weights; a full fine-tune adds 14 bytes a parameter (gradients, Adam's two moments, 32-bit master weights). A GPU can use about 90% of its memory. Activations during training come on top, so treat a fine-tune's number as the least it needs.