← back to catalog · registered 2026-08-22 13:56

Faisalkh/command-r7b-arabic-heretic-abliterated

Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/Faisalkh%2Fcommand-r7b-arabic-heretic-abliterated"
Response includes
  • classification m3
  • files 15
  • hub_downloads_all_time 236
  • author_summary 2 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M3
Primary method

Layer-wise ablation

Applied on top of direct removal inherited from the base model.
Confidence
HIGH
Inherited from base model
Why this label 2 signals
Producer identity confirmed by naming conventions, tags or the model card. This label is very unlikely to change.
  • 'heretic' in model name (Heretic-produced)
  • Heretic uses layer-wise optimization (M3) with underlying direction removal (M1)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
HIGH
Why we say so
name contains 'heretic'; Heretic default extraction is difference-of-means (Arditi 2024)
Downloads · lifetime
236
37 last 30d - stable
Likes
0
Descendants
1
in 1 direct fork
Model age
7mo ago
created 2026-03-11
Downloads over time
Now249→from35↑611%
2410618827035 on Mar 11249 on Oct 11MarAprMayJunJulAugSepOct
Mar 11 → Oct 11 · 70 snapshots · spans 214 days

Genealogy 1 direct fork

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Variants by this author 2 formats · 536 downloads combined

The same weights this author released in different packaging. Pick the format that matches your runtime.

Metadata

Languages
en fr de es it pt ja ko zh ar el fa pl id cs he hi nl ro ru tr uk vi
Tags
transformers safetensors cohere2 text-generation heretic uncensored decensored abliterated conversational en fr de

Related

Total size
15.0 GB
Files
15
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-03-11 01:26

Files by quantization

Auxiliary files 15 files 15.0 GB
model-00003-of-00004.safetensors 4.66 GB 91191f88 download
model-00002-of-00004.safetensors 4.58 GB 846f35bd download
model-00001-of-00004.safetensors 4.58 GB 67589a87 download
model-00004-of-00004.safetensors 1.14 GB 246d7931 download
tokenizer.json 19.2 MB 0d8fc75b download
model.safetensors.index.json 20.8 KB 7e35688c download
chat_template.jinja 12.7 KB 86fecebf download
README.md 11.7 KB 4a351245 download
additional_chat_templates\rag.jinja 11.3 KB ed97143e download
additional_chat_templates\tool_use.jinja 11.3 KB 28017176 download
tokenizer_config.json 8.30 KB c2716074 download
config.json 1.85 KB c6dc17b7 download
.gitattributes 1.53 KB 52373fe2 download
special_tokens_map.json 698 B 91568c1f download
generation_config.json 144 B ce067e2b download

README current version from Hugging Face


inference: false
library_name: transformers
language:

  • en
  • fr
  • de
  • es
  • it
  • pt
  • ja
  • ko
  • zh
  • ar
  • el
  • fa
  • pl
  • id
  • cs
  • he
  • hi
  • nl
  • ro
  • ru
  • tr
  • uk
  • vi
    license: cc-by-nc-4.0
    extra_gated_prompt: 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 Cohere Labs and Cohere research, events, products and
    services. You can unsubscribe at any time.
    extra_gated_fields:
    Name: text
    Affiliation: text
    Country: country
    I agree to use this model for non-commercial use ONLY: checkbox
    tags:
  • heretic
  • uncensored
  • decensored
  • abliterated

This is a decensored version of CohereLabs/c4ai-command-r7b-arabic-02-2025, made using Heretic v1.2.0

Abliteration parameters

Parameter Value
direction_index 17.65
attn.o_proj.max_weight 1.47
attn.o_proj.max_weight_position 19.49
attn.o_proj.min_weight 1.37
attn.o_proj.min_weight_distance 11.23
mlp.down_proj.max_weight 1.36
mlp.down_proj.max_weight_position 21.51
mlp.down_proj.min_weight 0.59
mlp.down_proj.min_weight_distance 7.45

Performance

Metric This model Original model (CohereLabs/c4ai-command-r7b-arabic-02-2025)
KL divergence 0.0482 0 (by definition)
Refusals 7/100 99/100

