GE

Gemma 2 27b

GemmaGGUF by hideaxUpdated 2024-12-16
Download on Hugging Face
Parameters27.2B
Context8K
Layers46
Architecturegemma2
Smallest quant19.4 GB
Quick answer

Gemma 2 27b needs about 23.0 GB of memory at Q5_K_M (a 19.4 GB file) with an 8K context window, so it fits on a 24 GB GPU.

Gemma 2 27b is a 27.2B-parameter Gemma model in GGUF format, quantized by hideax. Its trained context length is 8K tokens. The repository has 1 quant file, from 19.4 GB (Q5_K_M) to 19.4 GB (Q5_K_M).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q5_K_M19.4 GB 23.0 GB
Too big Get file →

What GPU do you need for Gemma 2 27b?

These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.

  • 4 GB VRAM: no quant fits at an 8K context.
  • 6 GB VRAM: no quant fits at an 8K context.
  • 8 GB VRAM: no quant fits at an 8K context.
  • 12 GB VRAM: no quant fits at an 8K context.
  • 16 GB VRAM: no quant fits at an 8K context.
  • 24 GB VRAM: the best quant that fits is Q5_K_M (19.4 GB file, about 23.0 GB in use).

Which Gemma 2 27b quant should you choose?

Q5_K_M (19.4 GB) is the middle option in this repository. Closer to the original model than 4-bit, for a moderate increase in size. A good pick when you have memory to spare.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturegemma2
Parameters27.2B
Layers46
Trained context8,192 tokens
KV cache (fp16)368 KB per token

Source

Quantized byhideax
FamilyGemma
Downloads (HF)20
Last updated2024-12-16

Frequently asked questions about Gemma 2 27b

How much VRAM does Gemma 2 27b need?

About 23.0 GB at Q5_K_M with an 8K context window. That is the 19.4 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.

Can I run Gemma 2 27b on an 8 GB GPU?

Not at an 8K context. The smallest file needs about 23.0 GB, so you would need a larger GPU or CPU offloading.

What is the file size of Gemma 2 27b GGUF?

It depends on the quant: Q5_K_M is 19.4 GB.

What context length does Gemma 2 27b support?

The GGUF header lists a trained context length of 8,192 tokens (8K). The KV cache grows with the context you use: about 3.1 GB at 8K and 3.1 GB at 8K.

Where can I download Gemma 2 27b GGUF?

The files are on Hugging Face in the hideax/gemma-2-27b-it-5-q5_k_m repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

Similar models

Browse all →

More Gemma models

All Gemma →

Other medium models

All medium models →