Amr Mohamed commited on
Commit
144e7d8
1 Parent(s): 966a9ae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +599 -3
README.md CHANGED
@@ -1,3 +1,599 @@
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
+
13
+ ---
14
+
15
+
16
+ # Atlas-Chat Model Card
17
+
18
+
19
+ ## Model Overview
20
+
21
+ 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. Two versions are available:
22
+ * [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.
23
+ * [Atlas-Chat-9B](https://huggingface.co/MBZUAI-Paris/Atlas-Chat-9B): A larger version with 9 billion parameters, providing more nuanced, contextually rich language generation for complex tasks.
24
+
25
+ The models are designed to assist with:
26
+
27
+ * Conversational agents and chatbots that operate in Darija.
28
+ * Translation, summarization, and content generation in informal dialect.
29
+ * Cultural research related to Morocco and its language.
30
+
31
+ **Paper:** [Atlas-Chat: Adapting Large Language Models for Low-Resource Moroccan Arabic Dialect]()
32
+
33
+ ## 👥 Our Team
34
+
35
+ 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.
36
+
37
+
38
+ ## Usage
39
+
40
+ Below we share some code snippets on how to get quickly started with running the model. First, install the Transformers library with:
41
+
42
+ ```sh
43
+ pip install -U transformers sentencepiece
44
+ ```
45
+
46
+ Then, copy the snippet from the section that is relevant for your use case.
47
+
48
+ #### Running with the `pipeline` API
49
+
50
+ ```python
51
+ import torch
52
+ from transformers import pipeline
53
+
54
+ pipe = pipeline(
55
+ "text-generation",
56
+ model="MBZUAI-Paris/Atlas-Chat-9B",
57
+ model_kwargs={"torch_dtype": torch.bfloat16},
58
+ device="cuda" # replace with "mps" to run on a Mac device
59
+ )
60
+
61
+ messages = [
62
+ {"role": "user", "content": 'شكون لي صنعك؟'},
63
+ ]
64
+
65
+ outputs = pipe(messages, max_new_tokens=256, temperature=0.0)
66
+ assistant_response = outputs[0]["generated_text"][-1]["content"].strip()
67
+ print(assistant_response)
68
+ ```
69
+
70
+ - Response:
71
+
72
+
73
+ >صنعاتني جامعة محمد بن زايد للذكاء الاصطناعي، لي هي جامعة بحثية ديال الدراسات العليا الهدف ديالها أنها تزيد بالذكاء الاصطناعي لقدّام وتنفع بيه الإنسانية. يمكن ليك تزور https://mbzuai.ac.ae/ar/about/ باش تعرف كثر على جامعة محمد بن زايد للذكاء الاصطناعي والمهمة ديالها!
74
+
75
+
76
+ #### Running the model on a single / multi GPU
77
+
78
+ ```sh
79
+ pip install accelerate
80
+ ```
81
+
82
+ ```python
83
+ from transformers import AutoTokenizer, AutoModelForCausalLM
84
+ import torch
85
+
86
+ model_id = "MBZUAI-Paris/Atlas-Chat-9B"
87
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
88
+ model = AutoModelForCausalLM.from_pretrained(
89
+ model_id,
90
+ device_map="auto",
91
+ torch_dtype=torch.bfloat16,
92
+ )
93
+
94
+ messages = [
95
+ {"role": "user", "content": "شنو كيتسمى المنتخب المغربي ؟"},
96
+ ]
97
+
98
+ input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, , add_generation_prompt=True)
99
+
100
+ outputs = model.generate(**input_ids, max_new_tokens=256)
101
+
102
+ print(tokenizer.decode(outputs[0]))
103
+ ```
104
+
105
+ - Response:
106
+ >المنتخب المغربي كيتسمى أيضا "أسود الأطلس"
107
+
108
+
109
+ <!-- You can ensure the correct chat template is applied by using `tokenizer.apply_chat_template` as follows:
110
+ ```python
111
+
112
+ from transformers import AutoTokenizer, AutoModelForCausalLM
113
+ import torch
114
+
115
+ model_id = "MBZUAI-Paris/Atlas-Chat-9B"
116
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
117
+ model = AutoModelForCausalLM.from_pretrained(
118
+ model_id,
119
+ device_map="auto",
120
+ torch_dtype=torch.bfloat16,
121
+ )
122
+
123
+ messages = [
124
+ {"role": "user", "content": "شنو هيا الإيجابيات ديال الطاقة المتجددة؟"},
125
+ ]
126
+ input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, add_generation_prompt=True)
127
+
128
+ outputs = model.generate(**input_ids, max_new_tokens=256, temperature=0.0)
129
+
130
+ print(tokenizer.decode(outputs[0]))
131
+ ```
132
+
133
+ - Response:
134
+ ```text
135
+ <bos><start_of_turn>user
136
+ شنو هيا الإيجابيات ديال الطاقة المتجددة؟<end_of_turn>
137
+ <start_of_turn>model
138
+ الطاقة المتجددة عندها بزاف ديال الإيجابيات، منها:
139
+
140
+ 1. الاستدامة: مصادر الطاقة المتجددة بحال الريح، الشمس، والطاقة الكهرومائية كيتجددو بشكل طبيعي، يعني ما غاديش ينفدو مع الوقت. هاد الشي كيخليهم مصدر طاقة مستدام اللي ممكن نعتمدو عليه على المدى الطويل.
141
+
142
+ 2. تقليل انبعاثات الكربون: مصادر الطاقة المتجددة عموماً عندها انبعاثات كربونية أقل من الوقود الأحفوري، وهاد الشي كيساعد فالتخفيف من التغير المناخي وتقليل تلوث الهواء.
143
+
144
+ 3. الاستقلال الطاقي: مصادر الطاقة المتجددة ممكن نستعملوها باش نقللو من الاعتماد على الوقود الأحفوري المستورد، وهاد الشي كيزيد من الاستقلال الطاقي وكيقلل من خطر التقطيع.
145
+
146
+ 4. خلق فرص الشغل: صناعة الطاقة المتجددة كتخلق فرص شغل فمجالات بحال تركيب الألواح الشمسية، صيانة توربينات الرياح، وبناء محطات
147
+ ``` -->
148
+
149
+ #### Quantized Versions through `bitsandbytes`
150
+
151
+ <details>
152
+ <summary>
153
+ Using 8-bit precision (int8)
154
+ </summary>
155
+
156
+ ```sh
157
+ pip install bitsandbytes accelerate
158
+ ```
159
+
160
+ ```python
161
+ # pip install bitsandbytes accelerate
162
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
163
+
164
+ model_id = "MBZUAI-Paris/Atlas-Chat-9B"
165
+ quantization_config = BitsAndBytesConfig(load_in_8bit=True)
166
+
167
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
168
+ model = AutoModelForCausalLM.from_pretrained(
169
+ model_id,
170
+ quantization_config=quantization_config,
171
+ )
172
+ text = f"""
173
+ شرح ليا هاد الهضرة:
174
+ في القرن 19 لقاو الذّهب في كاليفورنيا، ناضو لّي كيبيعو العتلة والفاس كيقنعو الناس بلي غيديرو لاباس يلا قلبو على الذهب... فالأخير اغتنى تجار أدوات التنقيب والحفر. وحاليا كاين لّي كيقنع الأخرين بلي هو مليونير، وعندو الوقت يورّي للآخرين كيفاش يديرو لاباس.
175
+ """
176
+ messages = [
177
+ {"role": "user", "content": text},
178
+ ]
179
+ input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True).to("cuda")
180
+
181
+ outputs = model.generate(**input_ids, max_new_tokens=256)
182
+ print(tokenizer.decode(outputs[0]).split("<start_of_turn>model")[-1])
183
+ ```
184
+
185
+ - Response:
186
+
187
+ >هاد الهضرة كتهضر على قصة قديمة من القرن 19 فين تكتشف الذهب فكاليفورنيا. هاد الشي خلق حالة ديال الجنون على الذهب، فين بزاف ديال الناس مشاو لتما باش يقلبو عليه. كانو حتى ناس اللي كانو كيبيعو أدوات التنقيب بحال الفاس والعتلة، وكانو كيقنعو الناس بلي غادي يربحو الفلوس إلا مشاو يقلبو على الذهب. فالنهاية، هادوك اللي كانو كيبيعو هاد الأدوات هوما اللي ربحو بزاف، حيت كانو كيربحو من كل واحد اللي كان كيشري منهم.
188
+ >
189
+ >هاد القصة كتشبه للي كاينة دابا، فين كاينين ناس اللي كيدعيو بلي هوما مليونير وكيبيعو نصائح على كيفاش تربح الفلوس. بحال هادوك اللي كانو كيبيعو الأدوات فالماضي، حتى هاد الناس كيربحو من هاد الشي، حيت كياخدو الفلوس من الناس اللي كيشريو منهم النصائح ديالهم.
190
+
191
+
192
+ </details>
193
+
194
+ <details>
195
+ <summary>
196
+ Using 4-bit precision
197
+ </summary>
198
+
199
+ ```python
200
+ # pip install bitsandbytes accelerate
201
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
202
+
203
+ model_id = "MBZUAI-Paris/Atlas-Chat-9B"
204
+ quantization_config = BitsAndBytesConfig(load_in_4bit=True)
205
+
206
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
207
+ model = AutoModelForCausalLM.from_pretrained(
208
+ model_id,
209
+ quantization_config=quantization_config,
210
+ )
211
+ text = f"""ترجم للدارجة:
212
+ Atlas Chat is the first open source large language model that talks in Darija.
213
+ """
214
+ messages = [
215
+ {"role": "user", "content": text},
216
+ ]
217
+ input_ids = tokenizer.apply_chat_template(messages, return_tensors="pt", return_dict=True, add_generation_prompt=True)
218
+
219
+ outputs = model.generate(**input_ids, max_new_tokens=256, temperature=0.0)
220
+ print(tokenizer.decode(outputs[0]).split("<start_of_turn>model")[-1])
221
+ ```
222
+
223
+ - Response:
224
+
225
+ >أطلّاس شات هو أول نموذج لغوي كبير مفتوح المصدر كايهضر بالدارجة.
226
+
227
+
228
+ </details>
229
+
230
+
231
+ ### Chat Template
232
+
233
+ The models use a chat template that must be adhered to conversational use.
234
+ The easiest way to apply it is using the tokenizer's built-in chat template, as shown in the following snippet.
235
+
236
+ Let's load the model and apply the chat template to a conversation. In this example, we'll start with a single user interaction:
237
+
238
+ ```python
239
+ from transformers import AutoTokenizer, AutoModelForCausalLM
240
+ import transformers
241
+ import torch
242
+
243
+ model_id = "MBZUAI-Paris/Atlas-Chat-9B"
244
+ dtype = torch.bfloat16
245
+
246
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
247
+ model = AutoModelForCausalLM.from_pretrained(
248
+ model_id,
249
+ device_map="cuda",
250
+ torch_dtype=dtype,)
251
+
252
+ chat = [
253
+ { "role": "user", "content": "أشنو كايمييز المملكة المغربية." },
254
+ ]
255
+ prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
256
+ ```
257
+
258
+ At this point, the prompt contains the following text:
259
+
260
+ ```
261
+ <bos><start_of_turn>user
262
+ أشنو كايمييز المملكة المغربية.<end_of_turn>
263
+ <start_of_turn>model
264
+ ```
265
+
266
+ As you can see, each turn is preceded by a `<start_of_turn>` delimiter and then the role of the entity
267
+ (either `user`, for content supplied by the user, or `model` for LLM responses). Turns finish with
268
+ the `<end_of_turn>` token.
269
+
270
+ You can follow this format to build the prompt manually, if you need to do it without the tokenizer's
271
+ chat template.
272
+
273
+ After the prompt is ready, generation can be performed like this:
274
+
275
+ ```python
276
+ inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
277
+ outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=512)
278
+ print(tokenizer.decode(outputs[0]))
279
+ ```
280
+
281
+ - Response:
282
+
283
+ >المغرب كايميزو بزاف ديال الحوايج، منهم:
284
+ >
285
+ >1. التنوع الثقافي: المغرب بلاد فيها بزاف ديال الثقافات، كل وحدة فيهم عندها التقاليد ديالها واللغة ديالها والماكلة ديالها. هاد التنوع كايبان فالموسيقى والرقص والفنون التقليدية.
286
+ >
287
+ >2. التراث التاريخي: المغرب عندو تاريخ غني كايمتد لآلاف السنين، فيه حضارات قديمة بحال مملكة موريطانيا، والرومان، والبيزنطيين، والفتوحات الإسلامية. هاد التراث كايبان فالمعالم التاريخية بحال مدينة فاس، والمدينة القديمة ديال مراكش، والمدينة القديمة ديال شفشاون.
288
+ >
289
+ >3. المناظر الطبيعية: المغرب بلاد فيها مناظر طبيعية متنوعة، من السواحل الزرقة والصحاري الكبيرة، للجبال العالية والوديان الخضراء. هاد التنوع كايمكنك من ممارسة أنشطة خارجية بحال المشي لمسافات طويلة، والتخييم، والرياضات المائية.
290
+ >
291
+ >4. الماكلة: الماكلة المغربية معروفة بالتنوع ديالها والطعم ديالها. من بين الأطباق الأكثر شعبية كاين الطاجين، والكسكس، والبريوات، والكوكتيل ديال الفواكه.
292
+ >
293
+ >5. الناس: المغاربة معروفين بالضيافة ديالهم والترحاب ديالهم. كايكونو فرحانين باش يشاركو الثقافة والتقاليد ديالهم مع الزوار.
294
+
295
+
296
+
297
+
298
+ ### Inputs and outputs
299
+
300
+ * **Input:** Text string, such as a question, a prompt, or a document to be
301
+ summarized.
302
+ * **Output:** Generated Darija text in response to the input, such
303
+ as an answer to a question, or a summary of a document.
304
+
305
+ ### Chatbot interface using Ollama
306
+
307
+ You can also use Ollama and chatbot-ollama to create a chatbot user-interface to better test the model.
308
+ 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:
309
+ ```bash
310
+
311
+ huggingface-cli download MBZUAI-Paris/Atlas-Chat-9B --local-dir Atlas-Chat-9B/
312
+ ollama create Atlas-Chat-9B -f Atlas-Chat-9B/modelfile
313
+ ollama serve
314
+ ```
315
+ Finally, in a new terminal clone chatbot-ollama repository from Github and run it:
316
+ ```bash
317
+ git clone https://github.com/ivanfioravanti/chatbot-ollama.git
318
+ cd chatbot-ollama
319
+ npm ci
320
+ npm run dev
321
+ ```
322
+ You can start chatting with the model by visiting http://localhost:3000.
323
+ ### Citation
324
+ If you use Atlas-Chat in your research, please cite our paper:
325
+ ```none
326
+
327
+ ```
328
+
329
+
330
+
331
+
332
+ ## Training Data
333
+ The model was trained on diverse datasets focusing on Darija consisting for approximatley 450k instructions of a maximum length of 2048 tokens, including:
334
+
335
+ * Synthetic instructions created to guide the model in processing various types of language tasks tailord towards Moroccan culture.
336
+ * Instruction samples created from publicly available Moroccan Arabic datasets including translation, summarization and sentiment analysis.
337
+ * Translated English and multi-lingual instruction-tuning datasets.
338
+
339
+ Our training dataset [Darija-SFT-Mixture](https://huggingface.co/datasets/MBZUAI-Paris/Darija-SFT-Mixture) is publicly available.
340
+
341
+
342
+ ## Implementation Information
343
+ 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.
344
+
345
+
346
+ ## Evaluation
347
+ 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:
348
+
349
+ * **DarijaMMLU:** A Darija version of ArabicMMLU and MMLU benchmarks translated from MSA and English respectively.
350
+ * **DarijaHellaSwag:** A Darija version of HellaSwag.
351
+ * **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.
352
+ * **Sentiment Analysis.**
353
+ * **Translation:** Including six directions and four languages: Darija, MSA, English and French.
354
+ * **Summarization.**
355
+
356
+ 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.
357
+
358
+ <table>
359
+ <tr>
360
+ <td rowspan="2">Model</td>
361
+ <td rowspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaMMLU" target="_blank">DarijaMMLU</a></td>
362
+ <td rowspan="2"><a href="MBZUAI-Paris/DarijaHellaSwag" target="_blank">DarijaHellaSwag</a></td>
363
+ <td rowspan="2"><a href="https://huggingface.co/datasets/facebook/belebele/viewer/ary_Arab" target="_blank">Belebele Ary</a></td>
364
+ <td rowspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">Sentiment Analysis</a></td>
365
+ <td colspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">DoDa-10k (Translation)</a></td>
366
+ <td rowspan="2"><a href="https://huggingface.co/datasets/MBZUAI-Paris/DarijaBench" target="_blank">MArSum (Summarization)</a><br/>(LLM as a judge)</td>
367
+ </tr>
368
+ <tr>
369
+ <td>BLEU</td>
370
+ <td>chrF</td>
371
+ </tr>
372
+ <tr>
373
+ <td><a href="https://huggingface.co/inceptionai/jais-family-1p3b-chat" target="_blank">jais-family-1p3b-chat</a></td>
374
+ <td>35.39</td>
375
+ <td>32.51</td>
376
+ <td>38.33</td>
377
+ <td>45.29</td>
378
+ <td>00.13</td>
379
+ <td>06.18</td>
380
+ <td>00.50</td>
381
+ </tr>
382
+ <tr>
383
+ <td><a href="https://huggingface.co/inceptionai/jais-family-2p7b-chat" target="_blank">jais-family-2p7b-chat</a></td>
384
+ <td>37.44</td>
385
+ <td>34.49</td>
386
+ <td>44.11</td>
387
+ <td>51.56</td>
388
+ <td>00.25</td>
389
+ <td>07.46</td>
390
+ <td>00.90</td>
391
+ </tr>
392
+ <tr>
393
+ <td><a href="https://huggingface.co/google/gemma-2-2b-it" target="_blank">gemma-2-2b-it</a></td>
394
+ <td>28.58</td>
395
+ <td>32.42</td>
396
+ <td>25.22</td>
397
+ <td>53.36</td>
398
+ <td>00.10</td>
399
+ <td>04.96</td>
400
+ <td>06.80</td>
401
+ </tr>
402
+ <tr>
403
+ <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-2B" target="_blank">Atlas-Chat-2B</a></strong></td>
404
+ <td><b>44.97</td>
405
+ <td><b>41.48</td>
406
+ <td><b>53.89</td>
407
+ <td><b>73.99</td>
408
+ <td><b>22.76</td>
409
+ <td><b>44.86</td>
410
+ <td><b>55.22</td>
411
+ </tr>
412
+ <tr style="border-top: 4px solid;"></tr>
413
+ <tr>
414
+ <td><a href="https://huggingface.co/inceptionai/jais-family-6p7b-chat" target="_blank">jais-family-6p7b-chat</a></td>
415
+ <td>39.96</td>
416
+ <td>41.57</td>
417
+ <td>51.22</td>
418
+ <td>56.78</td>
419
+ <td>00.73</td>
420
+ <td>11.85</td>
421
+ <td>03.02</td>
422
+ </tr>
423
+ <tr>
424
+ <td><a href="https://huggingface.co/inceptionai/jais-adapted-7b-chat" target="_blank">jais-adapted-7b-chat</a></td>
425
+ <td>39.30</td>
426
+ <td>35.19</td>
427
+ <td>43.67</td>
428
+ <td>52.72</td>
429
+ <td>00.60</td>
430
+ <td>09.43</td>
431
+ <td>02.82</td>
432
+ </tr>
433
+ <tr>
434
+ <td><a href="https://huggingface.co/inceptionai/jais-family-13b-chat" target="_blank">jais-family-13b-chat</a></td>
435
+ <td>45.11</td>
436
+ <td>43.90</td>
437
+ <td>58.67</td>
438
+ <td>41.73</td>
439
+ <td>00.92</td>
440
+ <td>11.71</td>
441
+ <td>01.77</td>
442
+ </tr>
443
+ <tr>
444
+ <td><a href="https://huggingface.co/inceptionai/jais-adapted-13b-chat" target="_blank">jais-adapted-13b-chat</a></td>
445
+ <td>45.20</td>
446
+ <td>40.65</td>
447
+ <td>49.67</td>
448
+ <td>66.68</td>
449
+ <td>00.87</td>
450
+ <td>10.52</td>
451
+ <td>01.92</td>
452
+ </tr>
453
+ <tr>
454
+ <td><a href="https://huggingface.co/FreedomIntelligence/AceGPT-7B-chat" target="_blank">AceGPT-7b-chat</a></td>
455
+ <td>35.98</td>
456
+ <td>36.57</td>
457
+ <td>30.11</td>
458
+ <td>40.23</td>
459
+ <td>00.44</td>
460
+ <td>11.33</td>
461
+ <td>02.28</td>
462
+ </tr>
463
+ <tr>
464
+ <td><a href="https://huggingface.co/FreedomIntelligence/AceGPT-13B-chat" target="_blank">AceGPT-13b-chat</a></td>
465
+ <td>41.09</td>
466
+ <td>38.35</td>
467
+ <td>33.11</td>
468
+ <td>59.58</td>
469
+ <td>00.98</td>
470
+ <td>16.70</td>
471
+ <td>02.80</td>
472
+ </tr>
473
+ <tr>
474
+ <td><a href="https://huggingface.co/google/gemma-2-9b-it" target="_blank">gemma-2-9b-it</a></td>
475
+ <td>35.91</td>
476
+ <td>42.43</td>
477
+ <td>31.00</td>
478
+ <td>59.87</td>
479
+ <td>03.10</td>
480
+ <td>19.16</td>
481
+ <td>13.81</td>
482
+ </tr>
483
+ <tr>
484
+ <td><a href="meta-llama/Meta-Llama-3.1-8B-Instruct" target="_blank">Llama-3.1-8B-Instruct</a></td>
485
+ <td>44.13</td>
486
+ <td>38.24</td>
487
+ <td>47.00</td>
488
+ <td>44.08</td>
489
+ <td>00.92</td>
490
+ <td>14.19</td>
491
+ <td>01.28</td>
492
+ </tr>
493
+ <tr>
494
+ <td><strong><a href="https://huggingface.co/MBZUAI-Paris/Atlas-Chat-9B" target="_blank">Atlas-Chat-9B</a></strong></td>
495
+ <td><b>58.23</td>
496
+ <td><b>57.75</td>
497
+ <td><b>74.56</td>
498
+ <td><b>81.89</td>
499
+ <td><b>28.08</td>
500
+ <td><b>50.58</td>
501
+ <td><b>59.76</td>
502
+ </tr>
503
+
504
+
505
+
506
+ </table>
507
+
508
+
509
+ ## Usage and Limitations
510
+
511
+ These models have certain limitations that users should be aware of.
512
+ <details>
513
+ <summary>Intended Usage</summary>
514
+
515
+ Open Large Language Models (LLMs) have a wide range of applications across
516
+ various industries and domains. The following list of potential uses is not
517
+ comprehensive. The purpose of this list is to provide contextual information
518
+ about the possible use-cases that the model creators considered as part of model
519
+ training and development.
520
+
521
+ * Content Creation and Communication
522
+ * Text Generation: These models can be used to generate creative text formats
523
+ such as poems, scripts, code, marketing copy, and email drafts.
524
+ * Chatbots and Conversational AI: Power conversational interfaces for customer
525
+ service, virtual assistants, or interactive applications.
526
+ * Text Summarization: Generate concise summaries of a text corpus, research
527
+ papers, or reports.
528
+ * Research and Education
529
+ * Natural Language Processing (NLP) Research: These models can serve as a
530
+ foundation for researchers to experiment with NLP techniques, develop
531
+ algorithms, and contribute to the advancement of the field.
532
+ * Language Learning Tools: Support interactive language learning experiences,
533
+ aiding in grammar correction or providing writing practice.
534
+ * Knowledge Exploration: Assist researchers in exploring large bodies of text
535
+ by generating summaries or answering questions about specific topics.
536
+ </details>
537
+ <details>
538
+ <summary>Limitations</summary>
539
+
540
+ * Training Data
541
+ * The quality and diversity of the training data significantly influence the
542
+ model's capabilities. Biases or gaps in the training data can lead to
543
+ limitations in the model's responses.
544
+ * The scope of the training dataset determines the subject areas the model can
545
+ handle effectively.
546
+ * Context and Task Complexity
547
+ * LLMs are better at tasks that can be framed with clear prompts and
548
+ instructions. Open-ended or highly complex tasks might be challenging.
549
+ * A model's performance can be influenced by the amount of context provided
550
+ (longer context generally leads to better outputs, up to a certain point).
551
+ * Language Ambiguity and Nuance
552
+ * Natural language is inherently complex. LLMs might struggle to grasp subtle
553
+ nuances, sarcasm, or figurative language.
554
+ * Factual Accuracy
555
+ * LLMs generate responses based on information they learned from their
556
+ training datasets, but they are not knowledge bases. They may generate
557
+ incorrect or outdated factual statements.
558
+ * Common Sense
559
+ * LLMs rely on statistical patterns in language. They might lack the ability
560
+ to apply common sense reasoning in certain situations.
561
+ </details>
562
+ <details>
563
+ <summary> Ethical Considerations and Risks</summary>
564
+
565
+ The development of large language models (LLMs) raises several ethical concerns.
566
+ In creating an open model, we have carefully considered the following:
567
+
568
+ * Bias and Fairness
569
+ * LLMs trained on large-scale, real-world text data can reflect socio-cultural
570
+ biases embedded in the training material.
571
+ * Misinformation and Misuse
572
+ * LLMs can be misused to generate text that is false, misleading, or harmful.
573
+ * Guidelines are provided for responsible use with the model, see the
574
+ [Responsible Generative AI Toolkit][rai-toolkit].
575
+ * Transparency and Accountability:
576
+ * This model card summarizes details on the models' architecture,
577
+ capabilities, limitations, and evaluation processes.
578
+ * A responsibly developed open model offers the opportunity to share
579
+ innovation by making LLM technology accessible to developers and researchers
580
+ across the AI ecosystem.
581
+
582
+ Risks identified and mitigations:
583
+
584
+ * Perpetuation of biases: It's encouraged to perform continuous monitoring
585
+ (using evaluation metrics, human review) and the exploration of de-biasing
586
+ techniques during model training, fine-tuning, and other use cases.
587
+ * Generation of harmful content: Mechanisms and guidelines for content safety
588
+ are essential. Developers are encouraged to exercise caution and implement
589
+ appropriate content safety safeguards based on their specific product policies
590
+ and application use cases.
591
+ * Privacy violations: Models were trained on data filtered for removal of PII
592
+ (Personally Identifiable Information). Developers are encouraged to adhere to
593
+ privacy regulations with privacy-preserving techniques.
594
+
595
+ </details>
596
+
597
+
598
+ ## Acknowledgement
599
+ 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.