GE

Gemma 2 2b It

GemmaGGUF by ZeroWwUpdated 2024-08-01
Download on Hugging Face
Parameters2.61B
Context8K
Layers26
Architecturegemma2
Smallest quant2.6 GB
Quick answer

Gemma 2 2b It needs about 4.2 GB of memory at Q6_K (a 2.8 GB file) with an 8K context window, so it fits on a 6 GB GPU. This repository has 5 quants, from 2.6 GB (Q5_K) to 5.2 GB (F16).

Gemma 2 2b It is a 2.61B-parameter Gemma model in GGUF format, quantized by ZeroWw. Its trained context length is 8K tokens. The repository has 5 quant files, from 2.6 GB (Q5_K) to 5.2 GB (F16).

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q5_K2.6 GB 4.0 GB
Fits Get file →
—2.8 GB 4.2 GB
Fits Get file →
Q6_K2.8 GB 4.2 GB
Fits Get file →
Q8_03.3 GB 4.7 GB
Fits Get file →
F165.2 GB 6.6 GB
Fits Get file →

What GPU do you need for Gemma 2 2b It?

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: the best quant that fits is Q5_K (2.6 GB file, about 4.0 GB in use).
  • 6 GB VRAM: the best quant that fits is Q8_0 (3.3 GB file, about 4.7 GB in use).
  • 8 GB VRAM: the best quant that fits is F16 (5.2 GB file, about 6.6 GB in use).

Which Gemma 2 2b It quant should you choose?

Q6_K (2.8 GB) is the middle option in this repository. Very close to the original quality for most uses, at a clearly larger size than 4-bit.

If memory is tight, the smallest file is Q5_K at 2.6 GB, with the quality trade-offs that come with fewer bits. 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
Parameters2.61B
Layers26
Trained context8,192 tokens
KV cache (fp16)104 KB per token

Source

Quantized byZeroWw
FamilyGemma
Licensemit
Downloads (HF)58
Last updated2024-08-01

Frequently asked questions about Gemma 2 2b It

How much VRAM does Gemma 2 2b It need?

About 4.2 GB at Q6_K with an 8K context window. That is the 2.8 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 2b It on an 8 GB GPU?

Yes, with F16: the 5.2 GB file needs about 6.6 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

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

It depends on the quant: Q5_K is 2.6 GB, file is 2.8 GB, Q6_K is 2.8 GB, Q8_0 is 3.3 GB, F16 is 5.2 GB.

What context length does Gemma 2 2b It support?

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

Where can I download Gemma 2 2b It GGUF?

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

What license does Gemma 2 2b It use?

Hugging Face lists the license as mit. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.

Similar models

Browse all →

More from ZeroWw

All by ZeroWw →

More Gemma models

All Gemma →

Other tiny models

All tiny models →