Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
C4AI 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.
C4AI 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 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
: C4AI Command R7B Arabic supports a context length of 128,000 tokens.
Chat Capabilities:
C4AI 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:
C4AI 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:
C4AI 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 C4AI 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 C4AI 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
License with an acceptable use addendum, and also requires adhering to
C4AI's Acceptable Use Policy
.
Try Chat:
You can try C4AI 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}
}
Runs of CohereLabs c4ai-command-r7b-arabic-02-2025 on huggingface.co
1.7K
Total runs
7
24-hour runs
43
3-day runs
51
7-day runs
-64
30-day runs
More Information About c4ai-command-r7b-arabic-02-2025 huggingface.co Model
More c4ai-command-r7b-arabic-02-2025 license Visit here:
c4ai-command-r7b-arabic-02-2025 huggingface.co is an AI model on huggingface.co that provides c4ai-command-r7b-arabic-02-2025's model effect (), which can be used instantly with this CohereLabs c4ai-command-r7b-arabic-02-2025 model. huggingface.co supports a free trial of the c4ai-command-r7b-arabic-02-2025 model, and also provides paid use of the c4ai-command-r7b-arabic-02-2025. Support call c4ai-command-r7b-arabic-02-2025 model through api, including Node.js, Python, http.
c4ai-command-r7b-arabic-02-2025 huggingface.co is an online trial and call api platform, which integrates c4ai-command-r7b-arabic-02-2025's modeling effects, including api services, and provides a free online trial of c4ai-command-r7b-arabic-02-2025, you can try c4ai-command-r7b-arabic-02-2025 online for free by clicking the link below.
CohereLabs c4ai-command-r7b-arabic-02-2025 online free url in huggingface.co:
c4ai-command-r7b-arabic-02-2025 is an open source model from GitHub that offers a free installation service, and any user can find c4ai-command-r7b-arabic-02-2025 on GitHub to install. At the same time, huggingface.co provides the effect of c4ai-command-r7b-arabic-02-2025 install, users can directly use c4ai-command-r7b-arabic-02-2025 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
c4ai-command-r7b-arabic-02-2025 install url in huggingface.co: