ybelkada HF staff commited on
Commit
536a915
1 Parent(s): 510180a

Update Model Card

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