Model Card for Cohere Labs Command R7B Arabic

Model Summary

Cohere Labs Command R7B Arabic is an open weights research release of a 7 billion parameter custom model with advanced capabilities optimized for the Arabic language (MSA dialect) along with English. The model excels at tasks that enterprises care about: instruction following, length control, RAG, and responding in the correct language. It also demonstrates excellent general purpose knowledge and understanding of Arabic language and cultures.

Developed by Cohere and Cohere Labs.

  • Point of Contact: Cohere Labs
  • License: CC-BY-NC, requires also adhering to Cohere Lab's Acceptable Use Policy
  • Model: c4ai-command-r7b-arabic-02-2025
  • Model Size: ~8 billion parameters (7 billion transformer parameters + 1 billion embedding parameters)
  • Context length: 128K

Model Performance

Cohere Labs Command R7B Arabic excels on standardized and externally verifiable Arabic language benchmarks such as AlGhafa-Native, Arabic MMLU, instruction following (IFEval Arabic), and RAG (TyDi QA Arabic and FaithEval Arabic*).

Model C4AI Command R7B Arabic Command R7B Gemma 9B Llama 3.1 8B Qwen 2.5 7B Ministral 8B
Average 69.3 65.8 67.0 58.4 62.9 52.5
AlGhafa-Native 82.2 81.5 81.3 80.1 80.2 76.6
Arabic MMLU 60.9 59.7 62.4 56.6 61.2 53.6
IFEval AR 69.0 57.8 67.8 48.4 62.4 49.3
TyDI QA Arabic 83.0 79.9 76.4 65.9 60.9 57.7
FaithEval Arabic* 51.6 49.9 47.0 40.9 49.9 25.5

