📋 Model Description


quantized_by: Moe98 pipeline_tag: text-generation extragatedfields: Name: text Affiliation: text Country: text I agree to use this model for non-commercial use ONLY: checkbox base_model: CohereForAI/c4ai-command-r7b-arabic-02-2025 license: cc-by-nc-4.0 language:
  • en
  • fr
  • de
  • es
  • it
  • pt
  • ja
  • ko
  • zh
  • ar
  • el
  • fa
  • pl
  • id
  • cs
  • he
  • hi
  • nl
  • ro
  • ru
  • tr
  • uk
  • vi
inference: false extragatedprompt: >- By submitting this form, you agree to the License Agreement and acknowledge that the information you provide will be collected, used, and shared in accordance with Cohere’s Privacy Policy. You’ll receive email updates about C4AI and Cohere research, events, products and services. You can unsubscribe at any time.

Llamacpp imatrix Quantizations of c4ai-command-r7b-02-2025

Using llama.cpp release b4792 for quantization.

Original model: https://huggingface.co/CohereForAI/c4ai-command-r7b-arabic-02-2025

Prompt format

<|STARTOFTURNTOKEN|><|SYSTEMTOKEN|>{systemprompt}<|ENDOFTURNTOKEN|><|STARTOFTURNTOKEN|><|USERTOKEN|>{prompt}<|ENDOFTURNTOKEN|><|STARTOFTURNTOKEN|><|CHATBOTTOKEN|><|STARTRESPONSE|><|ENDRESPONSE|><|ENDOFTURNTOKEN|><|STARTOFTURNTOKEN|><|CHATBOTTOKEN|><|START_RESPONSE|>

Download a file (not the whole branch) from below:

FilenameQuant typeFile SizeSplitDescription
cohere-r7b-02-2025-f16.ggufbf1616.1GBfalseFull F16 weights.
cohere-r7b-02-2025-Q80.ggufQ808.54GBfalseExtremely high quality, generally unneeded but max available quant.

Downloading using huggingface-cli


Click to view download instructions

First, make sure you have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download Moe98/cohere-r7b-arabic-02-2025-GGUF --include "cohere-r7b-02-2025-abliterated-Q8_0.gguf" --local-dir ./

You can either specify a new local-dir (cohere-r7b-02-2025-Q8_0) or download them all in place (./)

ARM/AVX information

Previously, you would download Q4044/48/8_8, and these would have their weights interleaved in memory in order to improve performance on ARM and AVX machines by loading up more data in one pass.

Now, however, there is something called "online repacking" for weights. details in this PR. If you use Q40 and your hardware would benefit from repacking weights, it will do it automatically on the fly.

As of llama.cpp build b4282 you will not be able to run the Q40XX files and will instead need to use Q4_0.

Additionally, if you want to get slightly better quality for , you can use IQ4NL thanks to this PR which will also repack the weights for ARM, though only the 4_4 for now. The loading time may be slower but it will result in an overall speed incrase.


Click to view Q40X_X information (deprecated

I'm keeping this section to show the potential theoretical uplift in performance from using the Q4_0 with online repacking.


Click to view benchmarks on an AVX2 system (EPYC7702)

modelsizeparamsbackendthreadstestt/s% (vs Q4_0)
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp512204.03 ± 1.03100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp1024282.92 ± 0.19100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp2048259.49 ± 0.44100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg12839.12 ± 0.27100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg25639.31 ± 0.69100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg51240.52 ± 0.03100%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64pp512301.02 ± 1.74147%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64pp1024287.23 ± 0.20101%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64pp2048262.77 ± 1.81101%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64tg12818.80 ± 0.9948%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64tg25624.46 ± 3.0483%
qwen2 3B Q4KM1.79 GiB3.09 BCPU64tg51236.32 ± 3.5990%
qwen2 3B Q408_81.69 GiB3.09 BCPU64pp512271.71 ± 3.53133%
qwen2 3B Q408_81.69 GiB3.09 BCPU64pp1024279.86 ± 45.63100%
qwen2 3B Q408_81.69 GiB3.09 BCPU64pp2048320.77 ± 5.00124%
qwen2 3B Q408_81.69 GiB3.09 BCPU64tg12843.51 ± 0.05111%
qwen2 3B Q408_81.69 GiB3.09 BCPU64tg25643.35 ± 0.09110%
qwen2 3B Q408_81.69 GiB3.09 BCPU64tg51242.60 ± 0.31105%
Q408_8 offers a nice bump to prompt processing and a small bump to text generation

Which file should I choose?


Click here for details

A great write up with charts showing various performances is provided by Artefact2 here

The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.

If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.

If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.

Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.

If you don't want to think too much, grab one of the K-quants. These are in format 'QXKX', like Q5KM.

If you want to get more into the weeds, you can check out this extremely useful feature chart:

llama.cpp feature matrix

But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQXX, like IQ3M. These are newer and offer better performance for their size.

These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

The I-quants are not compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.

Credits

Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.

Thank you ZeroWw for the inspiration to experiment with embed/output.

📂 GGUF File List

📁 Filename 📦 Size ⚡ Download
cohere-r7b-arabic-02-2025-Q8_0.gguf
Recommended LFS Q8
7.95 GB Download
cohere-r7b-arabic-02-2025-f16.gguf
LFS FP16
14.96 GB Download