πŸ“‹ Model Description


base_model: google/gemma-2-9b-it extragatedbutton_content: Acknowledge license extragatedheading: Access Gemma on Hugging Face extragatedprompt: "To access Gemma on Hugging Face, you\u2019re required to review\ \ and agree to Google\u2019s usage license. To do this, please ensure you\u2019\ re logged in to Hugging Face and click below. Requests are processed immediately." inference: false library_name: gguf license: gemma pipeline_tag: text-generation quantized_by: legraphista tags:
  • conversational
  • quantized
  • GGUF
  • quantization
  • imat
  • imatrix
  • static
  • 16bit
  • 8bit
  • 6bit
  • 5bit
  • 4bit
  • 3bit
  • 2bit
  • 1bit

gemma-2-9b-it-IMat-GGUF

Llama.cpp imatrix quantization of google/gemma-2-9b-it

Original Model: google/gemma-2-9b-it
Original dtype: BF16 (bfloat16)
Quantized by: llama.cpp b3266
IMatrix dataset: here

- IMatrix - Common Quants - All Quants - Simple chat template - Llama.cpp - Why is the IMatrix not applied everywhere? - How do I merge a split GGUF?

Files

IMatrix

Status: βœ… Available Link: here

Common Quants

FilenameQuant typeFile SizeStatusUses IMatrixIs Split
gemma-2-9b-it.Q80.ggufQ809.83GBβœ… Availableβšͺ Static
πŸ“¦ No | gemma-2-9b-it.Q6K.gguf | Q6K | 7.59GB | βœ… Available | βšͺ Static | πŸ“¦ No | gemma-2-9b-it.Q4K.gguf | Q4K | 5.76GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.Q3K.gguf | Q3K | 4.76GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.Q2K.gguf | Q2K | 3.81GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No

All Quants

FilenameQuant typeFile SizeStatusUses IMatrixIs Split
gemma-2-9b-it.BF16.ggufBF1618.49GBβœ… Availableβšͺ Static
πŸ“¦ No | gemma-2-9b-it.FP16.gguf | F16 | 18.49GB | βœ… Available | βšͺ Static | πŸ“¦ No | gemma-2-9b-it.Q80.gguf | Q80 | 9.83GB | βœ… Available | βšͺ Static | πŸ“¦ No | gemma-2-9b-it.Q6K.gguf | Q6K | 7.59GB | βœ… Available | βšͺ Static | πŸ“¦ No | gemma-2-9b-it.Q5K.gguf | Q5K | 6.65GB | βœ… Available | βšͺ Static | πŸ“¦ No | gemma-2-9b-it.Q5KS.gguf | Q5K_S | 6.48GB | βœ… Available | βšͺ Static | πŸ“¦ No | gemma-2-9b-it.Q4K.gguf | Q4K | 5.76GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.Q4KS.gguf | Q4K_S | 5.48GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ4NL.gguf | IQ4NL | 5.44GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ4XS.gguf | IQ4XS | 5.18GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.Q3K.gguf | Q3K | 4.76GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.Q3KL.gguf | Q3K_L | 5.13GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.Q3KS.gguf | Q3K_S | 4.34GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ3M.gguf | IQ3M | 4.49GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ3S.gguf | IQ3S | 4.34GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ3XS.gguf | IQ3XS | 4.14GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ3XXS.gguf | IQ3XXS | 3.80GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.Q2K.gguf | Q2K | 3.81GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.Q2KS.gguf | Q2K_S | 3.55GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ2M.gguf | IQ2M | 3.43GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ2S.gguf | IQ2S | 3.21GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ2XS.gguf | IQ2XS | 3.07GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ2XXS.gguf | IQ2XXS | 2.82GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ1M.gguf | IQ1M | 2.55GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | gemma-2-9b-it.IQ1S.gguf | IQ1S | 2.38GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No

Downloading using huggingface-cli

