πŸ“‹ Model Description


base_model: mistralai/Codestral-22B-v0.1 inference: false language:
  • code
library_name: gguf license: other license_link: https://mistral.ai/licences/MNPL-0.1.md license_name: mnpl pipeline_tag: text-generation quantized_by: legraphista tags:
  • code
  • quantized
  • GGUF
  • imatrix
  • quantization
  • imat
  • imatrix
  • static

Codestral-22B-v0.1-IMat-GGUF

Llama.cpp imatrix quantization of mistralai/Codestral-22B-v0.1 (legraphista/Codestral-22B-v0.1-hf-FIM-fix)

Updates:

  • 31/05/2024: Fixes to the model's missing FIM tokens


Original model: mistralai/Codestral-22B-v0.1
Quantized HF Model: legraphista/Codestral-22B-v0.1-hf-FIM-fix
Original dtype: BF16 (bfloat16)
Quantized by: llama.cpp b3046
IMatrix dataset: here

- IMatrix - Common Quants - All Quants - Simple chat template - Chat template with system prompt - FIM / Fill In the Middle - 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
Codestral-22B-v0.1-hf.Q80.ggufQ8023.64GBβœ… Availableβšͺ Static
πŸ“¦ No | Codestral-22B-v0.1-hf.Q6K.gguf | Q6K | 18.25GB | βœ… Available | βšͺ Static | πŸ“¦ No | Codestral-22B-v0.1-hf.Q4K.gguf | Q4K | 13.34GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.Q3K.gguf | Q3K | 10.76GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.Q2K.gguf | Q2K | 8.27GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No

All Quants

FilenameQuant typeFile SizeStatusUses IMatrixIs Split
Codestral-22B-v0.1-hf.BF16.ggufBF1644.50GBβœ… Availableβšͺ Static
πŸ“¦ No | Codestral-22B-v0.1-hf.FP16.gguf | F16 | 44.50GB | βœ… Available | βšͺ Static | πŸ“¦ No | Codestral-22B-v0.1-hf.Q80.gguf | Q80 | 23.64GB | βœ… Available | βšͺ Static | πŸ“¦ No | Codestral-22B-v0.1-hf.Q6K.gguf | Q6K | 18.25GB | βœ… Available | βšͺ Static | πŸ“¦ No | Codestral-22B-v0.1-hf.Q5K.gguf | Q5K | 15.72GB | βœ… Available | βšͺ Static | πŸ“¦ No | Codestral-22B-v0.1-hf.Q5KS.gguf | Q5K_S | 15.32GB | βœ… Available | βšͺ Static | πŸ“¦ No | Codestral-22B-v0.1-hf.Q4K.gguf | Q4K | 13.34GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.Q4KS.gguf | Q4K_S | 12.66GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ4NL.gguf | IQ4NL | 12.61GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ4XS.gguf | IQ4XS | 11.94GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.Q3K.gguf | Q3K | 10.76GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.Q3KL.gguf | Q3K_L | 11.73GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.Q3KS.gguf | Q3K_S | 9.64GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ3M.gguf | IQ3M | 10.06GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ3S.gguf | IQ3S | 9.69GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ3XS.gguf | IQ3XS | 9.18GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ3XXS.gguf | IQ3XXS | 8.60GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.Q2K.gguf | Q2K | 8.27GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.Q2KS.gguf | Q2K_S | 7.65GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ2M.gguf | IQ2M | 7.62GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ2S.gguf | IQ2S | 7.04GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ2XS.gguf | IQ2XS | 6.65GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ2XXS.gguf | IQ2XXS | 6.00GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ1M.gguf | IQ1M | 5.27GB | βœ… Available | 🟒 IMatrix | πŸ“¦ No | Codestral-22B-v0.1-hf.IQ1S.gguf | IQ1S | 4.83GB | βœ… 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/Codestral-22B-v0.1-hf-IMat-GGUF --include "Codestral-22B-v0.1-hf.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/Codestral-22B-v0.1-hf-IMat-GGUF --include "Codestral-22B-v0.1-hf.Q8_0/*" --local-dir ./

see FAQ for merging GGUF's


Inference

Simple chat template

<s>[INST] {userprompt} [/INST] {assistantresponse} </s><s>[INST] {newuserprompt} [/INST]

Chat template with system prompt

<s>[INST] <<SYS>>
{system_prompt}
<</SYS>>

{userprompt} [/INST] {assistantresponse} </s><s>[INST] {newuserprompt} [/INST]

Llama.cpp

llama.cpp/main -m Codestral-22B-v0.1-hf.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: Codestral-22B-v0.1-hf.Q80)
  2. Run gguf-split --merge Codestral-22B-v0.1-hf.Q80/Codestral-22B-v0.1-hf.Q80-00001-of-XXXXX.gguf Codestral-22B-v0.1-hf.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
Codestral-22B-v0.1-hf.BF16.gguf
Recommended LFS FP16
41.44 GB Download
Codestral-22B-v0.1-hf.FP16.gguf
LFS FP16
41.44 GB Download
Codestral-22B-v0.1-hf.IQ1_M.gguf
LFS
4.91 GB Download
Codestral-22B-v0.1-hf.IQ1_S.gguf
LFS
4.5 GB Download
Codestral-22B-v0.1-hf.IQ2_M.gguf
LFS Q2
7.1 GB Download
Codestral-22B-v0.1-hf.IQ2_S.gguf
LFS Q2
6.55 GB Download
Codestral-22B-v0.1-hf.IQ2_XS.gguf
LFS Q2
6.19 GB Download
Codestral-22B-v0.1-hf.IQ2_XXS.gguf
LFS Q2
5.58 GB Download
Codestral-22B-v0.1-hf.IQ3_M.gguf
LFS Q3
9.37 GB Download
Codestral-22B-v0.1-hf.IQ3_S.gguf
LFS Q3
9.02 GB Download
Codestral-22B-v0.1-hf.IQ3_XS.gguf
LFS Q3
8.55 GB Download
Codestral-22B-v0.1-hf.IQ3_XXS.gguf
LFS Q3
8.01 GB Download
Codestral-22B-v0.1-hf.IQ4_NL.gguf
LFS Q4
11.75 GB Download
Codestral-22B-v0.1-hf.IQ4_XS.gguf
LFS Q4
11.12 GB Download
Codestral-22B-v0.1-hf.Q2_K.gguf
LFS Q2
7.7 GB Download
Codestral-22B-v0.1-hf.Q2_K_S.gguf
LFS Q2
7.12 GB Download
Codestral-22B-v0.1-hf.Q3_K.gguf
LFS Q3
10.02 GB Download
Codestral-22B-v0.1-hf.Q3_K_L.gguf
LFS Q3
10.92 GB Download
Codestral-22B-v0.1-hf.Q3_K_S.gguf
LFS Q3
8.98 GB Download
Codestral-22B-v0.1-hf.Q4_K.gguf
LFS Q4
12.42 GB Download
Codestral-22B-v0.1-hf.Q4_K_S.gguf
LFS Q4
11.79 GB Download
Codestral-22B-v0.1-hf.Q5_K.gguf
LFS Q5
14.64 GB Download
Codestral-22B-v0.1-hf.Q5_K_S.gguf
LFS Q5
14.27 GB Download
Codestral-22B-v0.1-hf.Q6_K.gguf
LFS Q6
17 GB Download
Codestral-22B-v0.1-hf.Q8_0.gguf
LFS Q8
22.02 GB Download