* FaithEval Arabic has been professionally translated from English to Arabic based on the well-known RAG benchmark (https://github.com/SalesforceAIResearch/FaithEval).

Cohere Labs Command R7B Arabic excels on standardized and externally verifiable benchmarks such as the HuggingFace Open LLM Leaderboard.

C4AI Command R7B Arabic Command R7B Gemma 9B Llama 3.1 8B Qwen 2.5 7B Ministral 8B
Average 31.4 31.6 32.1 28.2 35.2 22.0
IfEval 83.3 77.1 74.4 78.6 75.9 59.0
BBH 36.2 36.0 42.1 29.9 34.9 25.8
MuSR 11.9 10.2 9.7 8.4 8.5 8.4
GPQA 7.9 7.8 14.8 2.4 5.5 4.5
MMLU Pro 29.4 28.6 32.0 30.7 36.5 30.7
MATH* 19.6 29.9 19.1 19.3 50.0 19.6

* The MATH benchmark used in this leaderboard changed in early January due to a DMCA takedown notice for the original benchmark.

Try Command R7B Arabic

You can try out Cohere Labs Command R7B Arabic in our hosted Hugging Face Space before downloading the weights.

Usage

Please install transformers from the source repository that includes the necessary changes for this model.

# pip install 'git+https://github.com/huggingface/transformers.git'
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "CohereLabs/c4ai-command-r7b-arabic-02-2025"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

# Format message with the c4ai-command-r7b-arabic-02-2025 chat template
messages = [{"role": "user", "content": "مرحبا، كيف حالك؟"}]
input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")

gen_tokens = model.generate(
    input_ids, 
    max_new_tokens=100, 
    do_sample=True, 
    temperature=0.3,
)

gen_text = tokenizer.decode(gen_tokens[0])
print(gen_text)

Model Details

Input: Models input text only.

Output: Models generate text only.

Model Architecture: This is an auto-regressive language model that uses an optimized transformer architecture. After pretraining, this model uses supervised fine-tuning (SFT) and preference training to align model behavior to human preferences for helpfulness and safety. The model features three layers with sliding window attention (window size 4096) and ROPE for efficient local context modeling and relative positional encoding. A fourth layer uses global attention without positional embeddings, enabling unrestricted token interactions across the entire sequence.

Languages covered: The model has been trained and evaluated for performance in Arabic and English, but its training data includes samples from other languages.

Context length: Command R7B Arabic supports a context length of 128,000 tokens.

Chat Capabilities:

Command R7B Arabic can be configured as both a conversational and instruct model based on which preamble is supplied.

The conversational mode conditions the model on interactive behavior, meaning it’s expected to reply conversationally, provide introductory statements and follow-up questions, and use Markdown as well as LaTeX where appropriate. It is optimized for interactive experiences, such as chatbots, where the model engages in dialogue.

The instruct mode, by contrast, conditions the model to provide concise yet comprehensive responses and does not use Markdown / LaTeX by default. It is designed for non-interactive, task-focused use cases such as extracting information, summarizing text, translation, and categorization.

Note: Command R7B Arabic is delivered without a system preamble by default, though we encourage you to experiment with the conversational and instruct mode preambles. More information can be found in our docs.

Multilingual RAG Capabilities:

Cohere Labs Command R7B Arabic has been trained specifically for tasks such as the generation step of Retrieval Augmented Generation (RAG) in Arabic and English.

RAG with Cohere Labs Command R7B Arabic is supported through chat templates in Transformers. Using our RAG chat template, the model takes a conversation (with an optional user-supplied system preamble), along with a list of document snippets, as input. The resulting output contains a response with in-line citations.

RAG Example [CLICK TO EXPAND]
# Define conversation input
conversation = [{"role": "user", "content": "اقترح طبقًا يمزج نكهات من عدة دول عربية"}]

# Define documents for retrieval-based generation
documents = [ 
{"heading": "المطبخ العربي: أطباقنا التقليدية", "body": "يشتهر المطبخ العربي بأطباقه الغنية والنكهات الفريدة. في هذا المقال، سنستكشف ..."},
    	{"heading": "وصفة اليوم: مقلوبة", "body": "المقلوبة هي طبق فلسطيني تقليدي، يُحضر من الأرز واللحم أو الدجاج والخضروات. في وصفتنا اليوم ..."} 
]

# Get the RAG prompt
input_prompt = tokenizer.apply_chat_template(conversation=conversation,documents=documents, tokenize=False, add_generation_prompt=True, return_tensors="pt")
# Tokenize the prompt
input_ids = tokenizer.encode_plus(input_prompt, return_tensors="pt")

You can then generate text from this input as usual.

Document snippets should be short chunks, rather than long documents, typically around 100-400 words per chunk, formatted as key-value pairs. The keys should be short descriptive strings, the values can be text or semi-structured.

You may find that simply including relevant documents directly in a user message works just as well or better than using the documents parameter to render the special RAG template. The RAG template is generally a strong default and is ideal for users wanting citations. We encourage users to play with both and evaluate which mode works best for their use case.

Note that this was a very brief introduction to RAG - for more information, see the Cohere Labs Command R7B Arabic prompt format docs and the Transformers RAG documentation.

Model Card Contact

For errors or additional questions about details in this model card, contact [email protected]

Terms of Use:

By releasing the weights of a highly performant 7 billion parameter model, we hope to make community-based research efforts more accessible to researchers all over the world. This model is governed by a CC-BY-NC, requires also adhering to Cohere Lab's Acceptable Use Policy

Try Chat:

You can try Cohere Labs Command R7B Arabic chat in the playground here. You can also use it in our dedicated Hugging Face Space here.

Citation:

@misc{alnumay2025command,
    title={Command R7B Arabic: A Small, Enterprise Focused, Multilingual, and Culturally Aware Arabic LLM},
    author={Yazeed Alnumay and Alexandre Barbet and Anna Bialas and William Darling and Shaan Desai and Joan Devassy and Kyle Duffy and Stephanie Howe and Olivia Lasche and Justin Lee and Anirudh Shrinivason and Jennifer Tracey},
    year={2025},
    eprint={2503.14603},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}

README history 2 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-03-11Upload README.md with huggingface_hub4e8e2b811.5 KB
    Loading...
  2. 2026-03-11Upload Cohere2ForCausalLMf4326885.1 KB
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration