RichardErkhov commited on
Commit
c5b6028
1 Parent(s): 9ed677d

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +969 -0
README.md ADDED
@@ -0,0 +1,969 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ salamandra-2b-instruct - GGUF
11
+ - Model creator: https://huggingface.co/BSC-LT/
12
+ - Original model: https://huggingface.co/BSC-LT/salamandra-2b-instruct/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [salamandra-2b-instruct.Q2_K.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q2_K.gguf) | Q2_K | 1.01GB |
18
+ | [salamandra-2b-instruct.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.IQ3_XS.gguf) | IQ3_XS | 1.11GB |
19
+ | [salamandra-2b-instruct.IQ3_S.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.IQ3_S.gguf) | IQ3_S | 1.13GB |
20
+ | [salamandra-2b-instruct.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q3_K_S.gguf) | Q3_K_S | 1.13GB |
21
+ | [salamandra-2b-instruct.IQ3_M.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.IQ3_M.gguf) | IQ3_M | 1.16GB |
22
+ | [salamandra-2b-instruct.Q3_K.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q3_K.gguf) | Q3_K | 1.19GB |
23
+ | [salamandra-2b-instruct.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q3_K_M.gguf) | Q3_K_M | 1.19GB |
24
+ | [salamandra-2b-instruct.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q3_K_L.gguf) | Q3_K_L | 1.23GB |
25
+ | [salamandra-2b-instruct.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.IQ4_XS.gguf) | IQ4_XS | 1.28GB |
26
+ | [salamandra-2b-instruct.Q4_0.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q4_0.gguf) | Q4_0 | 1.31GB |
27
+ | [salamandra-2b-instruct.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.IQ4_NL.gguf) | IQ4_NL | 1.32GB |
28
+ | [salamandra-2b-instruct.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q4_K_S.gguf) | Q4_K_S | 1.35GB |
29
+ | [salamandra-2b-instruct.Q4_K.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q4_K.gguf) | Q4_K | 1.4GB |
30
+ | [salamandra-2b-instruct.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q4_K_M.gguf) | Q4_K_M | 1.4GB |
31
+ | [salamandra-2b-instruct.Q4_1.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q4_1.gguf) | Q4_1 | 1.41GB |
32
+ | [salamandra-2b-instruct.Q5_0.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q5_0.gguf) | Q5_0 | 1.51GB |
33
+ | [salamandra-2b-instruct.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q5_K_S.gguf) | Q5_K_S | 1.53GB |
34
+ | [salamandra-2b-instruct.Q5_K.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q5_K.gguf) | Q5_K | 1.57GB |
35
+ | [salamandra-2b-instruct.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q5_K_M.gguf) | Q5_K_M | 1.57GB |
36
+ | [salamandra-2b-instruct.Q5_1.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q5_1.gguf) | Q5_1 | 1.61GB |
37
+ | [salamandra-2b-instruct.Q6_K.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q6_K.gguf) | Q6_K | 1.79GB |
38
+ | [salamandra-2b-instruct.Q8_0.gguf](https://huggingface.co/RichardErkhov/BSC-LT_-_salamandra-2b-instruct-gguf/blob/main/salamandra-2b-instruct.Q8_0.gguf) | Q8_0 | 2.24GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ license: apache-2.0
46
+ library_name: transformers
47
+ pipeline_tag: text-generation
48
+ language:
49
+ - bg
50
+ - ca
51
+ - code
52
+ - cs
53
+ - cy
54
+ - da
55
+ - de
56
+ - el
57
+ - en
58
+ - es
59
+ - et
60
+ - eu
61
+ - fi
62
+ - fr
63
+ - ga
64
+ - gl
65
+ - hr
66
+ - hu
67
+ - it
68
+ - lt
69
+ - lv
70
+ - mt
71
+ - nl
72
+ - nn
73
+ - \no
74
+ - oc
75
+ - pl
76
+ - pt
77
+ - ro
78
+ - ru
79
+ - sh
80
+ - sk
81
+ - sl
82
+ - sr
83
+ - sv
84
+ - uk
85
+ ---
86
+
87
+ ![](./images/salamandra_header.png)
88
+
89
+ # Salamandra Model Card
90
+
91
+ Salamandra is a highly multilingual model pre-trained from scratch that comes in three different
92
+ sizes — 2B, 7B and 40B parameters — with their respective base and instruction-tuned variants.
93
+ This model card corresponds to the 7B instructed version.
94
+
95
+ To visit the model cards of other Salamandra versions, please refer to the [Model Index](#model-index).
96
+
97
+ The entire Salamandra family is released under a permissive [Apache 2.0 license]((https://www.apache.org/licenses/LICENSE-2.0)).
98
+ Along with the open weights, all training scripts and configuration files are made publicly available in [this GitHub repository](https://github.com/langtech-bsc/salamandra).
99
+
100
+ > [!WARNING]
101
+ > **DISCLAIMER:** This model is a first proof-of-concept designed to demonstrate the instruction-following capabilities of recently released base models.
102
+ > It has been optimized to engage in conversation but has *NOT* been aligned through RLHF to filter or avoid sensitive topics.
103
+ > As a result, it may generate harmful or inappropriate content.
104
+ > The team is actively working to enhance its performance through further instruction and alignment with RL techniques.
105
+
106
+ ---
107
+
108
+ ## Model Details
109
+
110
+ ### Description
111
+
112
+ Transformer-based decoder-only language model that has been pre-trained from scratch on 7.8 trillion tokens of highly curated data.
113
+ The pre-training corpus contains text in 35 European languages and code.
114
+
115
+ ### Hyperparameters
116
+
117
+ The full list of hyperparameters for each model can be found [here](https://github.com/langtech-bsc/salamandra/tree/main/configs).
118
+
119
+ ### Architecture
120
+
121
+ | | |
122
+ |-------------------------|:--------------|
123
+ | Total Parameters | 2,253,490,176 |
124
+ | Embedding Parameters | 524,288,000 |
125
+ | Layers | 24 |
126
+ | Hidden size | 2,048 |
127
+ | Attention heads | 16 |
128
+ | Context length | 8,192 |
129
+ | Vocabulary size | 256,000 |
130
+ | Precision | bfloat16 |
131
+ | Embedding type | RoPE |
132
+ | Activation Function | SwiGLU |
133
+ | Layer normalization | RMS Norm |
134
+ | Flash attention | ✅ |
135
+ | Grouped Query Attention | ❌ |
136
+ | Num. query groups | N/A |
137
+
138
+ ---
139
+
140
+ ## Intended Use
141
+
142
+ ### Direct Use
143
+
144
+ The models are intended for both research and commercial use in any of the languages included in the training data.
145
+ The base models are intended either for language generation or to be further fine-tuned for specific use-cases.
146
+ The instruction-tuned variants can be used as general-purpose assistants, as long as the user is fully aware of the model’s limitations.
147
+
148
+ ### Out-of-scope Use
149
+
150
+ The model is not intended for malicious activities, such as harming others or violating human rights.
151
+ Any downstream application must comply with current laws and regulations.
152
+ Irresponsible usage in production environments without proper risk assessment and mitigation is also discouraged.
153
+
154
+ ---
155
+
156
+ ## Hardware and Software
157
+
158
+ ### Training Framework
159
+
160
+ Pre-training was conducted using NVIDIA’s [NeMo Framework](https://docs.nvidia.com/nemo-framework/index.html),
161
+ which leverages PyTorch Lightning for efficient model training in highly distributed settings.
162
+
163
+ The instruction-tuned versions were produced with [FastChat](https://github.com/lm-sys/FastChat).
164
+
165
+ ### Compute Infrastructure
166
+
167
+ All models were trained on [MareNostrum 5](https://www.bsc.es/ca/marenostrum/marenostrum-5), a pre-exascale EuroHPC supercomputer hosted and
168
+ operated by Barcelona Supercomputing Center.
169
+
170
+ The accelerated partition is composed of 1,120 nodes with the following specifications:
171
+ - 4x Nvidia Hopper GPUs with 64 HBM2 memory
172
+ - 2x Intel Sapphire Rapids 8460Y+ at 2.3Ghz and 32c each (64 cores)
173
+ - 4x NDR200 (BW per node 800Gb/s)
174
+ - 512 GB of Main memory (DDR5)
175
+ - 460GB on NVMe storage
176
+
177
+ |Model|Nodes|GPUs|
178
+ |:---:|:---:|:---:|
179
+ |2B|64|256|
180
+ |7B|128|512|
181
+ |40B|256 / 512|1,024 / 2,048|
182
+
183
+ ---
184
+
185
+ ## How to use
186
+
187
+ The instruction-following models use the commonly adopted ChatML template:
188
+
189
+ ```jinja
190
+ {%- if not date_string is defined %}{%- set date_string = "2024-09-30" %}{%- endif %}{{ "<|im_start|>system\nsystem_message\nToday Date: "+ date_string +"<|im_end|>\n" }}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}
191
+ ```
192
+ Where `system_message` is used to guide the model during generation and `date_string` can be set to allow the model to respond with the current date.
193
+
194
+ The exact same chat template should be used for an enhanced conversational experience.
195
+ The easiest way to apply it is by using the tokenizer's built-in functions, as shown in the following snippet.
196
+
197
+ ```python
198
+ from datetime import datetime
199
+ from transformers import AutoTokenizer, AutoModelForCausalLM
200
+ import transformers
201
+ import torch
202
+
203
+ model_id = "BSC-LT/salamandra-2b-instruct"
204
+
205
+ text = "At what temperature does water boil?"
206
+
207
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
208
+ model = AutoModelForCausalLM.from_pretrained(
209
+ model_id,
210
+ device_map="auto",
211
+ torch_dtype=torch.bfloat16
212
+ )
213
+
214
+ message = [ { "role": "user", "content": text } ]
215
+ date_string = datetime.today().strftime('%Y-%m-%d')
216
+
217
+ prompt = tokenizer.apply_chat_template(
218
+ message,
219
+ tokenize=False,
220
+ add_generation_prompt=True,
221
+ date_string=date_string
222
+ )
223
+
224
+ inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
225
+ outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=200)
226
+
227
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
228
+ ```
229
+ Using this template, each turn is preceded by a `<|im_start|>` delimiter and the role of the entity
230
+ (either `user`, for content supplied by the user, or `assistant` for LLM responses), and finished with the `<|im_end|>` token.
231
+
232
+ ---
233
+
234
+ ## Data
235
+
236
+ ### Pretraining Data
237
+
238
+ The training corpus consists of 2.4 trillion tokens, including 35 European languages and 92 programming languages. It amounts to a total of 33TB of pre-processed text.
239
+ Languages were sampled manually by giving x2 oversampling to Spain's co-official languages (Spanish, Catalan, Galician and Basque), code was undersampled by half,
240
+ and the rest of the languages were kept as is, resulting in the following distribution:
241
+
242
+ ![lang distrib](./images/corpus_languages.png)
243
+
244
+ This highly multilingual corpus is predominantly composed of data from Colossal OSCAR,
245
+ which contributes a significant 66.06% of the total tokens.
246
+ Following this, Starcoder provides 11.91%, and Spanish Crawling adds 3.34%.
247
+ The next largest sources are French FR at 3.12% and Proof Pile at 1.98%.
248
+ Other notable contributions include Macocu, Pile of Law, and Eurlex, each contributing around 1.5% to 1.3%.
249
+ These major sources collectively form the bulk of the corpus, ensuring a rich and diverse dataset for training the language model.
250
+ The remaining 10% comes from smaller sources in various languages.
251
+
252
+ Feel free to click the expand button below to see the full list of sources.
253
+
254
+ <details>
255
+ <summary>Data Sources</summary>
256
+
257
+ | Dataset | Language | Source |
258
+ |-----------------------------------------------|---------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
259
+ | Parlamint corpus | at, bg, cz, dk, ee, es, es-ga, fi, fr, gb, gr, hr, hu, it, lv, nl, no, pl, pt, rs, se, si | Erjavec et al., 2021 |
260
+ | Bulgarian National Corpus | bg | [Link](http://old.dcl.bas.bg/dataset/BulNC.7z) |
261
+ | Crawl of Bulgarian news websites | bg | [Link](http://old.dcl.bas.bg/dataset/Bulgarian_news.7z) |
262
+ | Colossal OSCAR 1.0 | bg, ca, cs, cy, da, de, el, en, es, et, eu, fi, fr, ga, gl, hr, hu, it, lt, lv, mt, nl, nn, no, oc, pl, pt, ro, ru, sh, sk, sl, sr, sv, uk | Brack et al., 2024 |
263
+ | Wikimedia dumps | bg, ca, cs, da, de, el, en, es, et, eu, fi, fr, ga, gl, hr, hu, it, lt, lv, mt, nl, nn, no, pl, pt, ro, sh, sk, sl, sr, uk | [Link](https://dumps.wikimedia.org/) |
264
+ | OpenSubtitlesv2016 | bg, ca, cs, da, de, el, en, es, et, eu, fi, fr, gl, hr, it, lt, lv, nl, no, pl, pt, ro, sk, sl, sr, sv, uk | Lison & Tiedemann, 2016 |
265
+ | MaCoCu web corpus | bg, ca, el, hr, mt, sl, sr, uk | Bañón et al., 2022 |
266
+ | EurLEX-Resources | bg, cs, da, de, el, en, es, et, fi, fr, ga, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv | [Link](https://huggingface.co/datasets/joelniklaus/eurlex_resources) |
267
+ | MC4-Legal | bg, cs, da, de, el, en, es, et, fi, fr, ga, hu, it, lt, lv, mt, nl, pl, pt, ro, sk, sl, sv | [Link](https://huggingface.co/datasets/joelito/legal-mc4) |
268
+ | CURLICAT Corpus | bg, hr, hu, pl, ro, sk, sl | Váradi et al., 2022 |
269
+ | CATalog | ca | Palomar-Giner et al., 2024 |
270
+ | Spanish Crawling | ca, es, eu, gl | Relevant Spanish websites crawling |
271
+ | Starcoder | code | Li et al., 2023 |
272
+ | SYN v9: large corpus of written Czech | cs | Křen et al., 2021 |
273
+ | Welsh-GOV | cy | Crawling from [Link](https://www.llyw.cymru) |
274
+ | DaNewsroom | da | Varab & Schluter, 2020 |
275
+ | Danish GigaWord | da | Strømberg-Derczynski et al., 2021 |
276
+ | DK-CLARIN Reference Corpus of General Danish | da | [Link](https://korpus.dsl.dk/clarin/) |
277
+ | The Danish Parliament Corpus 2009 - 2017, v1 | da | Hansen, 2018 |
278
+ | DeWaC | de | [Link](https://docs.sslmit.unibo.it/doku.php?id=corpora:dewac) |
279
+ | Open Legal Data - German court decisions and laws | de | Ostendorff et al., 2020 |
280
+ | Greek Legal Code | el | Papaloukas et al., 2021 |
281
+ | Greek Web Corpus | el | Outsios et al., 2018 |
282
+ | Auxiliary Mathematics Problems and Solutions (AMPS) dataset | en | Hendrycks et al., 2021 |
283
+ | BIGPATENT | en | Sharma et al., 2019 |
284
+ | FineWeb-Edu (350BT subset) | en | Penedo et al., 2024 |
285
+ | peS2o | en | Soldaini & Lo, 2023 |
286
+ | PG-19 | en | Rae et al., 2019 |
287
+ | Pile of Law (selected subsets) | en | Henderson* et al., 2022 |
288
+ | proof-pile | en | [Link](https://huggingface.co/datasets/hoskinson-center/proof-pile) |
289
+ | RedPajama-Data T1 (StackExchange subset) | en | Computer, 2023 |
290
+ | The Pile (PhilPapers subset) | en | Gao et al., 2021 |
291
+ | Biomedical | es | Internally generated scientific dataset: Dialnet, Scielo, CSIC, TDX, BSC, UCM |
292
+ | HPLTDatasets v1 - Spanish | es | de Gibert et al., 2024 |
293
+ | Legal | es | Internally generated legal dataset: BOE, BORME, Senado, Congreso, Spanish court orders, DOGC |
294
+ | Scientific | es | Internally generated scientific dataset: Wikipedia LS, Pubmed, MeSpEn, patents, clinical cases, medical crawler |
295
+ | Spanish Legal Domain Corpora | es | Gutiérrez-Fandiño et al., 2021 |
296
+ | Estonian National Corpus 2021 | et | Koppel & Kallas, 2022 |
297
+ | Estonian Reference Corpus | et | [Link](https://www.cl.ut.ee/korpused/segakorpus/) |
298
+ | EusCrawl (w/o Wikipedia or NC-licenses) | eu | Artetxe et al., 2022 |
299
+ | Latxa Corpus v1.1 | eu | Etxaniz et al., 2024 [Link](https://huggingface.co/datasets/HiTZ/latxa-corpus-v1.1) |
300
+ | Aya Dataset (w/o Evaluation Suite) | eu, hr, nl, fi, ka, hu, lt, nn, ro, sk, lv, cy, bg, cs, en, fr, de, ga, mt, pl, ru, sl, sv, ca, da, et, gl, el, it, no, pt, sr, es, uk | Singh et al., 2024 |
301
+ | Yle Finnish News Archive | fi | [Link](http://urn.fi/urn:nbn:fi:lb-2021050401) |
302
+ | CaBeRnet: a New French Balanced Reference Corpus | fr | Popa-Fabre et al., 2020 |
303
+ | French Public Domain Books | fr | [Link](https://huggingface.co/datasets/PleIAs/French-PD-Books) |
304
+ | French Public Domain Newspapers | fr | [Link](https://huggingface.co/datasets/PleIAs/French-PD-Newspapers) |
305
+ | Irish Universal Dependencies | ga | [Link](https://universaldependencies.org/ga/index.html) |
306
+ | The Gaois bilingual corpus of English-Irish legislation (Irish legislation) | ga | [Link](https://portulanclarin.net/repository/browse/the-gaois-bilingual-corpus-of-english-irish-legislation-processed/daeac17c9e3511ea9b7f02420a000407b83de243dc0b469aab41084386c5b80f/) |
307
+ | CorpusNÓS | gl | de-Dios-Flores et al., 2024 |
308
+ | Croatian web corpus hrWaC 2.1 | hr | Ljubešić & Klubička, 2014 |
309
+ | ITWaC | it | [Link](https://docs.sslmit.unibo.it/doku.php?id=corpora:itwac) |
310
+ | Corpus of State-related content from the Latvian Web (Processed) | lv | [Link](https://catalog.elra.info/en-us/repository/browse/ELRA-W0169/) |
311
+ | Korpus Malti | mt | Micallef et al., 2022 |
312
+ | SoNaR Corpus NC 1.2 | nl | [Link](https://taalmaterialen.ivdnt.org/download/tstc-sonar-corpus/) |
313
+ | Norwegian Colossal Corpus | nn, no | Kummervold et al., 2021 |
314
+ | Occitan Corpus | oc | Provided by [IEA](https://www.institutestudisaranesi.cat/) |
315
+ | NKJP-PodkorpusMilionowy-1.2 (National Corpus of Polish) | pl | Lewandowska-Tomaszczyk et al., 2013 |
316
+ | Polish Parliamentary Corpus / Korpus Dyskursu Parlamentarnego | pl | Ogrodniczuk, 2018 |
317
+ | Brazilian Portuguese Web as Corpus | pt | Wagner Filho et al., 2018 |
318
+ | ParlamentoPT | pt | Rodrigues et al., 2023 |
319
+ | MARCELL Romanian legislative subcorpus v2 | ro | [Link](https://elrc-share.eu/reposMARCELL%20Romanian%20legislative%20subcorpus%20v2itory/browse/marcell-romanian-legislative-subcorpus-v2/2da548428b9d11eb9c1a00155d026706ce94a6b59ffc4b0e9fb5cd9cebe6889e/) |
320
+ | Korpus slovenských právnych predpisov v1.9 | sk | [Link](https://www.juls.savba.sk/data/marcell/legal-sk-20220322-1.9.ver.xz) |
321
+ | od-justice 2.0 | sk | [Link](https://www.juls.savba.sk/data/od-justice/od-justice-2.0.ver.xz) |
322
+ | Corpus of academic Slovene KAS 2.0 | sl | Žagar et al., 2022 |
323
+ | slWaC web corpus | sl | Erjavec et al., 2015 |
324
+ | SrpKorSubset (news, legal, academic, conversation, literary) | sr | [Link](http://www.korpus.matf.bg.ac.rs/) |
325
+ | The Swedish Culturomics Gigaword Corpus | sv | Rødven-Eide, 2016 |
326
+ | Corpus of laws and legal acts of Ukraine | uk | [Link](https://lang.org.ua/en/corpora/#anchor7) |
327
+
328
+ <details>
329
+ <summary>References</summary>
330
+
331
+ - Abadji, J., Suárez, P. J. O., Romary, L., & Sagot, B. (2021). Ungoliant: An optimized pipeline for the generation of a very large-scale multilingual web corpus (H. Lüngen, M. Kupietz, P. Bański, A. Barbaresi, S. Clematide, & I. Pisetta, Eds.; pp. 1–9). Leibniz-Institut für Deutsche Sprache. [Link](https://doi.org/10.14618/ids-pub-10468)
332
+ - Artetxe, M., Aldabe, I., Agerri, R., Perez-de-Viñaspre, O., & Soroa, A. (2022). Does Corpus Quality Really Matter for Low-Resource Languages?
333
+ - Bañón, M., Esplà-Gomis, M., Forcada, M. L., García-Romero, C., Kuzman, T., Ljubešić, N., van Noord, R., Sempere, L. P., Ramírez-Sánchez, G., Rupnik, P., Suchomel, V., Toral, A., van der Werff, T., & Zaragoza, J. (2022). MaCoCu: Massive collection and curation of monolingual and bilingual data: Focus on under-resourced languages. Proceedings of the 23rd Annual Conference of the European Association for Machine Translation, 303–304. [Link](https://aclanthology.org/2022.eamt-1.41)
334
+ - Brack, M., Ostendorff, M., Suarez, P. O., Saiz, J. J., Castilla, I. L., Palomar-Giner, J., Shvets, A., Schramowski, P., Rehm, G., Villegas, M., & Kersting, K. (2024). Community OSCAR: A Community Effort for Multilingual Web Data. [Link](https://occiglot.eu/papers/Community_Oscar.pdf)
335
+ - Computer, T. (2023). RedPajama: An Open Source Recipe to Reproduce LLaMA training dataset [Computer software]. [Link](https://github.com/togethercomputer/RedPajama-Data)
336
+ - de Gibert, O., Nail, G., Arefyev, N., Bañón, M., van der Linde, J., Ji, S., Zaragoza-Bernabeu, J., Aulamo, M., Ramírez-Sánchez, G., Kutuzov, A., Pyysalo, S., Oepen, S., & Tiedemann, J. (2024). A New Massive Multilingual Dataset for High-Performance Language Technologies (arXiv:2403.14009). arXiv. [Link](http://arxiv.org/abs/2403.14009)
337
+ - Dodge, J., Sap, M., Marasović, A., Agnew, W., Ilharco, G., Groeneveld, D., Mitchell, M., & Gardner, M. (2021). Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpus. In M.-F. Moens, X. Huang, L. Specia, & S. W. Yih (Eds.), Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (pp. 1286–1305). Association for Computational Linguistics. [Link](https://doi.org/10.18653/v1/2021.emnlp-main.98)
338
+ - Erjavec, T., Ljubešić, N., & Logar, N. (2015). The slWaC corpus of the Slovene web. Informatica (Slovenia), 39, 35–42.
339
+ - Erjavec, T., Ogrodniczuk, M., Osenova, P., Ljubešić, N., Simov, K., Grigorova, V., Rudolf, M., Pančur, A., Kopp, M., Barkarson, S., Steingrímsson, S. hór, van der Pol, H., Depoorter, G., de Does, J., Jongejan, B., Haltrup Hansen, D., Navarretta, C., Calzada Pérez, M., de Macedo, L. D., … Rayson, P. (2021). Linguistically annotated multilingual comparable corpora of parliamentary debates ParlaMint.ana 2.1. [Link](http://hdl.handle.net/11356/1431)
340
+ - Etxaniz, J., Sainz, O., Perez, N., Aldabe, I., Rigau, G., Agirre, E., Ormazabal, A., Artetxe, M., & Soroa, A. (2024). Latxa: An Open Language Model and Evaluation Suite for Basque. [Link] (https://arxiv.org/abs/2403.20266)
341
+ - Gao, L., Biderman, S., Black, S., Golding, L., Hoppe, T., Foster, C., Phang, J., He, H., Thite, A., Nabeshima, N., Presser, S., & Leahy, C. (2021). The Pile: An 800GB Dataset of Diverse Text for Language Modeling. CoRR, abs/2101.00027. [Link](https://arxiv.org/abs/2101.00027)
342
+ - Gutiérrez-Fandiño, A., Armengol-Estapé, J., Gonzalez-Agirre, A., & Villegas, M. (2021). Spanish Legalese Language Model and Corpora.
343
+ - Hansen, D. H. (2018). The Danish Parliament Corpus 2009—2017, v1. [Link](http://hdl.handle.net/20.500.12115/8)
344
+ - Henderson*, P., Krass*, M. S., Zheng, L., Guha, N., Manning, C. D., Jurafsky, D., & Ho, D. E. (2022). Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Dataset. arXiv. [Link](https://arxiv.org/abs/2207.00220)
345
+ - Hendrycks, D., Burns, C., Kadavath, S., Arora, A., Basart, S., Tang, E., Song, D., & Steinhardt, J. (2021). Measuring Mathematical Problem Solving With the MATH Dataset. NeurIPS.
346
+ - Jansen, T., Tong, Y., Zevallos, V., & Suarez, P. O. (2022). Perplexed by Quality: A Perplexity-based Method for Adult and Harmful Content Detection in Multilingual Heterogeneous Web Data.
347
+ - Koppel, K., & Kallas, J. (2022). Eesti keele ühendkorpuste sari 2013–2021: Mahukaim eestikeelsete digitekstide kogu. Eesti Rakenduslingvistika Ühingu Aastaraamat Estonian Papers in Applied Linguistics, 18, 207–228. [Link](https://doi.org/10.5128/erya18.12)
348
+ - Křen, M., Cvrček, V., Henyš, J., Hnátková, M., Jelínek, T., Kocek, J., Kováříková, D., Křivan, J., Milička, J., Petkevič, V., Procházka, P., Skoumalová, H., Šindlerová, J., & Škrabal, M. (2021). SYN v9: Large corpus of written Czech. [Link](http://hdl.handle.net/11234/1-4635)
349
+ - Kreutzer, J., Caswell, I., Wang, L., Wahab, A., van Esch, D., Ulzii-Orshikh, N., Tapo, A., Subramani, N., Sokolov, A., Sikasote, C., Setyawan, M., Sarin, S., Samb, S., Sagot, B., Rivera, C., Rios, A., Papadimitriou, I., Osei, S., Suarez, P. O., … Adeyemi, M. (2022). Quality at a Glance: An Audit of Web-Crawled Multilingual Datasets. Transactions of the Association for Computational Linguistics, 10, 50–72. [Link](https://doi.org/10.1162/tacl_a_00447)
350
+ - Kummervold, P. E., De la Rosa, J., Wetjen, F., & Brygfjeld, S. A. (2021). Operationalizing a National Digital Library: The Case for a Norwegian Transformer Model. In S. Dobnik & L. Øvrelid (Eds.), Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa) (pp. 20–29). Linköping University Electronic Press, Sweden. [Link](https://aclanthology.org/2021.nodalida-main.3)
351
+ - Lewandowska-Tomaszczyk, B., Górski, R., Łaziński, M., & Przepiórkowski, A. (2013). The National Corpus of Polish (NKJP). Language use and data analysis. 309–319.
352
+ - Li, R., Allal, L. B., Zi, Y., Muennighoff, N., Kocetkov, D., Mou, C., Marone, M., Akiki, C., Li, J., Chim, J., Liu, Q., Zheltonozhskii, E., Zhuo, T. Y., Wang, T., Dehaene, O., Davaadorj, M., Lamy-Poirier, J., Monteiro, J., Shliazhko, O., … Vries, H. de. (2023). StarCoder: May the source be with you!
353
+ - Lison, P., & Tiedemann, J. (2016). OpenSubtitles2016: Extracting Large Parallel Corpora from Movie and TV Subtitles. In N. Calzolari, K. Choukri, T. Declerck, S. Goggi, M. Grobelnik, B. Maegaard, J. Mariani, H. Mazo, A. Moreno, J. Odijk, & S. Piperidis (Eds.), Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC’16) (pp. 923–929). European Language Resources Association (ELRA). [Link](https://aclanthology.org/L16-1147)
354
+ - Ljubešić, N., & Klubička, F. (2014). Bs,hr,srWaC - Web Corpora of Bosnian, Croatian and Serbian. In F. Bildhauer & R. Schäfer (Eds.), Proceedings of the 9th Web as Corpus Workshop (WaC-9) (pp. 29–35). Association for Computational Linguistics. [Link](https://doi.org/10.3115/v1/W14-0405)
355
+ - Micallef, K., Gatt, A., Tanti, M., van der Plas, L., & Borg, C. (2022). Pre-training Data Quality and Quantity for a Low-Resource Language: New Corpus and BERT Models for Maltese. Proceedings of the Third Workshop on Deep Learning for Low-Resource Natural Language Processing, 90–101. [Link](https://doi.org/10.18653/v1/2022.deeplo-1.10)
356
+ - Ogrodniczuk, M. (2018). Polish Parliamentary Corpus. [Link](https://api.semanticscholar.org/CorpusID:235134113)
357
+ - Ostendorff, M., Blume, T., & Ostendorff, S. (2020). Towards an Open Platform for Legal Information. Proceedings of the ACM/IEEE Joint Conference on Digital Libraries in 2020, 385–388. [Link](https://doi.org/10.1145/3383583.3398616)
358
+ - Ostendorff, M., Suarez, P. O., Lage, L. F., & Rehm, G. (2024). LLM-Datasets: An Open Framework for Pretraining Datasets of Large Language Models. First Conference on Language Modeling. [Link](https://openreview.net/forum?id=5RdIMlGLXL)
359
+ - Outsios, S., Skianis, K., Meladianos, P., Xypolopoulos, C., & Vazirgiannis, M. (2018). Word Embeddings from Large-Scale Greek Web content. arXiv Preprint arXiv:1810.06694.
360
+ - Palomar-Giner, J., Saiz, J. J., Espuña, F., Mina, M., Da Dalt, S., Llop, J., Ostendorff, M., Ortiz Suarez, P., Rehm, G., Gonzalez-Agirre, A., & Villegas, M. (2024). A CURATEd CATalog: Rethinking the Extraction of Pretraining Corpora for Mid-Resourced Languages. In N. Calzolari, M.-Y. Kan, V. Hoste, A. Lenci, S. Sakti, & N. Xue (Eds.), Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024) (pp. 335–349). ELRA and ICCL. [Link](https://aclanthology.org/2024.lrec-main.31)
361
+ - Papaloukas, C., Chalkidis, I., Athinaios, K., Pantazi, D.-A., & Koubarakis, M. (2021). Multi-granular Legal Topic Classification on Greek Legislation. Proceedings of the Natural Legal Language Processing Workshop 2021, 63–75. [Link](https://doi.org/10.48550/arXiv.2109.15298)
362
+ - Popa-Fabre, M., Ortiz Suárez, P. J., Sagot, B., & de la Clergerie, É. (2020). French Contextualized Word-Embeddings with a sip of CaBeRnet: A New French Balanced Reference Corpus. Proceedings of the 8th Workshop on Challenges in the Management of Large Corpora, 15–23. [Link](https://aclanthology.org/2020.cmlc-1.3)
363
+ - Rae, J. W., Potapenko, A., Jayakumar, S. M., Hillier, C., & Lillicrap, T. P. (2019). Compressive Transformers for Long-Range Sequence Modelling. arXiv Preprint. [Link](https://arxiv.org/abs/1911.05507)
364
+ - Rodrigues, J., Gomes, L., Silva, J., Branco, A., Santos, R., Cardoso, H. L., & Osório, T. (2023). Advancing Neural Encoding of Portuguese with Transformer Albertina PT-\*.
365
+ - Rødven-Eide, S. (2016). The Swedish Culturomics Gigaword CorpusThe Swedish Culturomics Gigaword Corpus [Dataset]. Språkbanken Text. [Link](https://doi.org/10.23695/3WMV-1Z09)
366
+ - Sharma, E., Li, C., & Wang, L. (2019). BIGPATENT: A Large-Scale Dataset for Abstractive and Coherent Summarization. CoRR, abs/1906.03741. [Link](http://arxiv.org/abs/1906.03741)
367
+ - Soldaini, L., & Lo, K. (2023). peS2o (Pretraining Efficiently on S2ORC) Dataset. Allen Institute for AI.
368
+ - Strømberg-Derczynski, L., Ciosici, M., Baglini, R., Christiansen, M. H., Dalsgaard, J. A., Fusaroli, R., Henrichsen, P. J., Hvingelby, R., Kirkedal, A., Kjeldsen, A. S., Ladefoged, C., Nielsen, F. Å., Madsen, J., Petersen, M. L., Rystrøm, J. H., & Varab, D. (2021). The Danish Gigaword Corpus. Proceedings of the 23rd Nordic Conference on Computational Linguistics (NoDaLiDa), 413–421. [Link](https://aclanthology.org/2021.nodalida-main.46)
369
+ - Subramani, N., Luccioni, S., Dodge, J., & Mitchell, M. (2023). Detecting Personal Information in Training Corpora: An Analysis. 208–220. [Link](https://doi.org/10.18653/v1/2023.trustnlp-1.18)
370
+ - Varab, D., & Schluter, N. (2020). DaNewsroom: A Large-scale Danish Summarisation Dataset. Proceedings of The 12th Language Resources and Evaluation Conference, 6731–6739. [Link](https://www.aclweb.org/anthology/2020.lrec-1.831)
371
+ - Váradi, T., Nyéki, B., Koeva, S., Tadić, M., Štefanec, V., Ogrodniczuk, M., Nitoń, B., Pezik, P., Barbu Mititelu, V., Irimia, E., Mitrofan, M., Tufi\textcommabelows, D., Garabík, R., Krek, S., & Repar, A. (2022). Introducing the CURLICAT Corpora: Seven-language Domain Specific Annotated Corpora from Curated Sources. In N. Calzolari, F. Béchet, P. Blache, K. Choukri, C. Cieri, T. Declerck, S. Goggi, H. Isahara, B. Maegaard, J. Mariani, H. Mazo, J. Odijk, & S. Piperidis (Eds.), Proceedings of the Thirteenth Language Resources and Evaluation Conference (pp. 100–108). European Language Resources Association. [Link](https://aclanthology.org/2022.lrec-1.11)
372
+ - Wagner Filho, J. A., Wilkens, R., Idiart, M., & Villavicencio, A. (2018). The brwac corpus: A new open resource for brazilian portuguese. Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).
373
+ - Žagar, A., Kavaš, M., Robnik-Šikonja, M., Erjavec, T., Fišer, D., Ljubešić, N., Ferme, M., Borovič, M., Boškovič, B., Ojsteršek, M., & Hrovat, G. (2022). Corpus of academic Slovene KAS 2.0. [Link](http://hdl.handle.net/11356/1448)
374
+ - Alicia Parrish, Angelica Chen, Nikita Nangia, Vishakh Padmakumar, Jason Phang, Jana Thompson, Phu Mon Htut, and Samuel Bowman. 2022. BBQ: A hand-built bias benchmark for question answering. In Findings of the Association for Computational Linguistics: ACL 2022, pages 2086–2105, Dublin, Ireland. Association for Computational Linguistics.
375
+ - Emily Sheng, Kai-Wei Chang, Premkumar Natarajan, and Nanyun Peng. 2019. The Woman Worked as a Babysitter: On Biases in Language Generation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 3407–3412, Hong Kong, China. Association for Computational Linguistics.
376
+ - Clark, P., Cowhey, I., Etzioni, O., Khot, T., Sabharwal, A., Schoenick, C., & Tafjord, O. (2018). Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge. arXiv:1803. 05457v1.
377
+ - Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. 2013. Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1631–1642, Seattle, Washington, USA. Association for Computational Linguistics.
378
+ - Penedo, G., Kydlíček, H., allal, L. B., Lozhkov, A., Mitchell, M., Raffel, C., Von Werra, L., & Wolf, T. (2024). The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale (arXiv:2406.17557). arXiv. http://arxiv.org/abs/2406.17557
379
+ - Singh, S., Vargus, F., Dsouza, D., Karlsson, B. F., Mahendiran, A., Ko, W.-Y., Shandilya, H., Patel, J., Mataciunas, D., OMahony, L., Zhang, M., Hettiarachchi, R., Wilson, J., Machado, M., Moura, L. S., Krzemiński, D., Fadaei, H., Ergün, I., Okoh, I., … Hooker, S. (2024). Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuning (arXiv:2402.06619). arXiv. http://arxiv.org/abs/2402.06619
380
+
381
+ </details>
382
+
383
+ </details>
384
+
385
+ The model was trained for 3 epochs, with two final rounds of 0.3B higher-quality tokens each,
386
+ meaning that the total number of tokens seen during pre-training amounts to roughly 7.8 trillion tokens.
387
+
388
+ We provide an extense Datasheet section following the best practices defined by [(Gebru et al., 2021)](https://arxiv.org/pdf/1803.09010).
389
+
390
+ <details>
391
+ <summary>Datasheet</summary>
392
+
393
+ #### Motivation
394
+
395
+ **For what purpose was the dataset created? Was there a specific task in mind? Was there a specific gap that needed to be filled? Please provide a description.**
396
+
397
+ The purpose of creating this dataset is to pre-train the Salamandra family of multilingual models with high performance in a large number of
398
+ European languages (35) and code (including 92 different programming languages). In addition, we aim to represent especially the co-official
399
+ languages of Spain: Spanish, Catalan, Galician, and Basque. This is the reason why we carry out an oversampling of these languages.
400
+
401
+ We detected that there is a great lack of massive multilingual data, especially in minority languages (Ostendorff & Rehm, 2023), so part of
402
+ our efforts in the creation of this pre-training dataset have resulted in the contribution to large projects such as the Community OSCAR
403
+ (Brack et al., 2024), which includes 151 languages and 40T words, or CATalog (Palomar-Giner et al., 2024), the largest open dataset in
404
+ Catalan in the world.
405
+
406
+ **Who created the dataset (e.g., which team, research group) and on behalf of which entity (e.g., company, institution, organization)?**
407
+
408
+ The dataset has been created by the Language Technologies unit (LangTech) of the Barcelona Supercomputing Center - Centro Nacional de
409
+ Supercomputación (BSC-CNS), which aims to advance the field of natural language processing through cutting-edge research and development
410
+ and the use of HPC. In particular, it was created by the unit's data team, the main contributors being Javier Saiz, Ferran Espuña, and
411
+ Jorge Palomar.
412
+
413
+ However, the creation of the dataset would not have been possible without the collaboration of a large number of collaborators, partners,
414
+ and public institutions, which can be found in detail in the acknowledgements.
415
+
416
+ **Who funded the creation of the dataset? If there is an associated grant, please provide the name of the grantor and the grant name and number.**
417
+
418
+ This work/research has been promoted and financed by the Government of Catalonia through the [Aina project](https://projecteaina.cat/).
419
+
420
+ #### Composition
421
+
422
+ **What do the instances that comprise the dataset represent (e.g., documents, photos, people, countries)? Are there multiple types of instances (e.g., movies, users, and ratings; people and interactions between them; nodes and edges)? Please provide a description.**
423
+
424
+ The dataset consists entirely of text documents in various languages. Specifically, data was mainly sourced from the following databases and
425
+ repositories:
426
+ - **Common Crawl:** Repository that holds website data and is run by the Common Crawl non-profit organization. It is updated monthly and is
427
+ distributed under the CC0 1.0 public domain license.
428
+ - **GitHub:** Community platform that allows developers to create, store, manage, and share their code. Repositories are crawled and then
429
+ distributed with their original licenses, which may vary from permissive to non-commercial licenses.
430
+ - **Wikimedia:** Database that holds the collection databases managed by the Wikimedia Foundation, including Wikipedia, Wikibooks, Wikinews,
431
+ Wikiquote, Wikisource, and Wikivoyage. It is updated monthly and is distributed under Creative Commons Attribution-ShareAlike License 4.0.
432
+ - **EurLex:** Repository that holds the collection of legal documents from the European Union, available in all of the EU’s 24 official
433
+ languages and run by the Publications Office of the European Union. It is updated daily and is distributed under the Creative Commons
434
+ Attribution 4.0 International license.
435
+ - **Other repositories:** Specific repositories were crawled under permission for domain-specific corpora, which include academic, legal,
436
+ and newspaper repositories.
437
+
438
+ We provide a complete list of dataset sources at the end of this section.
439
+
440
+ **How many instances are there in total (of each type, if appropriate)?**
441
+
442
+ The dataset contains a diverse range of instances across multiple languages, with notable adjustments for certain languages. English
443
+ represents the largest portion, accounting for 39.08% of the total data. Spanish was upsampled by a factor of 2, bringing its share to 16.59%,
444
+ while Catalan (1.84%), Basque (0.26%), and Galician (0.36%) were also upsampled by 2. On the other hand, code-related data was downsampled
445
+ by half, making up 6.42% of the total. Other prominent languages include French (6.59%), Russian (5.39%), German (4.25%), and Hungarian
446
+ (3.93%), with several additional languages contributing between 1% and 2%, and smaller portions represented by a variety of others.
447
+
448
+ **Does the dataset contain all possible instances or is it a sample (not necessarily random) of instances from a larger set? If the dataset is a sample, then what is the larger set? Is the sample representative of the larger set (e.g., geographic coverage)? If so, please describe how this representativeness was validated/verified. If it is not representative of the larger set, please describe why not (e.g., to cover a more diverse range of instances, because instances were withheld or unavailable).**
449
+
450
+ The dataset is a sample from multiple sources, with different weights based on the primary language of the content: Spanish, Catalan,
451
+ Basque, and Galician content was upsampled by a factor of two, while programming languages were downsampled by a factor of half. Other
452
+ sources were sampled in proportion to their occurrence.
453
+
454
+ **What data does each instance consist of? “Raw” data (e.g., unprocessed text or images) or features? In either case, please provide a description.**
455
+
456
+ Each instance consists of a text document processed for deduplication, language identification, and source-specific filtering. Some
457
+ documents required optical character recognition (OCR) to extract text from non-text formats such as PDFs.
458
+
459
+ **Is there a label or target associated with each instance? If so, please provide a description.**
460
+
461
+ Each instance is labeled with a unique identifier, the primary language of the content, and the URL for web-sourced instances. Additional
462
+ labels were automatically assigned to detect specific types of content —harmful or toxic content— and to assign preliminary indicators of
463
+ undesired qualities —very short documents, high density of symbols, etc.— which were used for filtering instances.
464
+
465
+ **Is any information missing from individual instances? If so, please provide a description, explaining why this information is missing (e.g., because it was unavailable). This does not include intentionally removed information, but might include, e.g., redacted text.**
466
+
467
+ No significant information is missing from the instances.
468
+
469
+ **Are relationships between individual instances made explicit (e.g., users’ movie ratings, social network links)? If so, please describe how these relationships are made explicit.**
470
+
471
+ Instances are related through shared metadata, such as source and language identifiers.
472
+
473
+ **Are there recommended data splits (e.g., training, development/validation, testing)? If so, please provide a description of these splits, explaining the rationale behind them.**
474
+
475
+ The dataset is split randomly into training, validation, and test sets.
476
+
477
+ **Are there any errors, sources of noise, or redundancies in the dataset? If so, please provide a description.**
478
+
479
+ Despite removing duplicated instances within each source, redundancy remains at the paragraph and sentence levels, particularly in
480
+ web-sourced instances where SEO techniques and templates contribute to repeated textual patterns. Some instances may also be duplicated
481
+ across sources due to format variations.
482
+
483
+ **Is the dataset self-contained, or does it link to or otherwise rely on external resources (e.g., websites, tweets, other datasets)? If it links to or relies on external resources, a) are there guarantees that they will exist, and remain constant, over time; b) are there official archival versions of the complete dataset (i.e., including the external resources as they existed at the time the dataset was created); c) are there any restrictions (e.g., licenses, fees) associated with any of the external resources that might apply to a dataset consumer? Please provide descriptions of all external resources and any restrictions associated with them, as well as links or other access points, as appropriate.**
484
+
485
+ The dataset is self-contained and does not rely on external resources.
486
+
487
+ **Does the dataset contain data that might be considered confidential (e.g., data that is protected by legal privilege or by doctor–patient confidentiality, data that includes the content of individuals’ non-public communications)? If so, please provide a description.**
488
+
489
+ The dataset does not contain confidential data.
490
+
491
+ **Does the dataset contain data that, if viewed directly, might be offensive, insulting, threatening, or might otherwise cause anxiety? If so, please describe why. If the dataset does not relate to people, you may skip the remaining questions in this section.**
492
+
493
+ The dataset includes web-crawled content, which may overrepresent pornographic material across languages (Kreutzer et al., 2022). Although
494
+ pre-processing techniques were applied to mitigate offensive content, the heterogeneity and scale of web-sourced data make exhaustive
495
+ filtering challenging, which makes it next to impossible to identify all adult content without falling into excessive filtering, which may
496
+ negatively influence certain demographic groups (Dodge et al., 2021).
497
+
498
+ **Does the dataset identify any subpopulations (e.g., by age, gender)? If so, please describe how these subpopulations are identified and provide a description of their respective distributions within the dataset.**
499
+
500
+ The dataset does not explicitly identify any subpopulations.
501
+
502
+ **Is it possible to identify individuals (i.e., one or more natural persons), either directly or indirectly (i.e., in combination with other data) from the dataset? If so, please describe how.**
503
+
504
+ Web-sourced instances in the dataset may contain personally identifiable information (PII) that is publicly available on the Web, such as
505
+ names, IP addresses, email addresses, and phone numbers. While it would be possible to indirectly identify individuals through the
506
+ combination of multiple data points, the nature and scale of web data makes it difficult to parse such information. In any case, efforts are
507
+ made to filter or anonymize sensitive data during pre-processing, but some identifiable information may remain in the dataset.
508
+
509
+ **Does the dataset contain data that might be considered sensitive in any way? If so, please provide a description.**
510
+
511
+ Given that the dataset includes web-sourced content and other publicly available documents, instances may inadvertently reveal financial
512
+ information, health-related details, or forms of government identification, such as social security numbers (Subramani et al., 2023),
513
+ especially if the content originates from less-regulated sources or user-generated platforms.
514
+
515
+ #### Collection Process
516
+
517
+ **How was the data collected?**
518
+
519
+ This dataset is constituted by combining several sources, whose acquisition methods can be classified into three groups:
520
+ - Web-sourced datasets with some preprocessing available under permissive license (p.e. Common Crawl).
521
+ - Domain-specific or language-specific raw crawls (p.e. Spanish Crawling).
522
+ - Manually curated data obtained through collaborators, data providers (by means of legal assignment agreements) or open source projects
523
+ (p.e. CATalog).
524
+
525
+ **What mechanisms or procedures were used to collect the data? How were these mechanisms or procedures validated?**
526
+
527
+ According to the three groups previously defined, these are the mechanisms used in each of them:
528
+ - Open direct download. Validation: data integrity tests.
529
+ - Ad-hoc scrapers or crawlers. Validation: software unit and data integrity tests.
530
+ - Direct download via FTP, SFTP, API or S3. Validation: data integrity tests.
531
+
532
+ **If the dataset is a sample from a larger set, what was the sampling strategy?**
533
+
534
+ The sampling strategy was to use the whole dataset resulting from the filtering explained in the ‘preprocessing/cleaning/labelling’ section,
535
+ with the particularity that an upsampling of 2 (i.e. twice the probability of sampling a document) was performed for the co-official
536
+ languages of Spain (Spanish, Catalan, Galician, Basque), and a downsampling of 1/2 was applied for code (half the probability of sampling a
537
+ code document, evenly distributed among all programming languages).
538
+
539
+ **Who was involved in the data collection process and how were they compensated?**
540
+
541
+ This data is generally extracted, filtered and sampled by automated processes. The code required to run these processes has been developed
542
+ entirely by members of the LangTech data team, or otherwise obtained from open-source software. Furthermore, there has been no monetary
543
+ consideration for acquiring data from suppliers.
544
+
545
+ **Over what timeframe was the data collected? Does this timeframe match the creation timeframe of the data associated with the instances? If not, please describe the timeframe in which the data associated with the instances was created.**
546
+
547
+ Data were acquired and processed from April 2023 to April 2024. However, as mentioned, much data has been obtained from open projects such
548
+ as Common Crawl, which contains data from 2014, so it is the end date (04/2024) rather than the start date that is important.
549
+
550
+ **Were any ethical review processes conducted? If so, please provide a description of these review processes, including the outcomes, as well as a link or other access point to any supporting documentation.**
551
+
552
+ No particular ethical review process has been carried out as the data is mostly open and not particularly sensitive. However, we have an
553
+ internal evaluation team and a bias team to monitor ethical issues. In addition, we work closely with ‘Observatori d'Ètica en Intel·ligència
554
+ Artificial’ (OEIAC) and ‘Agencia Española de Supervisión de la Inteligencia Artificial’ (AESIA) to audit the processes we carry out from an
555
+ ethical and legal point of view, respectively.
556
+
557
+ #### Preprocessing
558
+
559
+ **Was any preprocessing/cleaning/labeling of the data done? If so, please provide a description. If not, you may skip the remaining questions in this section.**
560
+
561
+ Instances of text documents were not altered, but web-sourced documents were filtered based on specific criteria along two dimensions:
562
+ - Quality: documents with a score lower than 0.8, based on undesired qualities, such as documents with low number of lines, very short
563
+ sentences, presence of long footers and headers, and high percentage of punctuation, obtained through CURATE (Palomar-Giner et al., 2024)
564
+ were filtered out.
565
+ - Harmful or adult content: documents originating from Colossal OSCAR were filtered using LLM-Datasets (Ostendorff et al., 2024) based on
566
+ the perplexity from a language model (‘harmful_pp’ field) provided by the Ungoliant pipeline (Abadji et al., 2021).
567
+
568
+ **Was the “raw” data saved in addition to the preprocessed/cleaned/labeled data? If so, please provide a link or other access point to the “raw” data.**
569
+
570
+ The original raw data was not kept.
571
+
572
+ **Is the software that was used to preprocess/clean/label the data available? If so, please provide a link or other access point.**
573
+
574
+ Yes, the preprocessing and filtering software is open-sourced. The [CURATE](https://github.com/langtech-bsc/CURATE) pipeline was used for Spanish Crawling and CATalog,
575
+ and the [Ungoliant](https://github.com/oscar-project/ungoliant) pipeline was used for the OSCAR project.
576
+
577
+ #### Uses
578
+
579
+ **Has the dataset been used for any tasks already? If so, please provide a description.**
580
+
581
+ Pre-train the Salamandra model family.
582
+
583
+ **What (other) tasks could the dataset be used for?**
584
+
585
+ The data can be used primarily to pre-train other language models, which can then be used for a wide range of use cases. The dataset could
586
+ also be used for other tasks such as fine-tuning language models, cross-lingual NLP tasks, machine translation, domain-specific text
587
+ generation, and language-specific data analysis.
588
+
589
+ **Is there anything about the composition of the dataset or the way it was collected and preprocessed/cleaned/labeled that might impact future uses? Is there anything a dataset consumer could do to mitigate these risks or harms?**
590
+
591
+ Web-crawled content is over-represented with standard language varieties, impacting language model performance for minority languages.
592
+ Language diversity in data is crucial to avoid bias, especially in encoding non-standard dialects, preventing the exclusion of demographic
593
+ groups. Moreover, despite legal uncertainties in web-scraped data, we prioritize permissive licenses and privacy protection measures,
594
+ acknowledging the challenges posed by personally identifiable information (PII) within large-scale datasets. Our ongoing efforts aim to
595
+ address privacy concerns and contribute to a more inclusive linguistic dataset.
596
+
597
+ **Are there tasks for which the dataset should not be used?**
598
+
599
+ -
600
+
601
+ #### Distribution
602
+
603
+ **Will the dataset be distributed to third parties outside of the entity on behalf of which the dataset was created? If so, please provide a description.**
604
+
605
+ The dataset will not be released or distributed to third parties. Any related question to distribution is omitted in this section.
606
+
607
+ #### Maintenance
608
+
609
+ **Who will be supporting/hosting/maintaining the dataset?**
610
+
611
+ The dataset will be hosted by the Language Technologies unit (LangTech) of the Barcelona Supercomputing Center (BSC). The team will ensure
612
+ regular updates and monitor the dataset for any issues related to content integrity, legal compliance, and bias for the sources they are
613
+ responsible for.
614
+
615
+ **How can the owner/curator/manager of the dataset be contacted?**
616
+
617
+ The data owner may be contacted with the email address langtech@bsc.es.
618
+
619
+ **Will the dataset be updated?**
620
+
621
+ The dataset will not be updated.
622
+
623
+ **If the dataset relates to people, are there applicable limits on the retention of the data associated with the instances? If so, please describe these limits and explain how they will be enforced.**
624
+
625
+ The dataset does not keep sensitive data that could allow direct identification of individuals, apart from the data that is publicly
626
+ available in web-sourced content. Due to the sheer volume and diversity of web data, it is not feasible to notify individuals or manage data
627
+ retention on an individual basis. However, efforts are made to mitigate the risks associated with sensitive information through
628
+ pre-processing and filtering to remove identifiable or harmful content. Despite these measures, vigilance is maintained to address potential
629
+ privacy and ethical issues.
630
+
631
+ **Will older versions of the dataset continue to be supported/hosted/maintained? If so, please describe how. If not, please describe how its obsolescence will be communicated to dataset consumers.**
632
+
633
+ Since the dataset will not be updated, only the final version will be kept.
634
+
635
+ **If others want to extend/augment/build on/contribute to the dataset, is there a mechanism for them to do so?**
636
+
637
+ The dataset does not allow for external contributions.
638
+
639
+ </details>
640
+
641
+ ### Finetuning Data
642
+
643
+ This instruction-tuned variant has been trained with a mixture of 276k English, Spanish, and Catalan multi-turn instructions gathered from open datasets:
644
+ | Dataset | ca | en | es |
645
+ |-----------------------|:------:|:------:|:------:|
646
+ | alpaca-cleaned | - | 50,000 | - |
647
+ | aya-dataset | - | 3,944 | 3,854 |
648
+ | CoQCat | 4,797 | - | - |
649
+ | databricks-dolly-15k | - | 15,011 | - |
650
+ | dolly-3k-ca | 3,232 | - | - |
651
+ | flores-instr | 1,994 | 1,994 | 3,988 |
652
+ | MentorCA | 7,122 | - | - |
653
+ | MentorES | - | - | 7,122 |
654
+ | no-robots | - | 9,499 | - |
655
+ | oasst-ca | 2,518 | - | - |
656
+ | oasst2 | 750 | 31,086 | 15,438 |
657
+ | open-orca | - | 50,000 | - |
658
+ | RagMultilingual | 16,043 | 14,997 | 11,263 |
659
+ | tower-blocks | - | 19,895 | 2,000 |
660
+ | **Total** | **36,456** | **196,426** | **43,665** |
661
+
662
+ ---
663
+
664
+ ## Evaluation
665
+
666
+ ### Gold-standard benchmarks
667
+
668
+ Evaluation is done using the Language Model Evaluation Harness (Gao et al., 2024). We evaluate on a set of tasks taken from [SpanishBench](https://github.com/EleutherAI/lm-evaluation-harness/tree/main/lm_eval/tasks/spanish_bench), [CatalanBench](https://github.com/EleutherAI/lm-evaluation-harness/tree/main/lm_eval/tasks/catalan_bench), [BasqueBench](https://github.com/EleutherAI/lm-evaluation-harness/tree/main/lm_eval/tasks/basque_bench) and [GalicianBench](https://github.com/EleutherAI/lm-evaluation-harness/tree/main/lm_eval/tasks/galician_bench). These benchmarks include both new and existing tasks and datasets. Given that this is an instructed model, we add LM Evaluation Harness's native feature of `chat-template` to the setup. In the tables below, we include the results in a selection of evaluation datasets that represent model's performance across a variety of tasks within these benchmarks.
669
+
670
+ We only use tasks that are either human generated, human translated, or with a strong human-in-the-loop (i.e., machine translation followed by professional revision or machine generation followed by human revision and annotation). This is the reason behind the variety in number of tasks reported across languages. As more tasks that fulfill these requirements are published, we will update the presented results. We also intend to expand the evaluation to other languages, as long as the datasets meet our quality standards.
671
+
672
+ During the implementation of the evaluation we observed a series of issues worth considering when replicating and interpreting the results presented. These issues include ≈1.5% variances in performance in some tasks depending on the version of the `transformers` library used, and depending on the use (or lack of use) of tensor parallelism when loading a model. When implementing existing tasks, we carry out a comprehensive quality evaluation of the dataset, the Harness task itself, and what kind of input models see during evaluation. Our implementation (see links above) addresses multiple existing problems such as errors in datasets and prompts, and lack of pre-processing. All this means that results will vary if using other Harness implementations, and may slightly vary depending on the replication setup.
673
+
674
+ It should be noted that these results are subject to all the drawbacks of every current gold-standard evaluation, and that the figures do not fully represent the models capabilities and potential. We thus advise caution when reading and interpreting the results.
675
+
676
+ A full list of results compared to other baselines, a discussion of the model's performance across tasks and its implications, and details regarding problem-solving with task implementation will soon be available in the technical report.
677
+
678
+ All results reported below are on a 0-shot setting.
679
+
680
+ #### Spanish
681
+
682
+ <table><thead>
683
+ <tr>
684
+ <th>Category</th>
685
+ <th>Task</th>
686
+ <th>Metric</th>
687
+ <th>Result</th>
688
+ </tr></thead>
689
+ <tbody>
690
+ <tr>
691
+ <td>Commonsense Reasoning</td>
692
+ <td>xstorycloze_es</td>
693
+ <td>acc</td>
694
+ <td>62.34</td>
695
+ </tr>
696
+ <tr>
697
+ <td rowspan="2">NLI</td>
698
+ <td>wnli_es</td>
699
+ <td>acc</td>
700
+ <td>47.89</td>
701
+ </tr>
702
+ <tr>
703
+ <td>xnli_es</td>
704
+ <td>acc</td>
705
+ <td>47.03</td>
706
+ </tr>
707
+ <tr>
708
+ <td>Paraphrasing</td>
709
+ <td>paws_es</td>
710
+ <td>acc</td>
711
+ <td>55.5</td>
712
+ </tr>
713
+ <tr>
714
+ <td>QA</td>
715
+ <td>xquad_es</td>
716
+ <td>acc</td>
717
+ <td>42.21</td>
718
+ </tr>
719
+ <tr>
720
+ <td>Translation</td>
721
+ <td>flores_es</td>
722
+ <td>bleu</td>
723
+ <td>20.27</td>
724
+ </tr>
725
+ </tbody>
726
+ </table>
727
+
728
+ #### Catalan
729
+
730
+ <table><thead>
731
+ <tr>
732
+ <th>Category</th>
733
+ <th>Task</th>
734
+ <th>Metric</th>
735
+ <th>Result</th>
736
+ </tr></thead>
737
+ <tbody>
738
+ <tr>
739
+ <td rowspan="2">Commonsense Reasoning</td>
740
+ <td>copa_ca</td>
741
+ <td>acc</td>
742
+ <td>70.4</td>
743
+ </tr>
744
+ <tr>
745
+ <td>xstorycloze_ca</td>
746
+ <td>acc</td>
747
+ <td>63.07</td>
748
+ </tr>
749
+ <tr>
750
+ <td rowspan="2">NLI</td>
751
+ <td>wnli_ca</td>
752
+ <td>acc</td>
753
+ <td>52.11</td>
754
+ </tr>
755
+ <tr>
756
+ <td>xnli_ca</td>
757
+ <td>acc</td>
758
+ <td>51.69</td>
759
+ </tr>
760
+ <tr>
761
+ <td rowspan="2">Paraphrasing</td>
762
+ <td>parafraseja</td>
763
+ <td>acc</td>
764
+ <td>61.88</td>
765
+ </tr>
766
+ <tr>
767
+ <td>paws_ca</td>
768
+ <td>acc</td>
769
+ <td>57.7</td>
770
+ </tr>
771
+ <tr>
772
+ <td rowspan="5">QA</td>
773
+ <td>arc_ca_easy</td>
774
+ <td>acc</td>
775
+ <td>51.94</td>
776
+ </tr>
777
+ <tr>
778
+ <td>arc_ca_challenge</td>
779
+ <td>acc</td>
780
+ <td>29.52</td>
781
+ </tr>
782
+ <tr>
783
+ <td>openbookqa_ca</td>
784
+ <td>acc</td>
785
+ <td>26.4</td>
786
+ </tr>
787
+ <tr>
788
+ <td>piqa_ca</td>
789
+ <td>acc</td>
790
+ <td>62.89</td>
791
+ </tr>
792
+ <tr>
793
+ <td>siqa_ca</td>
794
+ <td>acc</td>
795
+ <td>42.63</td>
796
+ </tr>
797
+ <tr>
798
+ <td>Translation</td>
799
+ <td>flores_ca</td>
800
+ <td>bleu</td>
801
+ <td>24.48</td>
802
+ </tr>
803
+ </tbody></table>
804
+
805
+ #### Basque
806
+
807
+ <table><thead>
808
+ <tr>
809
+ <th>Category</th>
810
+ <th>Task</th>
811
+ <th>Metric</th>
812
+ <th>Result</th>
813
+ </tr></thead>
814
+ <tbody>
815
+ <tr>
816
+ <td rowspan="2">Commonsense Reasoning</td>
817
+ <td>xcopa_eu</td>
818
+ <td>acc</td>
819
+ <td>53.6</td>
820
+ </tr>
821
+ <tr>
822
+ <td>xstorycloze_eu</td>
823
+ <td>acc</td>
824
+ <td>56.39</td>
825
+ </tr>
826
+ <tr>
827
+ <td rowspan="2">NLI</td>
828
+ <td>wnli_eu</td>
829
+ <td>acc</td>
830
+ <td>45.07</td>
831
+ </tr>
832
+ <tr>
833
+ <td>xnli_eu</td>
834
+ <td>acc</td>
835
+ <td>39.44</td>
836
+ </tr>
837
+ <tr>
838
+ <td rowspan="3">QA</td>
839
+ <td>eus_exams</td>
840
+ <td>acc</td>
841
+ <td>25.35</td>
842
+ </tr>
843
+ <tr>
844
+ <td>eus_proficiency</td>
845
+ <td>acc</td>
846
+ <td>26.37</td>
847
+ </tr>
848
+ <tr>
849
+ <td>eus_trivia</td>
850
+ <td>acc</td>
851
+ <td>26.24</td>
852
+ </tr>
853
+ <tr>
854
+ <td>Reading Comprehension</td>
855
+ <td>eus_reading</td>
856
+ <td>acc</td>
857
+ <td>24.72</td>
858
+ </tr>
859
+ <tr>
860
+ <td>Translation</td>
861
+ <td>flores_eu</td>
862
+ <td>bleu</td>
863
+ <td>9.67</td>
864
+ </tr>
865
+ </tbody></table>
866
+
867
+ #### Galician
868
+
869
+ <table><thead>
870
+ <tr>
871
+ <th>Category</th>
872
+ <th>Task</th>
873
+ <th>Metric</th>
874
+ <th>Result</th>
875
+ </tr></thead>
876
+ <tbody>
877
+ <tr>
878
+ <td rowspan="2">Paraphrasing</td>
879
+ <td>parafrases_gl</td>
880
+ <td>acc</td>
881
+ <td>50.00</td>
882
+ </tr>
883
+ <tr>
884
+ <td>paws_gl</td>
885
+ <td>acc</td>
886
+ <td>52.20</td>
887
+ </tr>
888
+ <tr>
889
+ <td>QA</td>
890
+ <td>openbookqa_gl</td>
891
+ <td>acc</td>
892
+ <td>33.2</td>
893
+ </tr>
894
+ <tr>
895
+ <td>Translation</td>
896
+ <td>flores_gl</td>
897
+ <td>bleu</td>
898
+ <td>22.39</td>
899
+ </tr>
900
+ </tbody>
901
+ </table>
902
+
903
+
904
+ ---
905
+
906
+ ## Ethical Considerations and Limitations
907
+
908
+ We examine the presence of undesired societal and cognitive biases present in this model using different benchmarks. For societal biases, we test performance using the BBQ dataset (Parrish et al., 2022) in the original English and the Regard dataset (Sheng et al., 2019). We report that moderate accuracies (between 0.5 and 0.6 depending on the social groups) in disambiguated settings, the model performs very poorly in ambiguous setting. Taken together, these results suggest the pervasiveness of social biases that may have an effect on task performance
909
+
910
+ Our cognitive bias analysis focuses on positional effects in 0-shot settings, and majority class bias in few-shot settings. For positional effects, we leverage the ARC Multiple Choice Question dataset (Clark et al., 2018). We observe significant, but moderate weak primacy effects, whereby the model shows a preference for answers towards the beginning of the list of provided answers. We measure effects of majority class effects in few-shot settings using SST-2 (Socher et al., 2013). We again detect significant effects, with a small effect size. This suggests that the model is relatively robust against the examined cognitive biases.
911
+
912
+ We highlight that our analyses of these biases are by no means exhaustive and are limited by the relative scarcity of adequate resources in all languages present in the training data. We aim to gradually extend and expand our analyses in future work.
913
+
914
+ These results can be expected from a model that has undergone only a preliminary instruction tuning. These tests are performed in order to show the biases the model may contain. We urge developers to take them into account and perform safety testing and tuning tailored to their specific applications of the model.
915
+
916
+ ---
917
+
918
+ ## Additional information
919
+
920
+ ### Author
921
+ The Language Technologies Unit from Barcelona Supercomputing Center.
922
+
923
+ ### Contact
924
+ For further information, please send an email to <langtech@bsc.es>.
925
+
926
+ ### Copyright
927
+ Copyright(c) 2024 by Language Technologies Unit, Barcelona Supercomputing Center.
928
+
929
+ ### Funding
930
+ This work has been promoted and financed by the Government of Catalonia through the [Aina Project](https://projecteaina.cat/).
931
+
932
+ This work is funded by the _Ministerio para la Transformación Digital y de la Función Pública_ - Funded by EU – NextGenerationEU
933
+ within the framework of [ILENIA Project](https://proyectoilenia.es/) with reference 2022/TL22/00215337.
934
+
935
+ ### Acknowledgements
936
+
937
+ This project has benefited from the contributions of numerous teams and institutions, mainly through data contributions, knowledge transfer or technical support.
938
+
939
+ In Catalonia, many institutions have been involved in the project. Our thanks to Òmnium Cultural, Parlament de Catalunya, Institut d'Estudis Aranesos, Racó Català, Vilaweb, ACN, Nació Digital, El món and Aquí Berguedà.
940
+
941
+ At national level, we are especially grateful to our ILENIA project partners: CENID, HiTZ and CiTIUS for their participation. We also extend our genuine gratitude to the Spanish Senate and Congress, Fundación Dialnet, Fundación Elcano and the ‘Instituto Universitario de Sistemas Inteligentes y Aplicaciones Numéricas en Ingeniería (SIANI)’ of the University of Las Palmas de Gran Canaria.
942
+
943
+ At the international level, we thank the Welsh government, DFKI, Occiglot project, especially Malte Ostendorff, and The Common Crawl Foundation, especially Pedro Ortiz, for their collaboration. We would also like to give special thanks to the NVIDIA team, with whom we have met regularly, specially to: Ignacio Sarasua, Adam Henryk Grzywaczewski, Oleg Sudakov, Sergio Perez, Miguel Martinez, Felipes Soares and Meriem Bendris. Their constant support has been especially appreciated throughout the entire process.
944
+
945
+ Their valuable efforts have been instrumental in the development of this work.
946
+
947
+ ### Disclaimer
948
+ Be aware that the model may contain biases or other unintended distortions.
949
+ When third parties deploy systems or provide services based on this model, or use the model themselves,
950
+ they bear the responsibility for mitigating any associated risks and ensuring compliance with applicable regulations,
951
+ including those governing the use of Artificial Intelligence.
952
+
953
+ The Barcelona Supercomputing Center, as the owner and creator of the model, shall not be held liable for any outcomes resulting from third-party use.
954
+
955
+ ### Citation
956
+
957
+ Technical report and paper coming soon.
958
+
959
+ ### License
960
+ [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
961
+
962
+ ## Model Index
963
+ |Model|Base|Instruct|
964
+ |:---:|:---:|:---:|
965
+ |2B| [Link](https://huggingface.co/BSC-LT/salamandra-2b) | [Link](https://huggingface.co/BSC-LT/salamandra-2b-instruct) |
966
+ |7B| [Link](https://huggingface.co/BSC-LT/salamandra-7b) | [Link](https://huggingface.co/BSC-LT/salamandra-7b-instruct) |
967
+ |40B| WiP | WiP |
968
+
969
+