habdine commited on
Commit
7cba194
1 Parent(s): 93ff61d

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +774 -3
README.md CHANGED
@@ -1,3 +1,774 @@
1
- ---
2
- license: gemma
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ library_name: transformers
4
+ pipeline_tag: text-generation
5
+ extra_gated_button_content: Acknowledge license
6
+ tags:
7
+ - conversational
8
+ language:
9
+ - ar
10
+ datasets:
11
+ - MBZUAI-Paris/Darija-SFT-Mixture
12
+ base_model:
13
+ - google/gemma-2-9b-it
14
+ ---
15
+
16
+
17
+ # Atlas-Chat Model Card
18
+
19
+
20
+ ## Model Overview
21
+
22
+ Atlas-Chat is a family of open models instruction-tuned for Darija, the colloquial Arabic of Morocco, developed as part of the [Jais](https://arxiv.org/abs/2308.16149) 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:
23
+ * [Atlas-Chat-2B](https://huggingface.co/MBZUAI-Paris/Atlas-Chat-2B): A small-sized version with 2 billion parameters, capable of generating fluent Moroccan Darija text while maintaining efficiency.
24
+ * [Atlas-Chat-9B](https://huggingface.co/MBZUAI-Paris/Atlas-Chat-9B): A medium-sized with 9 billion parameters, providing more nuanced, contextually rich language generation for complex tasks.
25
+ * [Atlas-Chat-27B](https://huggingface.co/MBZUAI-Paris/Atlas-Chat-27B): A large-sized version with 27 billion parameters, offering even more advanced capabilities for complex tasks and nuanced language generation compared to the 2B and 9B versions.
26
+
27
+ The models are designed to assist with:
28
+
29
+ * Conversational agents and chatbots that operate in Darija.
30
+ * Translation, summarization, and content generation in informal dialect.
31
+ * Cultural research related to Morocco and its language.
32
+
33
+ **Paper:** [Atlas-Chat: Adapting Large Language Models for Low-Resource Moroccan Arabic Dialect](https://arxiv.org/abs/2409.17912)
34
+
35
+ ## 👥 Our Team
36
+
37
+ 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)](https://mbzuai.ac.ae/) headquartered in Abu Dhabi.
38
+
39
+
40
+ ## Usage
41
+
42
+ Below we share some code snippets on how to get quickly started with running the model. First, install the Transformers library with:
43
+
44
+ ```sh
45
+ pip install -U transformers sentencepiece
46
+ ```
47
+
48
+ Then, copy the snippet from the section that is relevant for your use case.
49
+
50
+ #### Running with the `pipeline` API
51
+
52
+ ```python
53
+ import torch
54
+ from transformers import pipeline
55
+
56
+ pipe = pipeline(
57
+ "text-generation",
58
+ model="MBZUAI-Paris/Atlas-Chat-27B",
59
+ model_kwargs={"torch_dtype": torch.bfloat16},
60
+ device="cuda" # replace with "mps" to run on a Mac device
61
+ )
62
+
63
+ messages = [
64
+ {"role": "user", "content": 'شكون لي صنعك؟'},
65
+ ]
66
+
67
+ outputs = pipe(messages, max_new_tokens=256, temperature=0.0)
68
+ assistant_response = outputs[0]["generated_text"][-1]["content"].strip()
69
+ print(assistant_response)
70
+ ```
71
+
72
+ - Response:
73
+
74
+
75
+ >صنعاتني جامعة محمد بن زايد للذكاء الاصطناعي، لي هي جامعة بحثية ديال الدراسات العليا الهدف ديالها أنها تزيد بالذكاء الاصطناعي لقدّام وتنفع بيه الإنسانية. تأسسات جامعة محمد بن زايد للذكاء الاصطناعي على يد القادة ديال دولة الإمارات العربية المتحدة اللي عندهم رؤية واضحة للمستقبل. وكتسعى لتعليم طلاب موهوبين وتطوير القدرات ديالهم، وكتهدف فنفس الوقت لأنها تقاد واحد البيئة لي كتشجع على الابتكار، وتوفّر مؤسسة بحثية استراتيجية كادّعم القطاع الحكومي والخاص.
76
+
77
+
78
+ #### Running the model on a single / multi GPU
79
+
80
+ ```sh
81
+ pip install accelerate
82
+ ```
83
+
84
+ ```python
85
+ from transformers import AutoTokenizer, AutoModelForCausalLM
86
+ import torch
87
+
88
+ model_id = "MBZUAI-Paris/Atlas-Chat-27B"
89
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
90
+ model = AutoModelForCausalLM.from_pretrained(
91
+ model_id,
92
+ device_map="auto",
93
+ torch_dtype=torch.bfloat16,
94
+ )
95
+
96
+ messages = [
97
+ {"role": "user", "content": "شنو كيتسمى المنتخب المغربي؟"},
98
+ ]
99
+
100
+ input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, , add_generation_prompt=True)
101
+
102
+ outputs = model.generate(**input_ids, max_new_tokens=256)
103
+
104
+ print(tokenizer.decode(outputs[0]))
105
+ ```
106
+
107
+ - Response:
108
+ >المنتخب المغربي كيتسمى "أسود الأطلس".
109
+
110
+
111
+ #### Quantized Versions through `bitsandbytes`
112
+
113
+ <details>
114
+ <summary>
115
+ Using 8-bit precision (int8)
116
+ </summary>
117
+
118
+ ```sh
119
+ pip install bitsandbytes accelerate
120
+ ```
121
+
122
+ ```python
123
+ # pip install bitsandbytes accelerate
124
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
125
+
126
+ model_id = "MBZUAI-Paris/Atlas-Chat-9B"
127
+ quantization_config = BitsAndBytesConfig(load_in_8bit=True)
128
+
129
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
130
+ model = AutoModelForCausalLM.from_pretrained(
131
+ model_id,
132
+ quantization_config=quantization_config,
133
+ torch_dtype='bfloat16'
134
+ )
135
+ text = f"""
136
+ شرح ليا هاد الهضرة:
137
+ في القرن 19 لقاو الذّهب في كاليفورنيا، ناضو لّي كيبيعو العتلة والفاس كيقنعو الناس بلي غيديرو لاباس يلا قلبو على الذهب... فالأخير اغتنى تجار أدوات التنقيب والحفر. وحاليا كاين لّي كيقنع الأخرين بلي هو مليونير، وعندو الوقت يورّي للآخرين كيفاش يديرو لاباس.
138
+ """
139
+ messages = [
140
+ {"role": "user", "content": text},
141
+ ]
142
+ input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True).to("cuda")
143
+
144
+ outputs = model.generate(**input_ids, max_new_tokens=256)
145
+ print(tokenizer.decode(outputs[0]).split("<start_of_turn>model")[-1])
146
+ ```
147
+
148
+ - Response:
149
+
150
+ >هاد الهضرة كتهضر على قصة قديمة من القرن 19 فين تكتشف الذهب فكاليفورنيا. هاد الشي خلق حالة ديال الجنون على الذهب، فين بزاف ديال الناس مشاو لتما باش يقلبو عليه. كانو حتى ناس اللي كانو كيبيعو أدوات التنقيب بحال الفاس والعتلة، وكانو كيقنعو الناس بلي غادي يربحو الفلوس إلا مشاو يقلبو على الذهب. فالنهاية، هادوك اللي كانو كيبيعو هاد الأدوات هوما اللي ربحو بزاف، حيت كانو كيربحو من كل واحد اللي كان كيشري منهم.
151
+ >
152
+ >هاد القصة كتشبه للي كاينة دابا، فين كاينين ناس اللي كيدعيو بلي هوما مليونير وكيبيعو نصائح على كيفاش تربح الفلوس. بحال هادوك اللي كانو كيبيعو الأدوات فالماضي، حتى هاد الناس كيربحو من هاد الشي، حيت كياخدو الفلوس من الناس اللي كيشريو منهم النصائح ديالهم.
153
+
154
+
155
+ </details>
156
+
157
+ <details>
158
+ <summary>
159
+ Using 4-bit precision
160
+ </summary>
161
+
162
+ ```python
163
+ # pip install bitsandbytes accelerate
164
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
165
+
166
+ model_id = "MBZUAI-Paris/Atlas-Chat-27B"
167
+ quantization_config = BitsAndBytesConfig(load_in_4bit=True)
168
+
169
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
170
+ model = AutoModelForCausalLM.from_pretrained(
171
+ model_id,
172
+ quantization_config=quantization_config,
173
+ torch_dtype='bfloat16'
174
+ )
175
+ text = f"""ترجم للدارجة:
176
+ Atlas Chat is the first open source large language model that talks in Darija.
177
+ """
178
+ messages = [
179
+ {"role": "user", "content": text},
180
+ ]
181
+ input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, add_generation_prompt=True)
182
+
183
+ outputs = model.generate(**input_ids, max_new_tokens=256, temperature=0.0)
184
+ print(tokenizer.decode(outputs[0]).split("<start_of_turn>model")[-1])
185
+ ```
186
+
187
+ - Response:
188
+
189
+ >أتلاس شات هو أول نموذج لغوي كبير مفتوح المصدر كيهضر بالدارجة المغربية.
190
+
191
+
192
+ </details>
193
+
194
+
195
+ ### Chat Template
196
+
197
+ The models use a chat template that must be adhered to conversational use.
198
+ The easiest way to apply it is using the tokenizer's built-in chat template, as shown in the following snippet.
199
+
200
+ Let's load the model and apply the chat template to a conversation. In this example, we'll start with a single user interaction:
201
+
202
+ ```python
203
+ from transformers import AutoTokenizer, AutoModelForCausalLM
204
+ import transformers
205
+ import torch
206
+
207
+ model_id = "MBZUAI-Paris/Atlas-Chat-27B"
208
+ dtype = torch.bfloat16
209
+
210
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
211
+ model = AutoModelForCausalLM.from_pretrained(
212
+ model_id,
213
+ device_map="cuda",
214
+ torch_dtype=dtype,)
215
+
216
+ chat = [
217
+ { "role": "user", "content": "أشنو كايمييز المغرب؟" },
218
+ ]
219
+ prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
220
+ ```
221
+
222
+ At this point, the prompt contains the following text:
223
+
224
+ ```
225
+ <bos><start_of_turn>user
226
+ أشنو كايمييز المغرب؟<end_of_turn>
227
+ <start_of_turn>model
228
+ ```
229
+
230
+ As you can see, each turn is preceded by a `<start_of_turn>` delimiter and then the role of the entity
231
+ (either `user`, for content supplied by the user, or `model` for LLM responses). Turns finish with
232
+ the `<end_of_turn>` token.
233
+
234
+ You can follow this format to build the prompt manually, if you need to do it without the tokenizer's
235
+ chat template.
236
+
237
+ After the prompt is ready, generation can be performed like this:
238
+
239
+ ```python
240
+ inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
241
+ outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=512)
242
+ print(tokenizer.decode(outputs[0]))
243
+ ```
244
+
245
+ - Response:
246
+
247
+ >المغرب بلاد فشمال إفريقيا، معروفة بتاريخها الغني، وثقافتها المتنوعة، ومناظرها الطبيعية الخلابة. من بين الحوايج اللي كايمييزو المغرب:
248
+ >
249
+ >1. التنوع الثقافي: المغرب بلاد متنوعة، فيها بزاف ديال الثقافات والأعراق، بما فيهم البربر، والعرب، واليهود، والأمازيغ. هاد التنوع الثقافي كايبان فالفنون، والموسيقى، والهندسة المعمارية، والماكلة ديال البلاد.
250
+ >2. المناظر الطبيعية: المغرب بلاد فيها مناظر طبيعية متنوعة، من الصحاري الكبيرة فجنوب البلاد، للجبال العالية فشمالها، للسواحل الخلابة على طول البحر الأبيض المتوسط والمحيط الأطلسي.
251
+ >3. التاريخ الغني: المغرب بلاد عندها تاريخ طويل وغني، كيرجع لآلاف السنين. البلاد كانت موطن لمختلف الحضارات، بما فيهم الفينيقيين، والرومان، والموريين، والبربر، والعرب، والعثمانيين.
252
+ >4. المطبخ المغربي: المطبخ المغربي معروف بنكهاتو القوية، وتوابلو، واستخدامو للبهارات والاعشاب. من بين الأطباق المغربية المشهورة كاين الطاجين، والكوسكس، والحريرة، والباسطيلة.
253
+ >5. الضيافة: المغاربة معروفين بضيافتهم، وغالبا كايدعيو الناس باش يشاركو معاهم الماكلة والقهوة. الضيافة جزء مهم من الثقافة المغربية، وكايتعتبر علامة على الاحترام والصداقة.
254
+
255
+
256
+
257
+
258
+ ### Inputs and outputs
259
+
260
+ * **Input:** Text string, such as a question, a prompt, or a document to be
261
+ summarized.
262
+ * **Output:** Generated Darija text in response to the input, such
263
+ as an answer to a question, or a summary of a document.
264
+
265
+ ### Chatbot interface using Ollama
266
+
267
+ You can also use Ollama and chatbot-ollama to create a chatbot user-interface to better test the model.
268
+ First you need to install Ollama on your machine from [here](https://github.com/ollama/ollama) and have node.js installed as well. Then, download and prepare the model as follows:
269
+ ```bash
270
+
271
+ huggingface-cli download MBZUAI-Paris/Atlas-Chat-9B --local-dir Atlas-Chat-9B/
272
+ ollama create Atlas-Chat-9B -f Atlas-Chat-9B/modelfile
273
+ ollama serve
274
+ ```
275
+ Finally, in a new terminal clone chatbot-ollama repository from Github and run it:
276
+ ```bash
277
+ git clone https://github.com/ivanfioravanti/chatbot-ollama.git
278
+ cd chatbot-ollama
279
+ npm ci
280
+ npm run dev
281
+ ```
282
+ You can start chatting with the model by visiting http://localhost:3000.
283
+ ### Citation
284
+ If you use Atlas-Chat in your research, please cite our paper:
285
+ ```none
286
+ @article{shang2024atlaschatadaptinglargelanguage,
287
+ title={Atlas-Chat: Adapting Large Language Models for Low-Resource Moroccan Arabic Dialect},
288
+ 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},
289
+ year={2024},
290
+ eprint={2409.17912},
291
+ archivePrefix={arXiv},
292
+ primaryClass={cs.CL},
293
+ url={https://arxiv.org/abs/2409.17912},
294
+ }
295
+ ```
296
+
297
+
298
+
299
+
300
+ ## Training Data
301
+ The model was trained on diverse datasets focusing on Darija consisting for approximatley 450k instructions of a maximum length of 2048 tokens, including:
302
+
303
+ * Synthetic instructions created to guide the model in processing various types of language tasks tailord towards Moroccan culture.
304
+ * Instruction samples created from publicly available Moroccan Arabic datasets including translation, summarization and sentiment analysis.
305
+ * Translated English and multi-lingual instruction-tuning datasets.
306
+
307
+ Our training dataset [Darija-SFT-Mixture](https://huggingface.co/datasets/MBZUAI-Paris/Darija-SFT-Mixture) is publicly available.
308
+
309
+
310
+ ## Implementation Information
311
+ 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.
312
+
313
+
314
+ ## Evaluation
315
+ 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:
316
+
317
+ * **DarijaMMLU:** A Darija version of ArabicMMLU and MMLU benchmarks translated from MSA and English respectively.
318
+ * **DarijaHellaSwag:** A Darija version of HellaSwag.
319
+ * **Belebele Ary_Arab:** Belebele is a multiple-choice machine reading comprehension dataset published by Facebook spanning 122 language variants. The Evaluation is done on the Ary_Arab part of Belebele that refers to Darija.
320
+ * **Sentiment Analysis.**
321
+ * **Translation:** Including six directions and four languages: Darija, MSA, English and French.
322
+ * **Summarization.**
323
+
324
+ 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](https://github.com/MBZUAI-Paris/lm-evaluation-harness-atlas-chat) to conduct these evaluations.
325
+
326
+ <table>
327
+ <tr>
328
+ <td rowspan="2">Model</td>
329
+ <td rowspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaMMLU" target="_blank">DarijaMMLU</a></td>
330
+ <td rowspan="2"><a href="MBZUAI-Paris/DarijaHellaSwag" target="_blank">DarijaHellaSwag</a></td>
331
+ <td rowspan="2"><a href="https://huggingface.co/datasets/facebook/belebele/viewer/ary_Arab" target="_blank">Belebele Ary</a></td>
332
+ <td rowspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">Sentiment Analysis</a></td>
333
+ <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">DODa-10k (Translation)</a></td>
334
+ <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">MADAR (Translation)</a></td>
335
+ <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">FLORES+ (Translation)</a></td>
336
+ <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">NLLB-Seed (Translation)</a></td>
337
+ <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">DODa-10k (Transliteration)</a></td>
338
+ <td rowspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">MArSum (Summarization)</a><br/>(LLM as a judge)</td>
339
+ </tr>
340
+ <tr>
341
+ <td>BLEU</td>
342
+ <td>chrF</td>
343
+ <td>BLEU</td>
344
+ <td>chrF</td>
345
+ <td>BLEU</td>
346
+ <td>chrF</td>
347
+ <td>BLEU</td>
348
+ <td>chrF</td>
349
+ <td>BLEU</td>
350
+ <td>chrF</td>
351
+ </tr>
352
+ <tr>
353
+ <td><a href="https://huggingface.co/inceptionai/jais-family-1p3b-chat" target="_blank">jais-family-1p3b-chat</a></td>
354
+ <td>35.39</td>
355
+ <td>32.51</td>
356
+ <td>38.33</td>
357
+ <td>45.29</td>
358
+ <td>00.13</td>
359
+ <td>06.18</td>
360
+ <td>00.50</td>
361
+ <td>15.43</td>
362
+ <td>02.44</td>
363
+ <td>19.14</td>
364
+ <td>01.99</td>
365
+ <td>12.60</td>
366
+ <td>00.01</td>
367
+ <td>03.01</td>
368
+ <td>00.50</td>
369
+ </tr>
370
+ <tr>
371
+ <td><a href="https://huggingface.co/inceptionai/jais-family-2p7b-chat" target="_blank">jais-family-2p7b-chat</a></td>
372
+ <td>37.44</td>
373
+ <td>34.49</td>
374
+ <td>44.11</td>
375
+ <td>51.56</td>
376
+ <td>00.25</td>
377
+ <td>07.46</td>
378
+ <td>00.62</td>
379
+ <td>16.36</td>
380
+ <td>04.25</td>
381
+ <td>18.22</td>
382
+ <td>03.10</td>
383
+ <td>08.19</td>
384
+ <td>00.01</td>
385
+ <td>03.27</td>
386
+ <td>00.90</td>
387
+ </tr>
388
+ <tr>
389
+ <td><a href="https://huggingface.co/google/gemma-2-2b-it" target="_blank">gemma-2-2b-it</a></td>
390
+ <td>28.58</td>
391
+ <td>32.42</td>
392
+ <td>25.22</td>
393
+ <td>53.36</td>
394
+ <td>00.10</td>
395
+ <td>04.96</td>
396
+ <td>00.12</td>
397
+ <td>06.66</td>
398
+ <td>01.55</td>
399
+ <td>18.59</td>
400
+ <td>02.78</td>
401
+ <td>23.69</td>
402
+ <td>00.01</td>
403
+ <td>02.08</td>
404
+ <td>06.80</td>
405
+ </tr>
406
+ <tr>
407
+ <td><a href="meta-llama/Llama-3.2-1B-Instruct" target="_blank">Llama-3.2-1B-Instruct</a></td>
408
+ <td>27.66</td>
409
+ <td>26.88</td>
410
+ <td>28.89</td>
411
+ <td>46.27</td>
412
+ <td>00.07</td>
413
+ <td>05.95</td>
414
+ <td>00.80</td>
415
+ <td>18.71</td>
416
+ <td>04.53</td>
417
+ <td>18.39</td>
418
+ <td>04.52</td>
419
+ <td>17.06</td>
420
+ <td>00.02</td>
421
+ <td>03.74</td>
422
+ <td>08.23</td>
423
+ </tr>
424
+ <tr>
425
+ <td><a href="meta-llama/Llama-3.2-3B-Instruct" target="_blank">Llama-3.2-3B-Instruct</a></td>
426
+ <td>32.60</td>
427
+ <td>28.33</td>
428
+ <td>38.00</td>
429
+ <td>49.20</td>
430
+ <td>00.62</td>
431
+ <td>13.67</td>
432
+ <td>01.18</td>
433
+ <td>22.12</td>
434
+ <td>08.59</td>
435
+ <td>35.21</td>
436
+ <td>13.75</td>
437
+ <td>43.63</td>
438
+ <td>00.21</td>
439
+ <td>09.68</td>
440
+ <td>08.23</td>
441
+ </tr>
442
+ <tr>
443
+ <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-2B" target="_blank">Atlas-Chat-2B</a></strong></td>
444
+ <td><b>44.97</td>
445
+ <td><b>41.48</td>
446
+ <td><b>53.89</td>
447
+ <td><b>73.99</td>
448
+ <td><b>22.76</td>
449
+ <td><b>44.86</td>
450
+ <td><b>16.67</td>
451
+ <td><b>41.64</td>
452
+ <td><b>14.92</td>
453
+ <td><b>43.03</td>
454
+ <td><b>23.88</td>
455
+ <td><b>52.19</td>
456
+ <td><b>08.18</td>
457
+ <td><b>21.54</td>
458
+ <td><b>55.22</td>
459
+ </tr>
460
+ <tr style="border-top: 4px solid;"></tr>
461
+ <tr>
462
+ <td><a href="https://huggingface.co/inceptionai/jais-family-6p7b-chat" target="_blank">jais-family-6p7b-chat</a></td>
463
+ <td>39.96</td>
464
+ <td>41.57</td>
465
+ <td>51.22</td>
466
+ <td>56.78</td>
467
+ <td>00.73</td>
468
+ <td>11.85</td>
469
+ <td>01.88</td>
470
+ <td>23.22</td>
471
+ <td>04.25</td>
472
+ <td>18.22</td>
473
+ <td>04.62</td>
474
+ <td>20.22</td>
475
+ <td>00.02</td>
476
+ <td>03.79</td>
477
+ <td>03.02</td>
478
+ </tr>
479
+ <tr>
480
+ <td><a href="https://huggingface.co/inceptionai/jais-adapted-7b-chat" target="_blank">jais-adapted-7b-chat</a></td>
481
+ <td>39.30</td>
482
+ <td>35.19</td>
483
+ <td>43.67</td>
484
+ <td>52.72</td>
485
+ <td>00.60</td>
486
+ <td>09.43</td>
487
+ <td>03.45</td>
488
+ <td>25.88</td>
489
+ <td>07.25</td>
490
+ <td>23.21</td>
491
+ <td>01.25</td>
492
+ <td>02.22</td>
493
+ <td>00.04</td>
494
+ <td>03.24</td>
495
+ <td>02.82</td>
496
+ </tr>
497
+ <tr>
498
+ <td><a href="https://huggingface.co/inceptionai/jais-family-13b-chat" target="_blank">jais-family-13b-chat</a></td>
499
+ <td>45.11</td>
500
+ <td>43.90</td>
501
+ <td>58.67</td>
502
+ <td>41.73</td>
503
+ <td>00.92</td>
504
+ <td>11.71</td>
505
+ <td>04.01</td>
506
+ <td>28.48</td>
507
+ <td>05.70</td>
508
+ <td>27.24</td>
509
+ <td>04.50</td>
510
+ <td>22.56</td>
511
+ <td>00.03</td>
512
+ <td>03.57</td>
513
+ <td>01.77</td>
514
+ </tr>
515
+ <tr>
516
+ <td><a href="https://huggingface.co/inceptionai/jais-adapted-13b-chat" target="_blank">jais-adapted-13b-chat</a></td>
517
+ <td>45.20</td>
518
+ <td>40.65</td>
519
+ <td>49.67</td>
520
+ <td>66.68</td>
521
+ <td>00.87</td>
522
+ <td>10.52</td>
523
+ <td>04.02</td>
524
+ <td>25.29</td>
525
+ <td>06.66</td>
526
+ <td>23.46</td>
527
+ <td>20.14</td>
528
+ <td>47.87</td>
529
+ <td>0.04</td>
530
+ <td>04.77</td>
531
+ <td>01.92</td>
532
+ </tr>
533
+ <tr>
534
+ <td><a href="https://huggingface.co/FreedomIntelligence/AceGPT-7B-chat" target="_blank">AceGPT-7b-chat</a></td>
535
+ <td>35.98</td>
536
+ <td>36.57</td>
537
+ <td>30.11</td>
538
+ <td>40.23</td>
539
+ <td>00.44</td>
540
+ <td>11.33</td>
541
+ <td>01.05</td>
542
+ <td>19.24</td>
543
+ <td>06.92</td>
544
+ <td>36.03</td>
545
+ <td>11.05</td>
546
+ <td>44.55</td>
547
+ <td>00.06</td>
548
+ <td>04.74</td>
549
+ <td>02.28</td>
550
+ </tr>
551
+ <tr>
552
+ <td><a href="https://huggingface.co/FreedomIntelligence/AceGPT-13B-chat" target="_blank">AceGPT-13b-chat</a></td>
553
+ <td>41.09</td>
554
+ <td>38.35</td>
555
+ <td>33.11</td>
556
+ <td>59.58</td>
557
+ <td>00.98</td>
558
+ <td>16.70</td>
559
+ <td>00.81</td>
560
+ <td>20.23</td>
561
+ <td>08.73</td>
562
+ <td>40.76</td>
563
+ <td>14.02</td>
564
+ <td>48.28</td>
565
+ <td>00.12</td>
566
+ <td>06.32</td>
567
+ <td>02.80</td>
568
+ </tr>
569
+ <tr>
570
+ <td><a href="https://huggingface.co/google/gemma-2-9b-it" target="_blank">gemma-2-9b-it</a></td>
571
+ <td>35.91</td>
572
+ <td>42.43</td>
573
+ <td>31.00</td>
574
+ <td>59.87</td>
575
+ <td>03.10</td>
576
+ <td>19.16</td>
577
+ <td>01.72</td>
578
+ <td>24.35</td>
579
+ <td>05.18</td>
580
+ <td>36.96</td>
581
+ <td>08.23</td>
582
+ <td>43.57</td>
583
+ <td>00.17</td>
584
+ <td>09.14</td>
585
+ <td>13.81</td>
586
+ </tr>
587
+ <tr>
588
+ <td><a href="meta-llama/Meta-Llama-3.1-8B-Instruct" target="_blank">Llama-3.1-8B-Instruct</a></td>
589
+ <td>44.13</td>
590
+ <td>38.24</td>
591
+ <td>47.00</td>
592
+ <td>44.08</td>
593
+ <td>00.92</td>
594
+ <td>14.19</td>
595
+ <td>01.46</td>
596
+ <td>23.82</td>
597
+ <td>08.89</td>
598
+ <td>33.08</td>
599
+ <td>11.85</td>
600
+ <td>35.51</td>
601
+ <td>00.11</td>
602
+ <td>06.02</td>
603
+ <td>01.28</td>
604
+ </tr>
605
+ <tr>
606
+ <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-9B" target="_blank">Atlas-Chat-9B</a></strong></td>
607
+ <td><b>58.23</td>
608
+ <td><b>57.75</td>
609
+ <td><b>74.56</td>
610
+ <td><b>81.89</td>
611
+ <td><b>28.08</td>
612
+ <td><b>50.48</td>
613
+ <td><b>18.16</td>
614
+ <td><b>43.91</td>
615
+ <td><b>18.63</td>
616
+ <td><b>47.53</td>
617
+ <td><b>29.98</td>
618
+ <td><b>58.26</td>
619
+ <td><b>22.08</td>
620
+ <td><b>34.17</td>
621
+ <td><b>59.76</td>
622
+ </tr>
623
+ <tr style="border-top: 4px solid;"></tr>
624
+ <tr>
625
+ <td><a href="https://huggingface.co/inceptionai/jais-family-30b-8k-chat" target="_blank">jais-family-30b-8k-chat</a></td>
626
+ <td>51.88</td>
627
+ <td>35.61</td>
628
+ <td>65.67</td>
629
+ <td>56.73</td>
630
+ <td>01.10</td>
631
+ <td>14.40</td>
632
+ <td>01.67</td>
633
+ <td>23.37</td>
634
+ <td>08.52</td>
635
+ <td>35.41</td>
636
+ <td>13.71</td>
637
+ <td>41.33</td>
638
+ <td>00.05</td>
639
+ <td>04.48</td>
640
+ <td>00.46</td>
641
+ </tr>
642
+ <tr>
643
+ <td><a href="https://huggingface.co/google/gemma-2-27b-it" target="_blank">gemma-2-27b-it</a></td>
644
+ <td>36.47</td>
645
+ <td>37.04</td>
646
+ <td>35.78</td>
647
+ <td>57.59</td>
648
+ <td>00.67</td>
649
+ <td>13.04</td>
650
+ <td>01.74</td>
651
+ <td>24.63</td>
652
+ <td>05.17</td>
653
+ <td>37.08</td>
654
+ <td>07.36</td>
655
+ <td>42.49</td>
656
+ <td>00.03</td>
657
+ <td>04.94</td>
658
+ <td>11.10</td>
659
+ </tr>
660
+ <tr>
661
+ <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-27B" target="_blank">Atlas-Chat-27B</a></strong></td>
662
+ <td><b>61.95</td>
663
+ <td><b>48.37</td>
664
+ <td><b>75.67</td>
665
+ <td>73.00</td>
666
+ <td><b>29.55</td>
667
+ <td><b>51.74</td>
668
+ <td><b>19.66</td>
669
+ <td><b>45.65</td>
670
+ <td><b>20.34</td>
671
+ <td><b>49.19</td>
672
+ <td><b>31.61</td>
673
+ <td><b>59.37</td>
674
+ <td><b>33.03</td>
675
+ <td><b>40.95</td>
676
+ <td><b>60.70</td>
677
+ </tr>
678
+
679
+
680
+
681
+ </table>
682
+
683
+
684
+ ## Usage and Limitations
685
+
686
+ These models have certain limitations that users should be aware of.
687
+ <details>
688
+ <summary>Intended Usage</summary>
689
+
690
+ Open Large Language Models (LLMs) have a wide range of applications across
691
+ various industries and domains. The following list of potential uses is not
692
+ comprehensive. The purpose of this list is to provide contextual information
693
+ about the possible use-cases that the model creators considered as part of model
694
+ training and development.
695
+
696
+ * Content Creation and Communication
697
+ * Text Generation: These models can be used to generate creative text formats
698
+ such as poems, scripts, code, marketing copy, and email drafts.
699
+ * Chatbots and Conversational AI: Power conversational interfaces for customer
700
+ service, virtual assistants, or interactive applications.
701
+ * Text Summarization: Generate concise summaries of a text corpus, research
702
+ papers, or reports.
703
+ * Research and Education
704
+ * Natural Language Processing (NLP) Research: These models can serve as a
705
+ foundation for researchers to experiment with NLP techniques, develop
706
+ algorithms, and contribute to the advancement of the field.
707
+ * Language Learning Tools: Support interactive language learning experiences,
708
+ aiding in grammar correction or providing writing practice.
709
+ * Knowledge Exploration: Assist researchers in exploring large bodies of text
710
+ by generating summaries or answering questions about specific topics.
711
+ </details>
712
+ <details>
713
+ <summary>Limitations</summary>
714
+
715
+ * Training Data
716
+ * The quality and diversity of the training data significantly influence the
717
+ model's capabilities. Biases or gaps in the training data can lead to
718
+ limitations in the model's responses.
719
+ * The scope of the training dataset determines the subject areas the model can
720
+ handle effectively.
721
+ * Context and Task Complexity
722
+ * LLMs are better at tasks that can be framed with clear prompts and
723
+ instructions. Open-ended or highly complex tasks might be challenging.
724
+ * A model's performance can be influenced by the amount of context provided
725
+ (longer context generally leads to better outputs, up to a certain point).
726
+ * Language Ambiguity and Nuance
727
+ * Natural language is inherently complex. LLMs might struggle to grasp subtle
728
+ nuances, sarcasm, or figurative language.
729
+ * Factual Accuracy
730
+ * LLMs generate responses based on information they learned from their
731
+ training datasets, but they are not knowledge bases. They may generate
732
+ incorrect or outdated factual statements.
733
+ * Common Sense
734
+ * LLMs rely on statistical patterns in language. They might lack the ability
735
+ to apply common sense reasoning in certain situations.
736
+ </details>
737
+ <details>
738
+ <summary> Ethical Considerations and Risks</summary>
739
+
740
+ The development of large language models (LLMs) raises several ethical concerns.
741
+ In creating an open model, we have carefully considered the following:
742
+
743
+ * Bias and Fairness
744
+ * LLMs trained on large-scale, real-world text data can reflect socio-cultural
745
+ biases embedded in the training material.
746
+ * Misinformation and Misuse
747
+ * LLMs can be misused to generate text that is false, misleading, or harmful.
748
+ * Guidelines are provided for responsible use with the model, see the
749
+ [Responsible Generative AI Toolkit][rai-toolkit].
750
+ * Transparency and Accountability:
751
+ * This model card summarizes details on the models' architecture,
752
+ capabilities, limitations, and evaluation processes.
753
+ * A responsibly developed open model offers the opportunity to share
754
+ innovation by making LLM technology accessible to developers and researchers
755
+ across the AI ecosystem.
756
+
757
+ Risks identified and mitigations:
758
+
759
+ * Perpetuation of biases: It's encouraged to perform continuous monitoring
760
+ (using evaluation metrics, human review) and the exploration of de-biasing
761
+ techniques during model training, fine-tuning, and other use cases.
762
+ * Generation of harmful content: Mechanisms and guidelines for content safety
763
+ are essential. Developers are encouraged to exercise caution and implement
764
+ appropriate content safety safeguards based on their specific product policies
765
+ and application use cases.
766
+ * Privacy violations: Models were trained on data filtered for removal of PII
767
+ (Personally Identifiable Information). Developers are encouraged to adhere to
768
+ privacy regulations with privacy-preserving techniques.
769
+
770
+ </details>
771
+
772
+
773
+ ## Acknowledgement
774
+ 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.