Downloads ยท 30 days
1K
4% of all-time downloads
MBZUAI-Paris/Atlas-Chat-9B
Atlas-Chat-9B is a text generation model from MBZUAI-Paris. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
Atlas-Chat is a family of open models instruction-tuned for Darija, the colloquial Arabic of Morocco, developed as part of the Jais project for standard Arabic and its extentions to dialectal Arabic. These models areโฆ
Downloads ยท 30 days
1K
4% of all-time downloads
All-time downloads
23.6K
Public
Parameters
9.2B
37 GB on disk
Likes
30
Public
Click a slice to open those files.
.safetensors18.5 GB ยท 100%
From the Hugging Face model README
Atlas-Chat is a family of open models instruction-tuned for Darija, the colloquial Arabic of Morocco, developed as part of the Jais project for standard Arabic and its extentions to dialectal Arabic. These models are designed for language generation and excel in various applications such as question answering, summarization, and translation. Thanks to their compact size, Atlas-Chat models can be deployed in resource-constrained environments like laptops, desktops, or personal cloud setups, making advanced AI accessible to Darija speakers and promoting widespread innovation. Three sizes are available:
The models are designed to assist with:
Paper: Atlas-Chat: Adapting Large Language Models for Low-Resource Moroccan Arabic Dialect
The model is developed by MBZUAI France Lab, an AI research center in Paris affiliated with the Mohamed bin Zayed University of Artificial Intelligence (MBZUAI) headquartered in Abu Dhabi.
Below we share some code snippets on how to get quickly started with running the model. First, install the Transformers library with:
pip install -U transformers sentencepiece
Then, copy the snippet from the section that is relevant for your use case.
pipeline APIimport torch
from transformers import pipeline
pipe = pipeline(
"text-generation",
model="MBZUAI-Paris/Atlas-Chat-9B",
model_kwargs={"torch_dtype": torch.bfloat16},
device="cuda" # replace with "mps" to run on a Mac device
)
messages = [
{"role": "user", "content": 'ุดููู ูู ุตูุนูุ'},
]
outputs = pipe(messages, max_new_tokens=256, temperature=0.0)
assistant_response = outputs[0]["generated_text"][-1]["content"].strip()
print(assistant_response)
ุตูุนุงุชูู ุฌุงู ุนุฉ ู ุญู ุฏ ุจู ุฒุงูุฏ ููุฐูุงุก ุงูุงุตุทูุงุนูุ ูู ูู ุฌุงู ุนุฉ ุจุญุซูุฉ ุฏูุงู ุงูุฏุฑุงุณุงุช ุงูุนููุง ุงููุฏู ุฏูุงููุง ุฃููุง ุชุฒูุฏ ุจุงูุฐูุงุก ุงูุงุตุทูุงุนู ููุฏูุงู ูุชููุน ุจูู ุงูุฅูุณุงููุฉ. ูู ูู ููู ุชุฒูุฑ https://mbzuai.ac.ae/ar/about/ ุจุงุด ุชุนุฑู ูุซุฑ ุนูู ุฌุงู ุนุฉ ู ุญู ุฏ ุจู ุฒุงูุฏ ููุฐูุงุก ุงูุงุตุทูุงุนู ูุงูู ูู ุฉ ุฏูุงููุง!
pip install accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "MBZUAI-Paris/Atlas-Chat-9B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype=torch.bfloat16,
)
messages = [
{"role": "user", "content": "ุดูู ููุชุณู
ู ุงูู
ูุชุฎุจ ุงูู
ุบุฑุจู ุ"},
]
input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, , add_generation_prompt=True)
outputs = model.generate(**input_ids, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))
<!-- You can ensure the correct chat template is applied by using `tokenizer.apply_chat_template` as follows: ```python from transformers import AutoTokenizer, AutoModelForCausalLM import torch model_id = "MBZUAI-Paris/Atlas-Chat-9B" tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained( model_id, device_map="auto", torch_dtype=torch.bfloat16, ) messages = [ {"role": "user", "content": "ุดูู ููุง ุงูุฅูุฌุงุจูุงุช ุฏูุงู ุงูุทุงูุฉ ุงูู ุชุฌุฏุฏุฉุ"}, ] input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, add_generation_prompt=True) outputs = model.generate(**input_ids, max_new_tokens=256, temperature=0.0) print(tokenizer.decode(outputs[0])) ``` - Response: ```text <bos><start_of_turn>user ุดูู ููุง ุงูุฅูุฌุงุจูุงุช ุฏูุงู ุงูุทุงูุฉ ุงูู ุชุฌุฏุฏุฉุ<end_of_turn> <start_of_turn>model ุงูุทุงูุฉ ุงูู ุชุฌุฏุฏุฉ ุนูุฏูุง ุจุฒุงู ุฏูุงู ุงูุฅูุฌุงุจูุงุชุ ู ููุง: 1. ุงูุงุณุชุฏุงู ุฉ: ู ุตุงุฏุฑ ุงูุทุงูุฉ ุงูู ุชุฌุฏุฏุฉ ุจุญุงู ุงูุฑูุญุ ุงูุดู ุณุ ูุงูุทุงูุฉ ุงูููุฑูู ุงุฆูุฉ ููุชุฌุฏุฏู ุจุดูู ุทุจูุนูุ ูุนูู ู ุง ุบุงุฏูุด ูููุฏู ู ุน ุงูููุช. ูุงุฏ ุงูุดู ููุฎูููู ู ุตุฏุฑ ุทุงูุฉ ู ุณุชุฏุงู ุงููู ู ู ูู ูุนุชู ุฏู ุนููู ุนูู ุงูู ุฏู ุงูุทููู. 2. ุชูููู ุงูุจุนุงุซุงุช ุงููุฑุจูู: ู ุตุงุฏุฑ ุงูุทุงูุฉ ุงูู ุชุฌุฏุฏุฉ ุนู ูู ุงู ุนูุฏูุง ุงูุจุนุงุซุงุช ูุฑุจูููุฉ ุฃูู ู ู ุงููููุฏ ุงูุฃุญููุฑูุ ููุงุฏ ุงูุดู ููุณุงุนุฏ ูุงูุชุฎููู ู ู ุงูุชุบูุฑ ุงูู ูุงุฎู ูุชูููู ุชููุซ ุงูููุงุก. 3. ุงูุงุณุชููุงู ุงูุทุงูู: ู ุตุงุฏุฑ ุงูุทุงูุฉ ุงูู ุชุฌุฏุฏุฉ ู ู ูู ูุณุชุนู ูููุง ุจุงุด ููููู ู ู ุงูุงุนุชู ุงุฏ ุนูู ุงููููุฏ ุงูุฃุญููุฑู ุงูู ุณุชูุฑุฏุ ููุงุฏ ุงูุดู ููุฒูุฏ ู ู ุงูุงุณุชููุงู ุงูุทุงูู ูููููู ู ู ุฎุทุฑ ุงูุชูุทูุน. 4. ุฎูู ูุฑุต ุงูุดุบู: ุตูุงุนุฉ ุงูุทุงูุฉ ุงูู ุชุฌุฏุฏุฉ ูุชุฎูู ูุฑุต ุดุบู ูู ุฌุงูุงุช ุจุญุงู ุชุฑููุจ ุงูุฃููุงุญ ุงูุดู ุณูุฉุ ุตูุงูุฉ ุชูุฑุจููุงุช ุงูุฑูุงุญุ ูุจูุงุก ู ุญุทุงุช ``` -->ุงูู ูุชุฎุจ ุงูู ุบุฑุจู ููุชุณู ู ุฃูุถุง "ุฃุณูุฏ ุงูุฃุทูุณ"
bitsandbytespip install bitsandbytes accelerate
# pip install bitsandbytes accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
model_id = "MBZUAI-Paris/Atlas-Chat-9B"
quantization_config = BitsAndBytesConfig(load_in_8bit=True)
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
quantization_config=quantization_config,
)
text = f"""
ุดุฑุญ ููุง ูุงุฏ ุงููุถุฑุฉ:
ูู ุงููุฑู 19 ููุงู ุงูุฐููุจ ูู ูุงููููุฑููุงุ ูุงุถู ููู ููุจูุนู ุงูุนุชูุฉ ูุงููุงุณ ููููุนู ุงููุงุณ ุจูู ุบูุฏูุฑู ูุงุจุงุณ ููุง ููุจู ุนูู ุงูุฐูุจ... ูุงูุฃุฎูุฑ ุงุบุชูู ุชุฌุงุฑ ุฃุฏูุงุช ุงูุชูููุจ ูุงูุญูุฑ. ูุญุงููุง ูุงูู ููู ููููุน ุงูุฃุฎุฑูู ุจูู ูู ู
ูููููุฑุ ูุนูุฏู ุงูููุช ููุฑูู ููุขุฎุฑูู ูููุงุด ูุฏูุฑู ูุงุจุงุณ.
"""
messages = [
{"role": "user", "content": text},
]
input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True).to("cuda")
outputs = model.generate(**input_ids, max_new_tokens=256)
print(tokenizer.decode(outputs[0]).split("<start_of_turn>model")[-1])
</details> <details> <summary> Using 4-bit precision </summary>ูุงุฏ ุงููุถุฑุฉ ูุชูุถุฑ ุนูู ูุตุฉ ูุฏูู ุฉ ู ู ุงููุฑู 19 ููู ุชูุชุดู ุงูุฐูุจ ููุงููููุฑููุง. ูุงุฏ ุงูุดู ุฎูู ุญุงูุฉ ุฏูุงู ุงูุฌููู ุนูู ุงูุฐูุจุ ููู ุจุฒุงู ุฏูุงู ุงููุงุณ ู ุดุงู ูุชู ุง ุจุงุด ูููุจู ุนููู. ูุงูู ุญุชู ูุงุณ ุงููู ูุงูู ููุจูุนู ุฃุฏูุงุช ุงูุชูููุจ ุจุญุงู ุงููุงุณ ูุงูุนุชูุฉุ ููุงูู ููููุนู ุงููุงุณ ุจูู ุบุงุฏู ูุฑุจุญู ุงููููุณ ุฅูุง ู ุดุงู ูููุจู ุนูู ุงูุฐูุจ. ูุงูููุงูุฉุ ูุงุฏูู ุงููู ูุงูู ููุจูุนู ูุงุฏ ุงูุฃุฏูุงุช ููู ุง ุงููู ุฑุจุญู ุจุฒุงูุ ุญูุช ูุงูู ููุฑุจุญู ู ู ูู ูุงุญุฏ ุงููู ูุงู ููุดุฑู ู ููู .
ูุงุฏ ุงููุตุฉ ูุชุดุจู ููู ูุงููุฉ ุฏุงุจุงุ ููู ูุงูููู ูุงุณ ุงููู ููุฏุนูู ุจูู ููู ุง ู ูููููุฑ ูููุจูุนู ูุตุงุฆุญ ุนูู ูููุงุด ุชุฑุจุญ ุงููููุณ. ุจุญุงู ูุงุฏูู ุงููู ูุงูู ููุจูุนู ุงูุฃุฏูุงุช ูุงูู ุงุถูุ ุญุชู ูุงุฏ ุงููุงุณ ููุฑุจุญู ู ู ูุงุฏ ุงูุดูุ ุญูุช ููุงุฎุฏู ุงููููุณ ู ู ุงููุงุณ ุงููู ููุดุฑูู ู ููู ุงููุตุงุฆุญ ุฏูุงููู .
# pip install bitsandbytes accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
model_id = "MBZUAI-Paris/Atlas-Chat-9B"
quantization_config = BitsAndBytesConfig(load_in_4bit=True)
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
quantization_config=quantization_config,
)
text = f"""ุชุฑุฌู
ููุฏุงุฑุฌุฉ:
Atlas Chat is the first open source large language model that talks in Darija.
"""
messages = [
{"role": "user", "content": text},
]
input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, add_generation_prompt=True)
outputs = model.generate(**input_ids, max_new_tokens=256, temperature=0.0)
print(tokenizer.decode(outputs[0]).split("<start_of_turn>model")[-1])
</details>ุฃุทููุงุณ ุดุงุช ูู ุฃูู ูู ูุฐุฌ ูุบูู ูุจูุฑ ู ูุชูุญ ุงูู ุตุฏุฑ ูุงููุถุฑ ุจุงูุฏุงุฑุฌุฉ.
The models use a chat template that must be adhered to conversational use. The easiest way to apply it is using the tokenizer's built-in chat template, as shown in the following snippet.
Let's load the model and apply the chat template to a conversation. In this example, we'll start with a single user interaction:
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch
model_id = "MBZUAI-Paris/Atlas-Chat-9B"
dtype = torch.bfloat16
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="cuda",
torch_dtype=dtype,)
chat = [
{ "role": "user", "content": "ุฃุดูู ูุงูู
ููุฒ ุงูู
ู
ููุฉ ุงูู
ุบุฑุจูุฉ." },
]
prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
At this point, the prompt contains the following text:
<bos><start_of_turn>user
ุฃุดูู ูุงูู
ููุฒ ุงูู
ู
ููุฉ ุงูู
ุบุฑุจูุฉ.<end_of_turn>
<start_of_turn>model
As you can see, each turn is preceded by a <start_of_turn> delimiter and then the role of the entity
(either user, for content supplied by the user, or model for LLM responses). Turns finish with
the <end_of_turn> token.
You can follow this format to build the prompt manually, if you need to do it without the tokenizer's chat template.
After the prompt is ready, generation can be performed like this:
inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=512)
print(tokenizer.decode(outputs[0]))
ุงูู ุบุฑุจ ูุงูู ูุฒู ุจุฒุงู ุฏูุงู ุงูุญูุงูุฌุ ู ููู :
ุงูุชููุน ุงูุซูุงูู: ุงูู ุบุฑุจ ุจูุงุฏ ูููุง ุจุฒุงู ุฏูุงู ุงูุซูุงูุงุชุ ูู ูุญุฏุฉ ูููู ุนูุฏูุง ุงูุชูุงููุฏ ุฏูุงููุง ูุงููุบุฉ ุฏูุงููุง ูุงูู ุงููุฉ ุฏูุงููุง. ูุงุฏ ุงูุชููุน ูุงูุจุงู ูุงูู ูุณููู ูุงูุฑูุต ูุงููููู ุงูุชูููุฏูุฉ.
ุงูุชุฑุงุซ ุงูุชุงุฑูุฎู: ุงูู ุบุฑุจ ุนูุฏู ุชุงุฑูุฎ ุบูู ูุงูู ุชุฏ ูุขูุงู ุงูุณูููุ ููู ุญุถุงุฑุงุช ูุฏูู ุฉ ุจุญุงู ู ู ููุฉ ู ูุฑูุทุงููุงุ ูุงูุฑูู ุงูุ ูุงูุจูุฒูุทูููุ ูุงููุชูุญุงุช ุงูุฅุณูุงู ูุฉ. ูุงุฏ ุงูุชุฑุงุซ ูุงูุจุงู ูุงูู ุนุงูู ุงูุชุงุฑูุฎูุฉ ุจุญุงู ู ุฏููุฉ ูุงุณุ ูุงูู ุฏููุฉ ุงููุฏูู ุฉ ุฏูุงู ู ุฑุงูุดุ ูุงูู ุฏููุฉ ุงููุฏูู ุฉ ุฏูุงู ุดูุดุงูู.
ุงูู ูุงุธุฑ ุงูุทุจูุนูุฉ: ุงูู ุบุฑุจ ุจูุงุฏ ูููุง ู ูุงุธุฑ ุทุจูุนูุฉ ู ุชููุนุฉุ ู ู ุงูุณูุงุญู ุงูุฒุฑูุฉ ูุงูุตุญุงุฑู ุงููุจูุฑุฉุ ููุฌุจุงู ุงูุนุงููุฉ ูุงููุฏูุงู ุงูุฎุถุฑุงุก. ูุงุฏ ุงูุชููุน ูุงูู ููู ู ู ู ู ุงุฑุณุฉ ุฃูุดุทุฉ ุฎุงุฑุฌูุฉ ุจุญุงู ุงูู ุดู ูู ุณุงูุงุช ุทูููุฉุ ูุงูุชุฎููู ุ ูุงูุฑูุงุถุงุช ุงูู ุงุฆูุฉ.
ุงูู ุงููุฉ: ุงูู ุงููุฉ ุงูู ุบุฑุจูุฉ ู ุนุฑููุฉ ุจุงูุชููุน ุฏูุงููุง ูุงูุทุนู ุฏูุงููุง. ู ู ุจูู ุงูุฃุทุจุงู ุงูุฃูุซุฑ ุดุนุจูุฉ ูุงูู ุงูุทุงุฌููุ ูุงููุณูุณุ ูุงูุจุฑููุงุชุ ูุงููููุชูู ุฏูุงู ุงูููุงูู.
ุงููุงุณ: ุงูู ุบุงุฑุจุฉ ู ุนุฑูููู ุจุงูุถูุงูุฉ ุฏูุงููู ูุงูุชุฑุญุงุจ ุฏูุงููู . ูุงููููู ูุฑุญุงููู ุจุงุด ูุดุงุฑูู ุงูุซูุงูุฉ ูุงูุชูุงููุฏ ุฏูุงููู ู ุน ุงูุฒูุงุฑ.
You can also use Ollama and chatbot-ollama to create a chatbot user-interface to better test the model. First you need to install Ollama on your machine from here and have node.js installed as well. Then, download and prepare the model as follows:
huggingface-cli download MBZUAI-Paris/Atlas-Chat-9B --local-dir Atlas-Chat-9B/
ollama create Atlas-Chat-9B -f Atlas-Chat-9B/modelfile
ollama serve
Finally, in a new terminal clone chatbot-ollama repository from Github and run it:
git clone https://github.com/ivanfioravanti/chatbot-ollama.git
cd chatbot-ollama
npm ci
npm run dev
You can start chatting with the model by visiting http://localhost:3000.
If you use Atlas-Chat in your research, please cite our paper:
@article{shang2024atlaschatadaptinglargelanguage,
title={Atlas-Chat: Adapting Large Language Models for Low-Resource Moroccan Arabic Dialect},
author={Guokan Shang and Hadi Abdine and Yousef Khoubrane and Amr Mohamed and Yassine Abbahaddou and Sofiane Ennadir and Imane Momayiz and Xuguang Ren and Eric Moulines and Preslav Nakov and Michalis Vazirgiannis and Eric Xing},
year={2024},
eprint={2409.17912},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2409.17912},
}
The model was trained on diverse datasets focusing on Darija consisting for approximatley 450k instructions of a maximum length of 2048 tokens, including:
Our training dataset Darija-SFT-Mixture is publicly available.
Atlas-Chat models are based on Gemma 2 models. The Atlas-Chat models were trained using 8 Nvidia's A100 80 GB GPUs in parallel using FSDP on AWS Sagemaker. The model is trained using HuggingFace transformers and parameter-efficient fine-tuning with LoRA rank of 256.
The Atlas-Chat models were evaluated on a comprehensive suite of tasks using various datasets and benchmarks to assess their performance across multiple dimensions. These included tasks such as:
The models were compared against a collection of existing open-source Arabic models to gauge their effectiveness, with a particular focus on performance in Darija. All scores are based on zero-shot performance. The prompts are written mainly in Darija. The metric used for DarijaMMLU, DarijaHellaSwag, Belebele Ary and Sentiment Analysis is the normalized accuracy. We used Language Model Evaluation Harness to conduct these evaluations.
LLMs Benchmarks:
<table> <tr> <td>Model</td> <td><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaMMLU" target="_blank">DarijaMMLU</a></td> <td><a href="MBZUAI-Paris/DarijaHellaSwag" target="_blank">DarijaHellaSwag</a></td> <td ><a href="https://huggingface.co/datasets/facebook/belebele/viewer/ary_Arab" target="_blank">Belebele Ary</a></td> <td ><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaAlpacaEval" target="_blank">DarijaAlpacaEval</a></td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-1p3b-chat" target="_blank">jais-family-1p3b-chat</a></td> <td>35.39</td> <td>27.71</td> <td>38.33</td> <td>35.56</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-2p7b-chat" target="_blank">jais-family-2p7b-chat</a></td> <td>37.44</td> <td>29.10</td> <td>44.11</td> <td>52.97</td> </tr> <tr> <td><a href="https://huggingface.co/google/gemma-2-2b-it" target="_blank">gemma-2-2b-it</a></td> <td>28.58</td> <td>32.42</td> <td>25.22</td> <td>58.67</td> </tr> <tr> <td><a href="meta-llama/Llama-3.2-1B-Instruct" target="_blank">Llama-3.2-1B-Instruct</a></td> <td>27.66</td> <td>26.88</td> <td>28.89</td> <td>23.57</td> </tr> <tr> <td><a href="meta-llama/Llama-3.2-3B-Instruct" target="_blank">Llama-3.2-3B-Instruct</a></td> <td>32.60</td> <td>28.33</td> <td>38.00</td> <td>47.62</td> </tr> <tr> <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-2B" target="_blank">Atlas-Chat-2B</a></strong></td> <td><b>44.97</b></td> <td><b>35.08</b></td> <td><b>53.89</b></td> <td><b>92.31</b></td> </tr> <tr style="border-top: 4px solid;"></tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-6p7b-chat" target="_blank">jais-family-6p7b-chat</a></td> <td>39.96</td> <td>32.64</td> <td>51.22</td> <td>65.18</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-adapted-7b-chat" target="_blank">jais-adapted-7b-chat</a></td> <td>39.30</td> <td>29.55</td> <td>43.67</td> <td>61.84</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-13b-chat" target="_blank">jais-family-13b-chat</a></td> <td>45.11</td> <td>33.98</td> <td>58.67</td> <td>69.93</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-adapted-13b-chat" target="_blank">jais-adapted-13b-chat</a></td> <td>45.20</td> <td>32.84</td> <td>49.67</td> <td>77.52</td> </tr> <tr> <td><a href="https://huggingface.co/FreedomIntelligence/AceGPT-7B-chat" target="_blank">AceGPT-7b-chat</a></td> <td>35.98</td> <td>30.33</td> <td>30.11</td> <td>47.31</td> </tr> <tr> <td><a href="https://huggingface.co/FreedomIntelligence/AceGPT-13B-chat" target="_blank">AceGPT-13b-chat</a></td> <td>41.09</td> <td>38.35</td> <td>33.11</td> <td>52.79</td> </tr> <tr> <td><a href="https://huggingface.co/google/gemma-2-9b-it" target="_blank">gemma-2-9b-it</a></td> <td>35.91</td> <td>32.19</td> <td>31.00</td> <td>90.86</td> </tr> <tr> <td><a href="meta-llama/Meta-Llama-3.1-8B-Instruct" target="_blank">Llama-3.1-8B-Instruct</a></td> <td>44.13</td> <td>31.40</td> <td>47.00</td> <td>78.08</td> </tr> <tr> <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-9B" target="_blank">Atlas-Chat-9B</a></strong></td> <td><b>58.23</b></td> <td><b>43.65</b></td> <td><b>74.56</b></td> <td><b>95.62</b></td> </tr> <tr style="border-top: 4px solid;"></tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-30b-8k-chat" target="_blank">jais-family-30b-8k-chat</a></td> <td>51.88</td> <td>35.61</td> <td>65.67</td> <td>24.64</td> </tr> <tr> <td><a href="https://huggingface.co/google/gemma-2-27b-it" target="_blank">gemma-2-27b-it</a></td> <td>36.47</td> <td>37.04</td> <td>35.78</td> <td>95.07</td> </tr> <tr> <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-27B" target="_blank">Atlas-Chat-27B</a></strong></td> <td><b>61.95</b></td> <td><b>48.37</b></td> <td><b>75.67</b></td> <td><b>96.58</b></td> </tr> </table>Standard NLP Tasks:
<table> <tr> <td rowspan="2">Model</td> <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">DODa-10k (Translation)</a></td> <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">MADAR (Translation)</a></td> <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">FLORES+ (Translation)</a></td> <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">NLLB-Seed (Translation)</a></td> <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">DODa-10k (Transliteration)</a></td> <td rowspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">MArSum (Summarization)</a><br/>(LLM as a judge)</td> <td rowspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">Sentiment Analysis</a></td> </tr> <tr> <td>BLEU</td> <td>chrF</td> <td>BLEU</td> <td>chrF</td> <td>BLEU</td> <td>chrF</td> <td>BLEU</td> <td>chrF</td> <td>BLEU</td> <td>chrF</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-1p3b-chat" target="_blank">jais-family-1p3b-chat</a></td> <td>00.13</td> <td>06.18</td> <td>00.50</td> <td>15.43</td> <td>02.44</td> <td>19.14</td> <td>01.99</td> <td>12.60</td> <td>00.01</td> <td>03.01</td> <td>00.50</td> <td>45.29</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-2p7b-chat" target="_blank">jais-family-2p7b-chat</a></td> <td>00.25</td> <td>07.46</td> <td>00.62</td> <td>16.36</td> <td>04.25</td> <td>18.22</td> <td>03.10</td> <td>08.19</td> <td>00.01</td> <td>03.27</td> <td>00.90</td> <td>51.56</td> </tr> <tr> <td><a href="https://huggingface.co/google/gemma-2-2b-it" target="_blank">gemma-2-2b-it</a></td> <td>00.10</td> <td>04.96</td> <td>00.12</td> <td>06.66</td> <td>01.55</td> <td>18.59</td> <td>02.78</td> <td>23.69</td> <td>00.01</td> <td>02.08</td> <td>06.80</td> <td>53.36</td> </tr> <tr> <td><a href="meta-llama/Llama-3.2-1B-Instruct" target="_blank">Llama-3.2-1B-Instruct</a></td> <td>00.07</td> <td>05.95</td> <td>00.80</td> <td>18.71</td> <td>04.53</td> <td>18.39</td> <td>04.52</td> <td>17.06</td> <td>00.02</td> <td>03.74</td> <td>08.23</td> <td>46.27</td> </tr> <tr> <td><a href="meta-llama/Llama-3.2-3B-Instruct" target="_blank">Llama-3.2-3B-Instruct</a></td> <td>00.62</td> <td>13.67</td> <td>01.18</td> <td>22.12</td> <td>08.59</td> <td>35.21</td> <td>13.75</td> <td>43.63</td> <td>00.21</td> <td>09.68</td> <td>08.23</td> <td>49.20</td> </tr> <tr> <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-2B" target="_blank">Atlas-Chat-2B</a></strong></td> <td><b>22.76</td> <td><b>44.86</td> <td><b>16.67</td> <td><b>41.64</td> <td><b>14.92</td> <td><b>43.03</td> <td><b>23.88</td> <td><b>52.19</td> <td><b>08.18</td> <td><b>21.54</td> <td><b>55.22</td> <td><b>73.99</td> </tr> <tr style="border-top: 4px solid;"></tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-6p7b-chat" target="_blank">jais-family-6p7b-chat</a></td> <td>00.73</td> <td>11.85</td> <td>01.88</td> <td>23.22</td> <td>04.25</td> <td>18.22</td> <td>04.62</td> <td>20.22</td> <td>00.02</td> <td>03.79</td> <td>03.02</td> <td>56.78</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-adapted-7b-chat" target="_blank">jais-adapted-7b-chat</a></td> <td>00.60</td> <td>09.43</td> <td>03.45</td> <td>25.88</td> <td>07.25</td> <td>23.21</td> <td>01.25</td> <td>02.22</td> <td>00.04</td> <td>03.24</td> <td>02.82</td> <td>52.72</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-13b-chat" target="_blank">jais-family-13b-chat</a></td> <td>00.92</td> <td>11.71</td> <td>04.01</td> <td>28.48</td> <td>05.70</td> <td>27.24</td> <td>04.50</td> <td>22.56</td> <td>00.03</td> <td>03.57</td> <td>01.77</td> <td>41.73</td> </tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-adapted-13b-chat" target="_blank">jais-adapted-13b-chat</a></td> <td>00.87</td> <td>10.52</td> <td>04.02</td> <td>25.29</td> <td>06.66</td> <td>23.46</td> <td>20.14</td> <td>47.87</td> <td>0.04</td> <td>04.77</td> <td>01.92</td> <td>66.68</td> </tr> <tr> <td><a href="https://huggingface.co/FreedomIntelligence/AceGPT-7B-chat" target="_blank">AceGPT-7b-chat</a></td> <td>00.44</td> <td>11.33</td> <td>01.05</td> <td>19.24</td> <td>06.92</td> <td>36.03</td> <td>11.05</td> <td>44.55</td> <td>00.06</td> <td>04.74</td> <td>02.28</td> <td>40.23</td> </tr> <tr> <td><a href="https://huggingface.co/FreedomIntelligence/AceGPT-13B-chat" target="_blank">AceGPT-13b-chat</a></td> <td>00.98</td> <td>16.70</td> <td>00.81</td> <td>20.23</td> <td>08.73</td> <td>40.76</td> <td>14.02</td> <td>48.28</td> <td>00.12</td> <td>06.32</td> <td>02.80</td> <td>59.58</td> </tr> <tr> <td><a href="https://huggingface.co/google/gemma-2-9b-it" target="_blank">gemma-2-9b-it</a></td> <td>03.10</td> <td>19.16</td> <td>01.72</td> <td>24.35</td> <td>05.18</td> <td>36.96</td> <td>08.23</td> <td>43.57</td> <td>00.17</td> <td>09.14</td> <td>13.81</td> <td>59.87</td> </tr> <tr> <td><a href="meta-llama/Meta-Llama-3.1-8B-Instruct" target="_blank">Llama-3.1-8B-Instruct</a></td> <td>00.92</td> <td>14.19</td> <td>01.46</td> <td>23.82</td> <td>08.89</td> <td>33.08</td> <td>11.85</td> <td>35.51</td> <td>00.11</td> <td>06.02</td> <td>16.14</td> <td>44.08</td> </tr> <tr> <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-9B" target="_blank">Atlas-Chat-9B</a></strong></td> <td><b>28.08</td> <td><b>50.48</td> <td><b>18.16</td> <td><b>43.91</td> <td><b>18.63</td> <td><b>47.53</td> <td><b>29.98</td> <td><b>58.26</td> <td><b>22.08</td> <td><b>34.17</td> <td><b>59.76</td> <td><b>81.89</td> </tr> <tr style="border-top: 4px solid;"></tr> <tr> <td><a href="https://huggingface.co/inceptionai/jais-family-30b-8k-chat" target="_blank">jais-family-30b-8k-chat</a></td> <td>01.10</td> <td>14.40</td> <td>01.67</td> <td>23.37</td> <td>08.52</td> <td>35.41</td> <td>13.71</td> <td>41.33</td> <td>00.05</td> <td>04.48</td> <td>00.46</td> <td>56.73</td> </tr> <tr> <td><a href="https://huggingface.co/google/gemma-2-27b-it" target="_blank">gemma-2-27b-it</a></td> <td>00.67</td> <td>13.04</td> <td>01.74</td> <td>24.63</td> <td>05.17</td> <td>37.08</td> <td>07.36</td> <td>42.49</td> <td>00.03</td> <td>04.94</td> <td>11.10</td> <td>57.59</td> </tr> <tr> <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-27B" target="_blank">Atlas-Chat-27B</a></strong></td> <td><b>29.55</td> <td><b>51.74</td> <td><b>19.66</td> <td><b>45.65</td> <td><b>20.34</td> <td><b>49.19</td> <td><b>31.61</td> <td><b>59.37</td> <td><b>33.03</td> <td><b>40.95</td> <td><b>60.70</td> <td>73.00</td> </tr> </table>These models have certain limitations that users should be aware of.
<details> <summary>Intended Usage</summary>Open Large Language Models (LLMs) have a wide range of applications across various industries and domains. The following list of potential uses is not comprehensive. The purpose of this list is to provide contextual information about the possible use-cases that the model creators considered as part of model training and development.
The development of large language models (LLMs) raises several ethical concerns. In creating an open model, we have carefully considered the following:
Risks identified and mitigations:
We would like to express our gratitude to the following institutions for their contributions to this work: รcole Polytechnique, LINAGORA and KTH Royal Institute of Technology. Additionally, we extend our thanks to the AtlasIA community.