cjvt
/

dvres commited on
Commit
e01c481
·
verified ·
1 Parent(s): 34ab4d4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +334 -3
README.md CHANGED
@@ -1,3 +1,334 @@
1
- ---
2
- license: gemma
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ language:
4
+ - sl
5
+ - en
6
+ - hr
7
+ - sr
8
+ - bs
9
+ base_model:
10
+ - cjvt/GaMS-27B
11
+ pipeline_tag: text-generation
12
+ ---
13
+
14
+ # Model Card for GaMS-27B-Instruct
15
+
16
+ GaMS-2B, GaMS-9B and GaMS-27B represent new improved and larger models of the GaMS (Generative Model for Slovene) familly. The models are based on Google's Gemma 2 familly and continually pretrained on Slovene, English and some portion of Croatian, Serbian and Bosnian corpora.
17
+
18
+ This is the SFT version of GaMS-27B model
19
+
20
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/652d40a78fa1fbb0aae165bb/D8J-d46hv1wZsglcMrZPC.png)
21
+
22
+ ## Acknowledgment
23
+
24
+ The model was developed within the [PoVeJMo](https://www.cjvt.si/povejmo/en/project/) research program (Adaptive Natural Language Processing with Large Language Models), particularly within the research project titled SloLLaMai -- Open-access computationally efficient models for Slovenian. The program is funded within the Recovery and Resilience Plan by the Slovenian Research and Innovation Agency (ARIS) and NextGenerationEU. The authors also acknowledge the financial support from the Slovenian Research and Innovation Agency (research core funding No. P6-0411 -- Language Resources and Technologies for Slovene).
25
+
26
+ We thank everyone who worked on data collection and preparation, enabling us to train our model. Special thanks go to Nikola Ljubešić, Taja Kuzman, Tjaša Arčon, Jaka Čibej, Simon Krek, Tomaž Erjavec, Iztok Kosem and Tomaž Savodnik.
27
+
28
+ ## Basic information
29
+
30
+ - **Developed by:** team of researchers at the University of Ljubljana, Faculty for Computer and Information Science. Team members: Domen Vreš, Iztok Lebar Bajec, Tjaša Arčon, Gašper Jelovčan and Marko Robnik-Šikonja.
31
+ - **Languages:** Slovene, English (primary), Croatian, Bosnian and Serbian (secondary). The model might also work for other languages supported by Gemma 2, even though it was not continually pretrained on them.
32
+ - **Base model:** [cjvt/GaMS-27B](https://huggingface.co/cjvt/GaMS-27B)
33
+ - **License:** [Gemma](https://ai.google.dev/gemma/terms)
34
+
35
+ ## Usage
36
+
37
+ The model can be run through `pipeline` API using the following code:
38
+
39
+ ```python
40
+ from transformers import pipeline
41
+
42
+ model_id = "cjvt/GaMS-27B-Instruct"
43
+
44
+ pline = pipeline(
45
+ "text-generation",
46
+ model=model_id,
47
+ device_map="cuda" # replace with "mps" to run on a Mac device
48
+ )
49
+
50
+ # Example of response generation
51
+ message = [{"role": "user", "content": "Kateri je najpomembnejši dogodek v slovenski zgodovini?"}]
52
+ response = pipeline(message, max_new_tokens=512)
53
+ print("Model's response:", response[0]["generated_text"][-1]["content"])
54
+
55
+ # Example of conversation chain
56
+ new_message = response[0]["generated_text"]
57
+ new_message.append({"role": "user", "content": "Lahko bolj podrobno opišeš ta dogodek?"})
58
+ response = pipeline(new_message, max_new_tokens=1024)
59
+ print("Model's response:", response[0]["generated_text"][-1]["content"])
60
+ ```
61
+
62
+ For multi GPU inference set the `device_map` to `auto`:
63
+
64
+ ```python
65
+ from transformers import pipeline
66
+
67
+ model_id = "cjvt/GaMS-27B-Instruct"
68
+
69
+ pline = pipeline(
70
+ "text-generation",
71
+ model=model_id,
72
+ device_map="auto"
73
+ )
74
+
75
+ # Example of response generation
76
+ message = [{"role": "user", "content": "Kateri je najpomembnejši dogodek v slovenski zgodovini?"}]
77
+ response = pipeline(message, max_new_tokens=512)
78
+ print("Model's response:", response[0]["generated_text"][-1]["content"])
79
+
80
+ # Example of conversation chain
81
+ new_message = response[0]["generated_text"]
82
+ new_message.append({"role": "user", "content": "Lahko bolj podrobno opišeš ta dogodek?"})
83
+ response = pipeline(new_message, max_new_tokens=1024)
84
+ print("Model's response:", response[0]["generated_text"][-1]["content"])
85
+ ```
86
+
87
+ ## Data
88
+
89
+ ### CPT Data
90
+
91
+ Model was continually pre-trained in two stages. In the first stage, parallel English-Slovene (and Croatian in some cases) corpora was used to align the languages. In the second stage, the model was trained on separate English, Slovene, Croatian, Bosnian and Serbian corpora.
92
+
93
+ #### Parallel alignment corpora
94
+
95
+ | Corpus | Alignment level | # Tokens | Percentage |
96
+ | :----- | :------- | :------: | :--------: |
97
+ | KAS Abstracts | Document level | 31 M | 1.65 % |
98
+ | DGT | Separate documents | 697 M | 36.56 % |
99
+ | MaCoCu Parallel | Separate documents | 430 M | 22.53 % |
100
+ | CC-News | Paragraph level | 749 M | 39.25 % |
101
+ | Total | | 1.91 B | |
102
+
103
+ Explanation of each alignment level:
104
+ - Document level: Parallel documents were concatenated into a single document
105
+ - Separate documents: Parallel documents were not explicitly aligned
106
+ - Paragraph level: Paragraphs of parallel documents were concatenated (the first paragraph of Slovene/English document was followed by the first paragraph in the other language, which was then followed by the second paragraph in the first language and so on)
107
+
108
+ #### Second stage corpora
109
+
110
+ | Corpus | Language | # Tokens | Percentage |
111
+ | :----- | :------- | :------: | :--------: |
112
+ | [KAS](https://www.clarin.si/repository/xmlui/handle/11356/1448) | Slovene | 2.77 B | 20.34 % |
113
+ | [MetaFida](https://www.clarin.si/repository/xmlui/handle/11356/1775)* | Slovene | 4.66 B | 34.18 % |
114
+ | [Wikipedia-En](https://huggingface.co/datasets/zidsi/wikipedia_markdown) (Date: January 23rd 2025) | English | 5.45 B | 39.99 % |
115
+ | [Wikipedia-Sl](https://huggingface.co/datasets/zidsi/wikipedia_markdown) (Date: January 1st 2025) | Slovene | 0.16 B | 1.19 % |
116
+ | [Wikipedia-Hr](https://huggingface.co/datasets/zidsi/wikipedia_markdown) (Date: January 1st 2025) | Croatian | 0.15 B | 1.13 % |
117
+ | [Wikipedia-Bs](https://huggingface.co/datasets/zidsi/wikipedia_markdown) (Date: January 1st 2025) | Bosnian | 0.07 B | 0.50 % |
118
+ | [Wikipedia-Sr-Latin](https://huggingface.co/datasets/zidsi/wikipedia_markdown)* | Serbian | 0.36 B | 2.68 % |
119
+ | Total | | 13.62 B | |
120
+
121
+ Remarks:
122
+ - The following corpora was excluded from MetaFida: dgt15_sl, classlawiki_sl, tweet_sl, janes_tweet, janes_forum, janes_news
123
+ - Serbian Wikipedia was converted from Cyrillic to Latin
124
+
125
+ ### SFT Data
126
+
127
+ Our training data for SFT consisted out of approximately 25.000 training and 1500 validation examples. The dataset was a mixture of following datasets:
128
+
129
+ - [GaMS-Instruct-GEN 1.0](https://www.clarin.si/repository/xmlui/handle/11356/1971)
130
+ - [GaMS-Instruct-DH 1.0](https://www.clarin.si/repository/xmlui/handle/11356/1975): 3000 randomly selected examples were chosen from this dataset
131
+ - [GaMS-Instruct-MED 1.0](https://www.clarin.si/repository/xmlui/handle/11356/1982): 3000 randomly selected examples were chosen from this dataset
132
+ - [Parallel corpus EN-SL RSDO4 2.0](https://www.clarin.si/repository/xmlui/handle/11356/1698): additional filtering was done on this corpus. First we ran FastText language identification using [NeMo Curator](https://docs.nvidia.com/nemo-framework/user-guide/latest/datacuration/languageidentification.html) and kept only the examples were source was detected as English and target as Slovene. Next, we ran [COMET](https://huggingface.co/Unbabel/wmt23-cometkiwi-da-xxl) model to evaluate translations. We kept only the examples with COMET scores higher than 0.945 (approximatelly 8000 examples).
133
+ - [Aya Dataset](https://huggingface.co/datasets/CohereForAI/aya_dataset): only English and Serbian examples were taken from this dataset. Serbian examples were converted from Cyrillic to Latin.
134
+ - [Math competitions](https://www.dmfa.si/Tekmovanja/MaSSA/ArhivNalog.aspx): We took PDFs from Slovene national math competitions between years 2001 and 2010. We extracted text from PDFs using [olmOCR](https://huggingface.co/allenai/olmOCR-7B-0225-preview) and manually corrected the extracted text. This gave us around 150 solved math problems.
135
+
136
+ ## Training
137
+
138
+ The model was trained on the Booster partition of [Leonardo HPC](https://www.hpc.cineca.it/systems/hardware/leonardo/).
139
+
140
+ ### CPT
141
+
142
+ We continually pretrained the model using [NVIDIA NeMo 2.0 framework](https://github.com/NVIDIA/NeMo). The model was trained in BF16-Mixed precision using tensor parallelism across 8 GPUs, sequence parallelism, and activation recomputation. The model was trained across 32 nodes, each containing 4 A100 64GB GPUs. The parallel alignment training took approximately 8 hours and second stage took approximately 110 hours.
143
+
144
+ The model was trained using a cosine learning rate scheduler with linear warmup and the following hyperparameters.
145
+
146
+ **Parallel alignment**:
147
+ - warmup steps: 150
148
+ - minimal learning rate: 5e-6
149
+ - maximal learning rate: 2e-5
150
+ - constant steps: 0
151
+ - batch size: 512 (4 million tokens)
152
+
153
+ **Second stage**:
154
+ - warmup steps: 500
155
+ - minimal learning rate: 5e-6
156
+ - maximal learning rate: 5e-5
157
+ - constant steps: 100
158
+ - batch size: 512 (4 million tokens)
159
+
160
+ ### SFT
161
+
162
+ As a contrast to 2B and 9B models, the 27B was supervised fine-tuned using NeMo framework, which enables easier scalng. The model was trained in BF16 precision, using tensor parallelism to split it across 4 GPUs, sequence parallelism, and activation recomputation. The model was trained on 8 nodes with 4 A100 64 GB GPU.
163
+
164
+ The model was tuned using a cosine learning rate scheduler with linear warmup and the following hyperparameters:
165
+
166
+ - number of epochs: training was done on 5 epochs, but the best performing model according to validation loss was obtained after the second epoch, so we kept that model
167
+ - batch size: 128
168
+ - warmup steps: 150
169
+ - minimal learning rate: 1e-8
170
+ - maximal learning rate: 5e-6
171
+ - constant steps: 0
172
+
173
+ ## Evaluation
174
+
175
+ The models were evaluated using [Slovene SuperGLUE](https://slobench.cjvt.si/leaderboard/view/3) collection of classification tasks on [SloBench](https://slobench.cjvt.si). Instruct version of the model was also evaluated on translation [from English to Slovene](https://slobench.cjvt.si/leaderboard/view/8) and [from Slovene to English](https://slobench.cjvt.si/leaderboard/view/7). Additionally, we evaluated our models on [Slovenian-LLM-Eval](https://huggingface.co/datasets/cjvt/slovenian-llm-eval).
176
+
177
+ Code for evaluation:
178
+ - [SloBench tasks](https://github.com/SloLama/slobench_evaluation)
179
+ - [Slovenian-LLM-Eval](https://github.com/SloLama/slovenian-llm-eval)
180
+
181
+ ### Slovenian-LLM-Eval results
182
+
183
+ Comparison between GaMS models, base Gemma 2 models and SlovenianGPT (open source model for Slovene based on Mistral 7B) is shown in the figure below. All models were evaluated in 0-shot scenario.
184
+
185
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/652d40a78fa1fbb0aae165bb/tDyAjB2dgYXv1dLpFHikd.png)
186
+
187
+ ### Slobench Results
188
+
189
+ GaMS 2B, 9B, 27B and 27B-Instruct models were evaluated in 3-shot scenario, except for MultiRC and translation tasks, where 0-shot was used. GaMS-2B-Instruct and GaMS-9B-Instruct were evaluated in 0-shot scenarion on all tasks. We used guided decoding to ensure the correct format of the responses.
190
+
191
+ #### Slovene SuperGLUE
192
+
193
+ | Rank | Title | Average | BoolQ Accuracy | CB Accuracy | CB F1 Score | CB Average | COPA Accuracy | MultiRC EM | MultiRC F1a Score | MultiRC Average | RTE Accuracy | WSC Accuracy |
194
+ |------|------------------------|---------|---------------|-------------|-------------|------------|--------------|------------|----------------|----------------|-------------|-------------|
195
+ | 1 | GaMS-27B | 0.7601 | 0.8333 | 0.6440 | 0.5864 | 0.6152 | 0.9540 | 0.3904 | 0.7504 | 0.5704 | 0.7931 | 0.7945 |
196
+ | 2 | PrešernGPT 0.1 | 0.7568 | 0.8333 | 0.8520 | 0.5868 | 0.7194 | 0.9740 | 0.4985 | 0.8061 | 0.6523 | 0.8276 | 0.5342 |
197
+ | 3 | Gemma 2 27B | 0.7546 | 0.8333 | 0.6680 | 0.5972 | 0.6326 | 0.9140 | 0.4174 | 0.7295 | 0.5735 | 0.8276 | 0.7466 |
198
+ | 4 | GaMS-9B | 0.7309 | 0.7000 | 0.8400 | 0.7955 | 0.8178 | 0.9000 | 0.3243 | 0.6551 | 0.4897 | 0.7931 | 0.6849 |
199
+ | 5 | GaMS-27B-Instruct | 0.7038 | 0.8333 | 0.7200 | 0.6322 | 0.6761 | 0.9400 | 0.0511 | 0.5813 | 0.3162 | 0.7931 | 0.6644 |
200
+ | 6 | GaMS-9B-Instruct (0-shot) | 0.6997 | 0.8000 | 0.7960 | 0.7128 | 0.7544 | 0.8140 | 0.0721 | 0.6174 | 0.3447 | 0.7931 | 0.6918 |
201
+ | 7 | Gemma 2 9B | 0.6980 | 0.8333 | 0.8240 | 0.5683 | 0.6962 | 0.8700 | 0.2282 | 0.5310 | 0.3796 | 0.7241 | 0.6849 |
202
+ | 9 | CroSloEngual BERT | 0.6078 | 0.7333 | 0.7920 | 0.7437 | 0.7679 | 0.5720 | 0.0931 | 0.5241 | 0.3086 | 0.6552 | 0.6096 |
203
+ | 12 | SlovenianGPT-Chat | 0.5078 | 0.7333 | 0.3920 | 0.3829 | 0.3874 | 0.6840 | 0.2432 | 0.4944 | 0.3688 | 0.5172 | 0.3562 |
204
+ | 13 | Gemma 2 2B | 0.4876 | 0.6333 | 0.4520 | 0.2123 | 0.3321 | 0.5180 | 0.1471 | 0.4419 | 0.2945 | 0.5862 | 0.5616 |
205
+ | 14 | GaMS-2B | 0.4790 | 0.5667 | 0.6080 | 0.4880 | 0.5480 | 0.5240 | 0.0631 | 0.5234 | 0.2932 | 0.5517 | 0.3904 |
206
+ | 15 | GaMS-2B-Instruct (0-shot) | 0.4608 | 0.6667 | 0.5120 | 0.2611 | 0.3866 | 0.5000 | 0.0420 | 0.5377 | 0.2899 | 0.5517 | 0.3699 |
207
+ | 16 | GaMS-1B | 0.4604 | 0.5000 | 0.6200 | 0.4565 | 0.5382 | 0.4920 | 0.1351 | 0.2675 | 0.2013 | 0.4828 | 0.5479 |
208
+ | 17 | GaMS-1B-Chat | 0.4570 | 0.8000 | 0.4880 | 0.3023 | 0.3951 | 0.4840 | 0.1081 | 0.2428 | 0.1755 | 0.5172 | 0.3692 |
209
+
210
+
211
+ #### English to Slovene translation (first 11 models on the benchmark)
212
+
213
+ | Rank | Title | BERT score | BLEU (avg) | METEOR (avg) | CHRF (avg) | BLEU (corpus) | CHRF (corpus) |
214
+ |------|---------------------------------|------------|------------|--------------|------------|---------------|---------------|
215
+ | 1 | DeepL Translator | 0.8812 | 0.3153 | 0.5902 | 0.6205 | 0.3599 | 0.6205 |
216
+ | 2 | gemini-1.5-pro | 0.8791 | 0.3124 | 0.5895 | 0.6176 | 0.3569 | 0.6176 |
217
+ | 3 | Sonnet 3.5 | 0.8789 | 0.3059 | 0.5783 | 0.6204 | 0.3442 | 0.6204 |
218
+ | 4 | gpt-4o | 0.8784 | 0.2958 | 0.5811 | 0.6138 | 0.3379 | 0.6138 |
219
+ | 5 | EuroLLM-9B-Instruct | 0.8741 | 0.2927 | 0.5792 | 0.6055 | 0.3273 | 0.6055 |
220
+ | 6 | **GaMS-27B-Instruct** | 0.8734 | 0.2866 | 0.5688 | 0.5986 | 0.3246 | 0.5986 |
221
+ | 7 | seamless-m4t-v2-large | 0.8731 | 0.2780 | 0.5599 | 0.5947 | 0.3085 | 0.5947 |
222
+ | 8 | GaMS-9B-Instruct | 0.8713 | 0.2773 | 0.5616 | 0.5928 | 0.3209 | 0.5928 |
223
+ | 9 | Zlatorog | 0.8706 | 0.2834 | 0.5633 | 0.6014 | 0.2903 | 0.6014 |
224
+ | 10 | RSDO-DS4-NMT 1.2.2 | 0.8705 | 0.2794 | 0.5634 | 0.5956 | 0.3226 | 0.5956 |
225
+ | 10 | META LLAMA 3.1 405B | 0.8705 | 0.2637 | 0.5497 | 0.5930 | 0.3063 | 0.5930 |
226
+ | 12 | RSDO-DS4-NMT 1.2 | 0.8698 | 0.2781 | 0.5602 | 0.5970 | 0.3177 | 0.5970 |
227
+
228
+ #### Slovene to English translation (first 10 models on the benchmark)
229
+
230
+ | Rank | Title | BERT score | BLEU (avg) | METEOR (avg) | CHRF (avg) | BLEU (corpus) | CHRF (corpus) |
231
+ |------|---------------------|------------|------------|--------------|------------|---------------|---------------|
232
+ | 1 | gpt-4o | 0.9496 | 0.3161 | 0.6655 | 0.6297 | 0.3496 | 0.6297 |
233
+ | 2 | gemini-1.5-pro | 0.9489 | 0.3117 | 0.6560 | 0.6237 | 0.3502 | 0.6237 |
234
+ | 3 | gpt-4o-mini | 0.9466 | 0.2976 | 0.6493 | 0.6197 | 0.3328 | 0.6197 |
235
+ | 4 | **GaMS-27B-Instruct** | 0.9455 | 0.2836 | 0.6270 | 0.5972 | 0.3200 | 0.5972 |
236
+ | 5 | GaMS-9B-Instruct | 0.9454 | 0.2821 | 0.6275 | 0.6018 | 0.3141 | 0.6018 |
237
+ | 6 | ChatGPTv1 | 0.9449 | 0.2852 | 0.6415 | 0.6096 | 0.3171 | 0.6096 |
238
+ | 7 | RSDO-DS4-NMT 1.2.4 | 0.9434 | 0.2839 | 0.6227 | 0.5967 | 0.3290 | 0.5967 |
239
+ | 8 | RSDO-DS4-NMT 1.2.6 | 0.9433 | 0.2832 | 0.6207 | 0.5944 | 0.3295 | 0.5944 |
240
+ | 9 | RSDO-DS4-NMT 1.2.2 | 0.9431 | 0.2785 | 0.6184 | 0.5933 | 0.3240 | 0.5933 |
241
+ | 9 | RSDO-DS4-NMT 1.2 | 0.9431 | 0.2805 | 0.6201 | 0.5941 | 0.3231 | 0.5941 |
242
+ | 11 | eTranslation SLEN | 0.9414 | 0.2729 | 0.6175 | 0.5913 | 0.3119 | 0.5913 |
243
+
244
+
245
+ ## Usage and Limitations (taken from Gemma 2)
246
+
247
+ These models have certain limitations that users should be aware of.
248
+
249
+ ### Intended Usage
250
+
251
+ Open Large Language Models (LLMs) have a wide range of applications across
252
+ various industries and domains. The following list of potential uses is not
253
+ comprehensive. The purpose of this list is to provide contextual information
254
+ about the possible use-cases that the model creators considered as part of model
255
+ training and development.
256
+
257
+ * Content Creation and Communication
258
+ * Text Generation: These models can be used to generate creative text formats
259
+ such as poems, scripts, code, marketing copy, and email drafts.
260
+ * Chatbots and Conversational AI: Power conversational interfaces for customer
261
+ service, virtual assistants, or interactive applications.
262
+ * Text Summarization: Generate concise summaries of a text corpus, research
263
+ papers, or reports.
264
+ * Research and Education
265
+ * Natural Language Processing (NLP) Research: These models can serve as a
266
+ foundation for researchers to experiment with NLP techniques, develop
267
+ algorithms, and contribute to the advancement of the field.
268
+ * Language Learning Tools: Support interactive language learning experiences,
269
+ aiding in grammar correction or providing writing practice.
270
+ * Knowledge Exploration: Assist researchers in exploring large bodies of text
271
+ by generating summaries or answering questions about specific topics.
272
+
273
+ ### Limitations
274
+
275
+ * Training Data
276
+ * The quality and diversity of the training data significantly influence the
277
+ model's capabilities. Biases or gaps in the training data can lead to
278
+ limitations in the model's responses.
279
+ * The scope of the training dataset determines the subject areas the model can
280
+ handle effectively.
281
+ * Context and Task Complexity
282
+ * LLMs are better at tasks that can be framed with clear prompts and
283
+ instructions. Open-ended or highly complex tasks might be challenging.
284
+ * A model's performance can be influenced by the amount of context provided
285
+ (longer context generally leads to better outputs, up to a certain point).
286
+ * Language Ambiguity and Nuance
287
+ * Natural language is inherently complex. LLMs might struggle to grasp subtle
288
+ nuances, sarcasm, or figurative language.
289
+ * Factual Accuracy
290
+ * LLMs generate responses based on information they learned from their
291
+ training datasets, but they are not knowledge bases. They may generate
292
+ incorrect or outdated factual statements.
293
+ * Common Sense
294
+ * LLMs rely on statistical patterns in language. They might lack the ability
295
+ to apply common sense reasoning in certain situations.
296
+
297
+ ### Ethical Considerations and Risks
298
+
299
+ The development of large language models (LLMs) raises several ethical concerns.
300
+ In creating an open model, we have carefully considered the following:
301
+
302
+ * Bias and Fairness
303
+ * LLMs trained on large-scale, real-world text data can reflect socio-cultural
304
+ biases embedded in the training material. These models underwent careful
305
+ scrutiny, input data pre-processing described and posterior evaluations
306
+ reported in this card.
307
+ * Misinformation and Misuse
308
+ * LLMs can be misused to generate text that is false, misleading, or harmful.
309
+ * Guidelines are provided for responsible use with the model, see the
310
+ [Responsible Generative AI Toolkit][rai-toolkit].
311
+ * Transparency and Accountability:
312
+ * This model card summarizes details on the models' architecture,
313
+ capabilities, limitations, and evaluation processes.
314
+ * A responsibly developed open model offers the opportunity to share
315
+ innovation by making LLM technology accessible to developers and researchers
316
+ across the AI ecosystem.
317
+
318
+ Risks identified and mitigations:
319
+
320
+ * Perpetuation of biases: It's encouraged to perform continuous monitoring
321
+ (using evaluation metrics, human review) and the exploration of de-biasing
322
+ techniques during model training, fine-tuning, and other use cases.
323
+ * Generation of harmful content: Mechanisms and guidelines for content safety
324
+ are essential. Developers are encouraged to exercise caution and implement
325
+ appropriate content safety safeguards based on their specific product policies
326
+ and application use cases.
327
+ * Misuse for malicious purposes: Technical limitations and developer and
328
+ end-user education can help mitigate against malicious applications of LLMs.
329
+ Educational resources and reporting mechanisms for users to flag misuse are
330
+ provided. Prohibited uses of Gemma models are outlined in the
331
+ [Gemma Prohibited Use Policy][prohibited-use].
332
+ * Privacy violations: Models were trained on data filtered for removal of PII
333
+ (Personally Identifiable Information). Developers are encouraged to adhere to
334
+ privacy regulations with privacy-preserving techniques.