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
 
 
 
 
1
  ---
2
  license: other
3
  ---
4
+
5
+ # <p>BLOOM LM<br/> _BigScience Large Open-source Open-access Multilingual Language Model_ <br/>Model Card</p>
6
+ ![BigScience Logo](https://assets.website-files.com/6139f3cdcbbff3a68486761d/613cd8997b270da063e230c5_Tekengebied%201-p-500.png)
7
+
8
+ Version 1.0 / 23.May.2022
9
+
10
+ ## Table of Contents
11
+ 1. [Model Details](#model-details)
12
+ 2. [Uses](#uses)
13
+ 3. [Training Data](#training-data)
14
+ 4. [Risks and Limitations](#risks-and-limitations)
15
+ 5. [Evaluation](#evaluation)
16
+ 6. [Recommendations](#recommendations)
17
+ 7. [Glossary and Calculations](#glossary-and-calculations)
18
+ 8. [Model Card Authors](#model-card-authors)
19
+
20
+ ## Model Details
21
+
22
+ ### Basics
23
+ *This section provides information for anyone who wants to know about the model.*
24
+ <details>
25
+ <summary>Click to expand</summary> <br/>
26
+
27
+ **Developed by:** [BigScience](https://bigscience.huggingface.co)
28
+ * All collaborators are either volunteers or have an agreement with their employer. [Further breakdown of participants forthcoming.]
29
+
30
+ **Model Type:** Transformer-based Language Model
31
+
32
+ **Version:** 1.0.0
33
+
34
+ **Languages:** Multiple; see [training data](#training-data).
35
+
36
+ **License:** [RAIL License v1.0](https://docs.google.com/document/d/10NMjEKjxR7mrZ5CvugGBVaF6nPEgNxFBIbkH7z5HB-0/edit#)
37
+
38
+ **Released:** [Forthcoming]
39
+
40
+ **Send questions to:** bigscience-contact@googlegroups.com
41
+
42
+ **Cite as:** [BigScience Workshop](https://bigscience.huggingface.co), BigScience Language Open-source Open-access Multilingual (BLOOM). International, May 2021-May 2022.
43
+
44
+ **Funded by:** The French government, [Hugging Face](https://huggingface.co), and the organizations of contributors. [Further breakdown of organizations forthcoming.]
45
+
46
+ </details>
47
+
48
+ ### Technical Specifications
49
+ *This section provides information for people who work on model development.*
50
+ <details>
51
+ <summary>Click to expand</summary><br/>
52
+
53
+ *Please see [the BLOOM training README](https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml#readme) for full details.*
54
+
55
+ **Model Architecture:** Modified from Megatron-LM GPT2 ([paper link](https://arxiv.org/abs/1909.08053)):
56
+
57
+ 1. Layer normalization applied to word embedding layer
58
+
59
+ 2. [ALiBI positional encodings](https://arxiv.org/pdf/2108.12409.pdf)
60
+
61
+ **Objective Function:** [Cross Entropy with mean reduction](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#torch.nn.CrossEntropyLoss)
62
+
63
+ **Number of Parameters:** 350M parameters; 24 layers, 16 attention heads
64
+
65
+ #### **Infrastructure**
66
+
67
+ Compute Infrastructure: [Jean Zay](http://www.idris.fr/eng/jean-zay/jean-zay-presentation-eng.html) Public Supercomputer, provided by the French government
68
+
69
+ Hardware: 384 A100 80GB GPUs (48 nodes)
70
+
71
+ - Additional 32 A100 80GB GPUs (4 nodes) in reserve
72
+
73
+ - 8 GPUs per node Using NVLink 4 inter-gpu connects, 4 OmniPath links
74
+
75
+ - CPU: AMD
76
+
77
+ - CPU memory: 512GB per node
78
+
79
+ - GPU memory: 640GB per node
80
+
81
+ - Inter-node connect: Omni-Path Architecture (OPA)
82
+
83
+ - NCCL-communications network: a fully dedicated subnet
84
+
85
+ - Disc IO network: shared network with other types of nodes
86
+
87
+ Software:
88
+
89
+ - [Megatron-DeepSpeed](https://github.com/bigscience-workshop/Megatron-DeepSpeed), BigScience fork
90
+
91
+ - [DeepSpeed](https://github.com/microsoft/DeepSpeed)
92
+
93
+ - [PyTorch](https://github.com/pytorch/pytorch)-1.11 w/ CUDA-11.5
94
+
95
+ - [apex](https://github.com/NVIDIA/apex)
96
+
97
+
98
+ #### **Training**
99
+
100
+
101
+ _In progress._
102
+
103
+ Checkpoint size:
104
+
105
+ - fp16 weights: 1.04GB
106
+
107
+
108
+ Training throughput: About 150 TFLOP per GPU per second
109
+
110
+ Number of steps: 555750
111
+
112
+ Dates:
113
+ - Started: to determine
114
+ - Ended: to determine
115
+
116
+
117
+ Estimated cost of training: Unknown
118
+
119
+ Server training location: Ile-de-France, France
120
+
121
+ </details>
122
+
123
+
124
+ ### Environmental Impact
125
+
126
+ <details>
127
+ <summary>Click to expand</summary><br/>
128
+
129
+ [More forthcoming when training has completed.]
130
+
131
+ The training supercomputer, [Jean Zay]((http://www.idris.fr/eng/jean-zay/jean-zay-presentation-eng.html)), uses mostly nuclear energy.
132
+
133
+ The heat generated by it is reused for heating campus housing.
134
+
135
+ * Estimated carbon emissions: [Forthcoming]
136
+
137
+ * Estimated electricity usage: [Forthcoming]
138
+ </details>
139
+
140
+ <p>&nbsp;</p>
141
+
142
+ ## Uses
143
+
144
+ *This section addresses questions around how the model is intended to be used, discusses the foreseeable users of the model (including those affected by the model), and describes uses that are considered out of scope or misuse of the model.
145
+ It provides information for anyone considering using the model, or who is affected by the model.*
146
+
147
+
148
+ <details>
149
+ <summary>Click to expand</summary><br/>
150
+
151
+ ### Intended use
152
+
153
+ This model is being created in order to enable public research on large language models (LLMs). LLMs are intended to be used for language generation or as a pretrained base model that can be further fine-tuned for specific tasks. Use cases below are not exhaustive.
154
+
155
+ #### **Direct Use**
156
+
157
+ - Text generation
158
+
159
+ - Exploring characteristics of language generated by a language model.
160
+
161
+ - Examples: Cloze tests, counterfactuals, generations with reframings.
162
+
163
+ #### **Downstream Use**
164
+
165
+ - Tasks that leverage language models include: Information Extraction, Question Answering, Summarization.
166
+
167
+ ### Misuse and Out-of-scope Use
168
+
169
+ *This section addresses what users ought not do with the model.*
170
+
171
+ See the [LLM LICENSE ](https://docs.google.com/document/d/10NMjEKjxR7mrZ5CvugGBVaF6nPEgNxFBIbkH7z5HB-0/edit), Attachment A, for detailed usage restrictions. The below list is non-exhaustive, but lists some easily foreseeable problematic use cases.
172
+
173
+ #### **Out-of-scope Uses**
174
+
175
+ Using the model in [high-stakes](#glossary-and-calculations) settings is out of scope for this model. The model is not designed for [critical decisions](#glossary-and-calculations) nor uses with any material consequences on an individual's livelihood or wellbeing. The model outputs content that appears factual but is not correct.
176
+
177
+ ##### Out-of-scope uses include:
178
+
179
+ - Usage in biomedical domains, political and legal domains, or finance domains.
180
+
181
+ - Usage for evaluating or scoring individuals, such as for employment, education, or credit.
182
+
183
+ - Applying the model for critical automatic decisions, generating factual content, creating reliable summaries, or generating predictions that must be correct.
184
+
185
+ #### **Misuse**
186
+
187
+ Intentionally using the model for harm, violating rights, or other kinds of malicious activities is a misuse of this model. This includes:
188
+
189
+ - Spam generation
190
+
191
+ - Disinformation and influence operations
192
+
193
+ - Disparagement and defamation
194
+
195
+ - Harassment and abuse
196
+
197
+ - Deception
198
+
199
+ - Unconsented impersonation and imitation
200
+
201
+ - Unconsented surveillance
202
+
203
+
204
+ - Generating content without attribution to the model, as specified in the [RAIL License, Use Restrictions](https://docs.google.com/document/d/10NMjEKjxR7mrZ5CvugGBVaF6nPEgNxFBIbkH7z5HB-0/edit#heading=h.3blioxkgzsje).
205
+
206
+ ### Intended Users
207
+
208
+ #### **Direct Users**
209
+
210
+ - General Public
211
+
212
+ - Researchers
213
+
214
+ - Students
215
+
216
+ - Educators
217
+
218
+ - Engineers/developers
219
+
220
+ - Non-commercial entities
221
+
222
+ - Community advocates, including human and civil rights groups
223
+
224
+ #### Indirect Users
225
+
226
+ - Users of derivatives created by Direct Users, such as those using software with an [intended use](#intended-use).
227
+
228
+ - Users of [Derivatives of the Model, as described in the License](https://docs.google.com/document/d/117RhytMYC9HS-1NmWHEn9XBK7vJ5kdv9OcG6AV69Vec/edit#bookmark=id.pvl8781qfes3).
229
+
230
+ #### Others Affected (Parties prenantes)
231
+
232
+ - People and groups referred to by the LLM
233
+
234
+ - People and groups exposed to outputs of, or decisions based on, the LLM
235
+
236
+ - People and groups whose original work is included in the LLM
237
+ </details>
238
+ <p>&nbsp;</p>
239
+
240
+ ## Training Data
241
+ *This section provides a high-level overview of the training data. It is relevant for anyone who wants to know the basics of what the model is learning.*
242
+
243
+
244
+
245
+ <details>
246
+ <summary>Click to expand</summary><br/>
247
+
248
+ *Details for each dataset are provided in individual [Data Cards](https://huggingface.co/spaces/bigscience/BigScienceCorpus).*
249
+
250
+ Training data includes:
251
+
252
+ - 45 natural languages.
253
+
254
+ - 12 programming languages.
255
+
256
+ - In 1.5TB of pre-processed text, converted into 350B unique tokens.
257
+
258
+ See the [Model README, Datasets for more](https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml#datasets).
259
+
260
+ #### **Languages**
261
+ The pie chart shows the distribution of languages in training data.
262
+
263
+ ![pie chart showing the distribution of languages in training data](https://github.com/bigscience-workshop/model_card/blob/main/assets/data/pie_chart.svg?raw=true)
264
+
265
+
266
+
267
+
268
+ The following table shows the further distribution of Niger-Congo and Indic languages in the training data.
269
+ <details>
270
+ <summary>Click to expand</summary><br/>
271
+
272
+ | Niger Congo | Percentage | | Indic | Percentage |
273
+ |----------------|------------ |------ |-----------|------------|
274
+ | Chi Tumbuka | 0.00002 | | Assamese | 0.01 |
275
+ | Kikuyu | 0.00004 | | Odia | 0.04 |
276
+ | Bambara | 0.00004 | | Gujarati | 0.04 |
277
+ | Akan | 0.00007 | | Marathi | 0.05 |
278
+ | Xitsonga | 0.00007 | | Punjabi | 0.05 |
279
+ | Sesotho | 0.00007 | | Kannada | 0.06 |
280
+ | Chi Chewa | 0.0001 | | Nepali | 0.07 |
281
+ | Setswana | 0.0002 | | Telugu | 0.09 |
282
+ | Northern Sotho | 0.0002 | | Malayalam | 0.10 |
283
+ | Fon | 0.0002 | | Urdu | 0.10 |
284
+ | Kirundi | 0.0003 | | Tamil | 0.20 |
285
+ | Wolof | 0.0004 | | Bengali | 0.50 |
286
+ | Kuganda | 0.0004 | | Hindi | 0.70 |
287
+ | Chi Shona | 0.001 |
288
+ | Isi Zulu | 0.001 |
289
+ | Igbo | 0.001 |
290
+ | Xhosa | 0.001 |
291
+ | Kinyarwanda | 0.003 |
292
+ | Yoruba | 0.006 |
293
+ | Swahili | 0.02 |
294
+ </details>
295
+
296
+ The following table shows the distribution of programming languages.
297
+ <details>
298
+ <summary>Click to expand</summary><br/>
299
+
300
+ | Extension | Language | Number of files |
301
+ |----------------|------------|-----------------|
302
+ | java | Java | 5,407,724 |
303
+ | php | PHP | 4,942,186 |
304
+ | cpp | C++ | 2,503,930 |
305
+ | py | Python | 2,435,072 |
306
+ | js | JavaScript | 1,905,518 |
307
+ | cs | C# | 1,577,347 |
308
+ | rb | Ruby | 6,78,413 |
309
+ | cc | C++ | 443,054 |
310
+ | hpp | C++ | 391,048 |
311
+ | lua | Lua | 352,317 |
312
+ | go | GO | 227,763 |
313
+ | ts | TypeScript | 195,254 |
314
+ | C | C | 134,537 |
315
+ | scala | Scala | 92,052 |
316
+ | hh | C++ | 67,161 |
317
+ | H | C++ | 55,899 |
318
+ | tsx | TypeScript | 33,107 |
319
+ | rs | Rust | 29,693 |
320
+ | phpt | PHP | 9,702 |
321
+ | c++ | C++ | 1,342 |
322
+ | h++ | C++ | 791 |
323
+ | php3 | PHP | 540 |
324
+ | phps | PHP | 270 |
325
+ | php5 | PHP | 166 |
326
+ | php4 | PHP | 29 |
327
+
328
+ </details>
329
+ </details>
330
+ <p>&nbsp;</p>
331
+
332
+ ## Risks and Limitations
333
+ *This section identifies foreseeable harms and misunderstandings.*
334
+
335
+
336
+
337
+ <details>
338
+ <summary>Click to expand</summary><br/>
339
+
340
+ Model may:
341
+
342
+ - Overrepresent some viewpoints and underrepresent others
343
+
344
+ - Contain stereotypes
345
+
346
+ - Contain personal information
347
+
348
+
349
+ - Generate:
350
+
351
+ - Hateful, abusive, or violent language
352
+
353
+ - Discriminatory or prejudicial language
354
+
355
+ - Content that may not be appropriate for all settings, including sexual content.
356
+
357
+ - Make errors, including producing incorrect information as if it were factual.
358
+
359
+ - Generate irrelevant or repetitive outputs.
360
+ </details>
361
+ <p>&nbsp;</p>
362
+
363
+ ## Evaluation
364
+ <details>
365
+ <summary>Click to expand</summary><br/>
366
+
367
+ ### Metrics
368
+ *This section describes the different ways performance is calculated, and why.*
369
+
370
+ [More Forthcoming]
371
+
372
+ Includes:
373
+
374
+ | Metric | Why chosen |
375
+ |--------------------|--------------------------------------------------------------------|
376
+ | F1 | Standard for benchmarking |
377
+ | Accuracy | Standard for benchmarking |
378
+ | Perplexity | Standard metric for quantifying model improvements during training |
379
+ | Cross Entropy Loss | Standard objective for language models |
380
+
381
+ And multiple different metrics for specific tasks.
382
+
383
+ ### Factors
384
+ *This section lists some different aspects of what BLOOM models. Its focus is on those aspects that are likely to give rise to high variance in model behavior.*
385
+
386
+ - Language, such as English or Yoruba
387
+ - Domain, such as newswire or stories
388
+ - Demographic characteristics, such as gender or nationality
389
+
390
+ ### Results
391
+ *Results are based on the [Factors](#factors) and [Metrics](#metrics).*
392
+
393
+ **Train-time evaluation:**
394
+
395
+ As of 19.May.2022, 18:00:
396
+
397
+ - Training Loss: 2.04
398
+
399
+ - Validation Loss: 2.21
400
+
401
+ - Perplexity: 9.15
402
+
403
+ [More evaluation types forthcoming at the end of model training.]
404
+ </details>
405
+
406
+ <BR/>
407
+
408
+ ## Recommendations
409
+
410
+ *This section provides information on warnings and potential mitigations.*
411
+
412
+
413
+
414
+ <details>
415
+ <summary>Click to expand</summary><br/>
416
+
417
+ - Indirect users should be made aware when the content they're working with is created by the LLM.
418
+
419
+ - Users should be aware of [Risks and Limitations](#risks-and-limitations), and include an appropriate age disclaimer or blocking interface as necessary.
420
+
421
+ - Models pre-trained with the LLM should include an updated Model Card.
422
+
423
+ - Users of the model should provide mechanisms for those affected to provide feedback, such as an email address for comments.
424
+
425
+ </details>
426
+ <p>&nbsp;</p>
427
+
428
+ ## Glossary and Calculations
429
+
430
+ *This section defines common terms and how metrics are calculated.*
431
+
432
+
433
+
434
+ <details>
435
+ <summary>Click to expand</summary><br/>
436
+
437
+ - **Loss:** A calculation of the difference between what the model has learned and what the data shows ("groundtruth"). The lower the loss, the better. The training process aims to minimize the loss.
438
+
439
+
440
+ - **Perplexity:** This is based on what the model estimates the probability of new data is. The lower the perplexity, the better. If the model is 100% correct at predicting the next token it will see, then the perplexity is 1. Mathematically this is calculated using entropy.
441
+
442
+ - **High-stakes settings:** Such as those identified as "high-risk AI systems" and "unacceptable risk AI systems" in the European Union's proposed [Artificial Intelligence (AI) Act](https://artificialintelligenceact.eu/annexes/).
443
+
444
+ - **Critical decisions**: Such as those defined in [the United States' proposed Algorithmic Accountability Act](https://www.congress.gov/117/bills/s3572/BILLS-117s3572is.pdf).
445
+
446
+ - **Human Rights**: Includes those rights defined in the [Universal Declaration of Human Rights](https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf).
447
+
448
+ - **Personal Data and Information**: Personal data and information is defined in multiple data protection regulations, such as "[personal data](https://gdpr-info.eu/issues/personal-data/)" in the [European Union's General Data Protection Regulation](https://gdpr-info.eu); and "personal information" in the Republic of South Africa's [Protection of Personal Information Act](https://www.gov.za/sites/default/files/gcis_document/201409/3706726-11act4of2013popi.pdf), The People's Republic of China's [Personal information protection law](http://en.npc.gov.cn.cdurl.cn/2021-12/29/c_694559.htm).
449
+
450
+ - **Sensitive Characteristics**: This includes specifically protected categories in human rights (see [UHDR, Article 2](https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf)) and personal information regulation (see GDPR, [Article 9; Protection of Personal Information Act, Chapter 1](https://www.gov.za/sites/default/files/gcis_document/201409/3706726-11act4of2013popi.pdf))
451
+
452
+ - **Deception:** Doing something to intentionally mislead individuals to believe something that is false, such as by creating deadbots or chatbots on social media posing as real people, or generating text documents without making consumers aware that the text is machine generated.
453
+
454
+ </details>
455
+ <p>&nbsp;</p>
456
+
457
+ ## Model Card Authors
458
+ *Ordered roughly chronologically and by amount of time spent.*
459
+
460
+ Margaret Mitchell, Giada Pistilli, Yacine Jernite, Ezinwanne Ozoani, Marissa Gerchick, Nazneen Rajani, Sasha Luccioni, Irene Solaiman, Maraim Masoud, Somaieh Nikpoor, Carlos Muñoz Ferrandis, Stas Bekman, Danish Contractor, David Lansky, Angelina McMillan-Major, Tristan Thrush, Suzana Ilić, Gérard Dupont, Shayne Longpre, Manan Dey, Stella Biderman, Douwe Kiela, Emi Baylor, Teven Le Scao, Aaron Gokaslan, Julien Launay