If you do not have hugginface-cli installed:
pip install -U "huggingface_hub[cli]"
Download the specific file you want:
huggingface-cli download legraphista/gemma-2-9b-it-IMat-GGUF --include "gemma-2-9b-it.Q8_0.gguf" --local-dir ./
If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
huggingface-cli download legraphista/gemma-2-9b-it-IMat-GGUF --include "gemma-2-9b-it.Q8_0/*" --local-dir ./

see FAQ for merging GGUF's


Inference

Simple chat template

<bos><startofturn>user
{userprompt}<endof_turn>
<startofturn>model
{assistantresponse}<endof_turn>
<startofturn>user
{nextuserprompt}<endofturn>

Llama.cpp

llama.cpp/main -m gemma-2-9b-it.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"

FAQ

Why is the IMatrix not applied everywhere?

According to this investigation, it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).

How do I merge a split GGUF?

  1. Make sure you have gguf-split available
- To get hold of gguf-split, navigate to https://github.com/ggerganov/llama.cpp/releases - Download the appropriate zip for your system from the latest release - Unzip the archive and you should be able to find gguf-split
  1. Locate your GGUF chunks folder (ex: gemma-2-9b-it.Q80)
  2. Run gguf-split --merge gemma-2-9b-it.Q80/gemma-2-9b-it.Q80-00001-of-XXXXX.gguf gemma-2-9b-it.Q80.gguf
- Make sure to point gguf-split to the first chunk of the split.

Got a suggestion? Ping me @legraphista!

πŸ“‚ GGUF File List

πŸ“ Filename πŸ“¦ Size ⚑ Download
gemma-2-9b-it.BF16.gguf
Recommended LFS FP16
17.22 GB Download
gemma-2-9b-it.FP16.gguf
LFS FP16
17.22 GB Download
gemma-2-9b-it.IQ1_M.gguf
LFS
2.37 GB Download
gemma-2-9b-it.IQ1_S.gguf
LFS
2.22 GB Download
gemma-2-9b-it.IQ2_M.gguf
LFS Q2
3.2 GB Download
gemma-2-9b-it.IQ2_S.gguf
LFS Q2
2.99 GB Download
gemma-2-9b-it.IQ2_XS.gguf
LFS Q2
2.86 GB Download
gemma-2-9b-it.IQ2_XXS.gguf
LFS Q2
2.63 GB Download
gemma-2-9b-it.IQ3_M.gguf
LFS Q3
4.19 GB Download
gemma-2-9b-it.IQ3_S.gguf
LFS Q3
4.04 GB Download
gemma-2-9b-it.IQ3_XS.gguf
LFS Q3
3.86 GB Download
gemma-2-9b-it.IQ3_XXS.gguf
LFS Q3
3.54 GB Download
gemma-2-9b-it.IQ4_NL.gguf
LFS Q4
5.07 GB Download
gemma-2-9b-it.IQ4_XS.gguf
LFS Q4
4.83 GB Download
gemma-2-9b-it.Q2_K.gguf
LFS Q2
3.54 GB Download
gemma-2-9b-it.Q2_K_S.gguf
LFS Q2
3.31 GB Download
gemma-2-9b-it.Q3_K.gguf
LFS Q3
4.43 GB Download
gemma-2-9b-it.Q3_K_L.gguf
LFS Q3
4.78 GB Download
gemma-2-9b-it.Q3_K_S.gguf
LFS Q3
4.04 GB Download
gemma-2-9b-it.Q4_K.gguf
LFS Q4
5.37 GB Download
gemma-2-9b-it.Q4_K_S.gguf
LFS Q4
5.1 GB Download
gemma-2-9b-it.Q5_K.gguf
LFS Q5
6.19 GB Download
gemma-2-9b-it.Q5_K_S.gguf
LFS Q5
6.04 GB Download
gemma-2-9b-it.Q6_K.gguf
LFS Q6
7.07 GB Download
gemma-2-9b-it.Q8_0.gguf
LFS Q8
9.15 GB Download