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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: bigscience-bloom-rail-1.0
|
3 |
+
language:
|
4 |
+
- ak
|
5 |
+
- ar
|
6 |
+
- as
|
7 |
+
- bm
|
8 |
+
- bn
|
9 |
+
- ca
|
10 |
+
- code
|
11 |
+
- en
|
12 |
+
- es
|
13 |
+
- eu
|
14 |
+
- fon
|
15 |
+
- fr
|
16 |
+
- gu
|
17 |
+
- hi
|
18 |
+
- id
|
19 |
+
- ig
|
20 |
+
- ki
|
21 |
+
- kn
|
22 |
+
- lg
|
23 |
+
- ln
|
24 |
+
- ml
|
25 |
+
- mr
|
26 |
+
- ne
|
27 |
+
- nso
|
28 |
+
- ny
|
29 |
+
- or
|
30 |
+
- pa
|
31 |
+
- pt
|
32 |
+
- rn
|
33 |
+
- rw
|
34 |
+
- sn
|
35 |
+
- st
|
36 |
+
- sw
|
37 |
+
- ta
|
38 |
+
- te
|
39 |
+
- tn
|
40 |
+
- ts
|
41 |
+
- tum
|
42 |
+
- tw
|
43 |
+
- ur
|
44 |
+
- vi
|
45 |
+
- wo
|
46 |
+
- xh
|
47 |
+
- yo
|
48 |
+
- zh
|
49 |
+
- zhs
|
50 |
+
- zht
|
51 |
+
- zu
|
52 |
+
---
|
53 |
+
|
54 |
+
# <span style="color:red"><b>WARNING:</b> The checkpoints on this repo corresponds to Megatron-Deespeed checkpoints. Use them together with our fork of [Megatron-DeepSpeed](https://github.com/bigscience-workshop/Megatron-DeepSpeed) </span>
|
55 |
+
|
56 |
+
# <p>BLOOM LM<br/> _BigScience Large Open-science Open-access Multilingual Language Model_ <br/>Model Card</p>
|
57 |
+
<img src="https://assets.website-files.com/6139f3cdcbbff3a68486761d/613cd8997b270da063e230c5_Tekengebied%201-p-500.png" alt="BigScience Logo" width="200"/>
|
58 |
+
|
59 |
+
|
60 |
+
Version 1.0 / 20.July.2022 - Model card copied from [bloom-176-intermediate repo](https://huggingface.co/bigscience/bloom-176-intermediate)- Available intermediary checkpoints - global steps:
|
61 |
+
- **95000**
|
62 |
+
|
63 |
+
|
64 |
+
Request adding more checkpoints by adding an issue on this repo.
|
65 |
+
|
66 |
+
|
67 |
+
# Table of Contents
|
68 |
+
1. [Model Details](#model-details)
|
69 |
+
2. [Uses](#uses)
|
70 |
+
3. [Training Data](#training-data)
|
71 |
+
4. [Risks and Limitations](#risks-and-limitations)
|
72 |
+
5. [Evaluation](#evaluation)
|
73 |
+
6. [Recommendations](#recommendations)
|
74 |
+
7. [Glossary and Calculations](#glossary-and-calculations)
|
75 |
+
8. [More Information](#more-information)
|
76 |
+
9. [Model Card Authors](#model-card-authors)
|
77 |
+
|
78 |
+
---
|
79 |
+
|
80 |
+
# Model Details
|
81 |
+
|
82 |
+
BLOOM is a type of language model, which is a probability distribution over sequences of words. Specifically, BLOOM is a Large Language Model (LLM), meaning that it is trained on vast amounts of text data using industrial-scale computational resources. As such, the model is able to capture the statistical tendencies of words, phrases, sentences, and larger spans of text that it is exposed to in the training data.
|
83 |
+
|
84 |
+
## Basics
|
85 |
+
*This section provides information about the model type, version, license, funders, release date, developers, and contact information.*
|
86 |
+
*It is useful for anyone who wants to reference the model.*
|
87 |
+
|
88 |
+
<details>
|
89 |
+
<summary>Click to expand</summary>
|
90 |
+
|
91 |
+
**Developed by:** BigScience ([website](https://bigscience.huggingface.co))
|
92 |
+
|
93 |
+
*All collaborators are either volunteers or have an agreement with their employer. (Further breakdown of participants forthcoming.)*
|
94 |
+
|
95 |
+
**Model Type:** Transformer-based Language Model
|
96 |
+
|
97 |
+
**Version:** 1.0.0
|
98 |
+
|
99 |
+
**Languages:** Multiple; see [training data](#training-data)
|
100 |
+
|
101 |
+
**License:** RAIL License v1.0 ([link](https://huggingface.co/spaces/bigscience/license))
|
102 |
+
|
103 |
+
**Release Date Estimate:** Monday, 11.July.2022
|
104 |
+
|
105 |
+
**Send Questions to:** bigscience-contact@googlegroups.com
|
106 |
+
|
107 |
+
**Cite as:** BigScience, _BigScience Language Open-science Open-access Multilingual (BLOOM) Language Model_. International, May 2021-May 2022
|
108 |
+
|
109 |
+
**Funded by:**
|
110 |
+
|
111 |
+
* The French government.
|
112 |
+
|
113 |
+
* Hugging Face ([website](https://huggingface.co)).
|
114 |
+
|
115 |
+
* Organizations of contributors. *(Further breakdown of organizations forthcoming.)*
|
116 |
+
|
117 |
+
</details>
|
118 |
+
|
119 |
+
## Technical Specifications
|
120 |
+
*This section includes details about the model objective and architecture, and the compute infrastructure.*
|
121 |
+
*It is useful for people interested in model development.*
|
122 |
+
|
123 |
+
<details>
|
124 |
+
<summary>Click to expand</summary>
|
125 |
+
|
126 |
+
Please see [the BLOOM training README](https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml#readme) for full details on replicating training.
|
127 |
+
|
128 |
+
### Model Architecture and Objective
|
129 |
+
|
130 |
+
* Modified from Megatron-LM GPT2 (see [paper](https://arxiv.org/abs/1909.08053), [BLOOM Megatron code](https://github.com/bigscience-workshop/Megatron-DeepSpeed)):
|
131 |
+
|
132 |
+
* Decoder-only architecture
|
133 |
+
|
134 |
+
* Layer normalization applied to word embeddings layer (`StableEmbedding`; see [code](https://github.com/facebookresearch/bitsandbytes), [paper](https://arxiv.org/pdf/2110.02861.pdf))
|
135 |
+
|
136 |
+
* ALiBI positional encodings (see [paper](https://arxiv.org/pdf/2108.12409.pdf)), with GeLU activation functions
|
137 |
+
|
138 |
+
* 176 billion parameters:
|
139 |
+
|
140 |
+
* 70 layers, 112 attention heads
|
141 |
+
|
142 |
+
* Hidden layers are 14336-dimensional
|
143 |
+
|
144 |
+
* Sequence length of 2048 tokens used (see [BLOOM tokenizer](https://huggingface.co/bigscience/tokenizer), [tokenizer description](#tokenization))
|
145 |
+
|
146 |
+
**Objective Function:** Cross Entropy with mean reduction (see [API documentation](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#torch.nn.CrossEntropyLoss)).
|
147 |
+
|
148 |
+
### Compute infrastructure
|
149 |
+
Jean Zay Public Supercomputer, provided by the French government (see [announcement](https://www.enseignementsup-recherche.gouv.fr/fr/signature-du-marche-d-acquisition-de-l-un-des-supercalculateurs-les-plus-puissants-d-europe-46733)).
|
150 |
+
|
151 |
+
#### Hardware
|
152 |
+
|
153 |
+
* 384 A100 80GB GPUs (48 nodes)
|
154 |
+
|
155 |
+
* Additional 32 A100 80GB GPUs (4 nodes) in reserve
|
156 |
+
|
157 |
+
* 8 GPUs per node Using NVLink 4 inter-gpu connects, 4 OmniPath links
|
158 |
+
|
159 |
+
* CPU: AMD
|
160 |
+
|
161 |
+
* CPU memory: 512GB per node
|
162 |
+
|
163 |
+
* GPU memory: 640GB per node
|
164 |
+
|
165 |
+
* Inter-node connect: Omni-Path Architecture (OPA)
|
166 |
+
|
167 |
+
* NCCL-communications network: a fully dedicated subnet
|
168 |
+
|
169 |
+
* Disc IO network: shared network with other types of nodes
|
170 |
+
|
171 |
+
#### Software
|
172 |
+
|
173 |
+
* Megatron-DeepSpeed ([Github link](https://github.com/bigscience-workshop/Megatron-DeepSpeed))
|
174 |
+
|
175 |
+
* DeepSpeed ([Github link](https://github.com/microsoft/DeepSpeed))
|
176 |
+
|
177 |
+
* PyTorch (pytorch-1.11 w/ CUDA-11.5; see [Github link](https://github.com/pytorch/pytorch))
|
178 |
+
|
179 |
+
* apex ([Github link](https://github.com/NVIDIA/apex))
|
180 |
+
|
181 |
+
</details>
|
182 |
+
|
183 |
+
---
|
184 |
+
|
185 |
+
# Training
|
186 |
+
*This section provides information about the training data, the speed and size of training elements, and the environmental impact of training.*
|
187 |
+
*It is useful for people who want to learn more about the model inputs and training footprint.*
|
188 |
+
|
189 |
+
<details>
|
190 |
+
<summary>Click to expand</summary>
|
191 |
+
|
192 |
+
## Training Data
|
193 |
+
*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.*
|
194 |
+
|
195 |
+
Details for each dataset are provided in individual [Data Cards](https://huggingface.co/spaces/bigscience/BigScienceCorpus).
|
196 |
+
|
197 |
+
Training data includes:
|
198 |
+
|
199 |
+
- 45 natural languages
|
200 |
+
|
201 |
+
- 12 programming languages
|
202 |
+
|
203 |
+
- In 1.5TB of pre-processed text, converted into 350B unique tokens (see [the tokenizer section](#tokenization) for more.)
|
204 |
+
|
205 |
+
### Languages
|
206 |
+
|
207 |
+
The pie chart shows the distribution of languages in training data.
|
208 |
+
|
209 |
+
![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)
|
210 |
+
|
211 |
+
|
212 |
+
The following tables shows the further distribution of Niger-Congo & Indic languages and programming languages in the training data.
|
213 |
+
|
214 |
+
Distribution of Niger Congo and Indic languages.
|
215 |
+
|
216 |
+
| Niger Congo | Percentage | | Indic | Percentage |
|
217 |
+
|----------------|------------ |------ |-----------|------------|
|
218 |
+
| Chi Tumbuka | 0.00002 | | Assamese | 0.01 |
|
219 |
+
| Kikuyu | 0.00004 | | Odia | 0.04 |
|
220 |
+
| Bambara | 0.00004 | | Gujarati | 0.04 |
|
221 |
+
| Akan | 0.00007 | | Marathi | 0.05 |
|
222 |
+
| Xitsonga | 0.00007 | | Punjabi | 0.05 |
|
223 |
+
| Sesotho | 0.00007 | | Kannada | 0.06 |
|
224 |
+
| Chi Chewa | 0.0001 | | Nepali | 0.07 |
|
225 |
+
| Setswana | 0.0002 | | Telugu | 0.09 |
|
226 |
+
| Northern Sotho | 0.0002 | | Malayalam | 0.10 |
|
227 |
+
| Fon | 0.0002 | | Urdu | 0.10 |
|
228 |
+
| Kirundi | 0.0003 | | Tamil | 0.20 |
|
229 |
+
| Wolof | 0.0004 | | Bengali | 0.50 |
|
230 |
+
| Kuganda | 0.0004 | | Hindi | 0.70 |
|
231 |
+
| Chi Shona | 0.001 |
|
232 |
+
| Isi Zulu | 0.001 |
|
233 |
+
| Igbo | 0.001 |
|
234 |
+
| Xhosa | 0.001 |
|
235 |
+
| Kinyarwanda | 0.003 |
|
236 |
+
| Yoruba | 0.006 |
|
237 |
+
| Swahili | 0.02 |
|
238 |
+
|
239 |
+
Distribution of programming languages.
|
240 |
+
|
241 |
+
| Extension | Language | Number of files |
|
242 |
+
|----------------|------------|-----------------|
|
243 |
+
| java | Java | 5,407,724 |
|
244 |
+
| php | PHP | 4,942,186 |
|
245 |
+
| cpp | C++ | 2,503,930 |
|
246 |
+
| py | Python | 2,435,072 |
|
247 |
+
| js | JavaScript | 1,905,518 |
|
248 |
+
| cs | C# | 1,577,347 |
|
249 |
+
| rb | Ruby | 6,78,413 |
|
250 |
+
| cc | C++ | 443,054 |
|
251 |
+
| hpp | C++ | 391,048 |
|
252 |
+
| lua | Lua | 352,317 |
|
253 |
+
| go | GO | 227,763 |
|
254 |
+
| ts | TypeScript | 195,254 |
|
255 |
+
| C | C | 134,537 |
|
256 |
+
| scala | Scala | 92,052 |
|
257 |
+
| hh | C++ | 67,161 |
|
258 |
+
| H | C++ | 55,899 |
|
259 |
+
| tsx | TypeScript | 33,107 |
|
260 |
+
| rs | Rust | 29,693 |
|
261 |
+
| phpt | PHP | 9,702 |
|
262 |
+
| c++ | C++ | 1,342 |
|
263 |
+
| h++ | C++ | 791 |
|
264 |
+
| php3 | PHP | 540 |
|
265 |
+
| phps | PHP | 270 |
|
266 |
+
| php5 | PHP | 166 |
|
267 |
+
| php4 | PHP | 29 |
|
268 |
+
|
269 |
+
### Preprocessing
|
270 |
+
|
271 |
+
**Tokenization:** The BLOOM tokenizer ([link](https://huggingface.co/bigscience/tokenizer)), a learned subword tokenizer trained using:
|
272 |
+
|
273 |
+
- A byte-level Byte Pair Encoding (BPE) algorithm
|
274 |
+
|
275 |
+
- A simple pre-tokenization rule, no normalization
|
276 |
+
|
277 |
+
- A vocabulary size of 250,680
|
278 |
+
|
279 |
+
It was trained on a subset of a preliminary version of the corpus using alpha-weighting per language.
|
280 |
+
|
281 |
+
## Speeds, Sizes, Times
|
282 |
+
|
283 |
+
Training logs: [Tensorboard link](https://huggingface.co/tensorboard/bigscience/tr11-176B-ml-logs/)
|
284 |
+
|
285 |
+
- Dates:
|
286 |
+
|
287 |
+
- Started 11th March, 2022 11:42am PST
|
288 |
+
|
289 |
+
- Estimated end: 5th July, 2022
|
290 |
+
|
291 |
+
- Checkpoint size:
|
292 |
+
|
293 |
+
- Bf16 weights: 329GB
|
294 |
+
|
295 |
+
- Full checkpoint with optimizer states: 2.3TB
|
296 |
+
|
297 |
+
- Training throughput: About 150 TFLOP per GPU per second
|
298 |
+
|
299 |
+
- Number of epochs: 1
|
300 |
+
|
301 |
+
- Estimated cost of training: Equivalent of $2-5M in cloud computing (including preliminary experiments)
|
302 |
+
|
303 |
+
- Server training location: Île-de-France, France
|
304 |
+
|
305 |
+
|
306 |
+
## Environmental Impact
|
307 |
+
|
308 |
+
The training supercomputer, Jean Zay ([website](http://www.idris.fr/eng/jean-zay/jean-zay-presentation-eng.html)), uses mostly nuclear energy. The heat generated by it is reused for heating campus housing.
|
309 |
+
|
310 |
+
**Estimated carbon emissions:** *(Forthcoming.)*
|
311 |
+
|
312 |
+
**Estimated electricity usage:** *(Forthcoming.)*
|
313 |
+
|
314 |
+
</details>
|
315 |
+
|
316 |
+
---
|
317 |
+
|
318 |
+
# Uses
|
319 |
+
|
320 |
+
*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.*
|
321 |
+
*It is useful for anyone considering using the model or who is affected by the model.*
|
322 |
+
|
323 |
+
<details>
|
324 |
+
<summary>Click to expand</summary>
|
325 |
+
|
326 |
+
## Intended Use
|
327 |
+
|
328 |
+
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.
|
329 |
+
|
330 |
+
### Direct Use
|
331 |
+
|
332 |
+
- Text generation
|
333 |
+
|
334 |
+
- Exploring characteristics of language generated by a language model
|
335 |
+
|
336 |
+
- Examples: Cloze tests, counterfactuals, generations with reframings
|
337 |
+
|
338 |
+
### Downstream Use
|
339 |
+
|
340 |
+
- Tasks that leverage language models include: Information Extraction, Question Answering, Summarization
|
341 |
+
|
342 |
+
### Misuse and Out-of-scope Use
|
343 |
+
*This section addresses what users ought not do with the model.*
|
344 |
+
|
345 |
+
See the [BLOOM License](https://huggingface.co/spaces/bigscience/license), Attachment A, for detailed usage restrictions. The below list is non-exhaustive, but lists some easily foreseeable problematic use cases.
|
346 |
+
|
347 |
+
#### Out-of-scope Uses
|
348 |
+
|
349 |
+
Using the model in [high-stakes](#high-stakes) settings is out of scope for this model. The model is not designed for [critical decisions](#critical-decisions) nor uses with any material consequences on an individual's livelihood or wellbeing. The model outputs content that appears factual but is not correct.
|
350 |
+
|
351 |
+
Out-of-scope Uses Include:
|
352 |
+
|
353 |
+
- Usage in biomedical domains, political and legal domains, or finance domains
|
354 |
+
|
355 |
+
- Usage for evaluating or scoring individuals, such as for employment, education, or credit
|
356 |
+
|
357 |
+
- Applying the model for critical automatic decisions, generating factual content, creating reliable summaries, or generating predictions that must be correct
|
358 |
+
|
359 |
+
#### Misuse
|
360 |
+
|
361 |
+
Intentionally using the model for harm, violating [human rights](#human-rights), or other kinds of malicious activities, is a misuse of this model. This includes:
|
362 |
+
|
363 |
+
- Spam generation
|
364 |
+
|
365 |
+
- Disinformation and influence operations
|
366 |
+
|
367 |
+
- Disparagement and defamation
|
368 |
+
|
369 |
+
- Harassment and abuse
|
370 |
+
|
371 |
+
- [Deception](#deception)
|
372 |
+
|
373 |
+
- Unconsented impersonation and imitation
|
374 |
+
|
375 |
+
- Unconsented surveillance
|
376 |
+
|
377 |
+
- Generating content without attribution to the model, as specified in the [RAIL License, Use Restrictions](https://huggingface.co/spaces/bigscience/license)
|
378 |
+
|
379 |
+
## Intended Users
|
380 |
+
|
381 |
+
### Direct Users
|
382 |
+
|
383 |
+
- General Public
|
384 |
+
|
385 |
+
- Researchers
|
386 |
+
|
387 |
+
- Students
|
388 |
+
|
389 |
+
- Educators
|
390 |
+
|
391 |
+
- Engineers/developers
|
392 |
+
|
393 |
+
- Non-commercial entities
|
394 |
+
|
395 |
+
- Community advocates, including human and civil rights groups
|
396 |
+
|
397 |
+
### Indirect Users
|
398 |
+
|
399 |
+
- Users of derivatives created by Direct Users, such as those using software with an [intended use](#intended-use)
|
400 |
+
|
401 |
+
- Users of [Derivatives of the Model, as described in the License](https://huggingface.co/spaces/bigscience/license)
|
402 |
+
|
403 |
+
### Others Affected (Parties Prenantes)
|
404 |
+
|
405 |
+
- People and groups referred to by the LLM
|
406 |
+
|
407 |
+
- People and groups exposed to outputs of, or decisions based on, the LLM
|
408 |
+
|
409 |
+
- People and groups whose original work is included in the LLM
|
410 |
+
|
411 |
+
</details>
|
412 |
+
|
413 |
+
---
|
414 |
+
|
415 |
+
# Risks and Limitations
|
416 |
+
*This section identifies foreseeable harms and misunderstandings.*
|
417 |
+
|
418 |
+
<details>
|
419 |
+
<summary>Click to expand</summary>
|
420 |
+
|
421 |
+
Model may:
|
422 |
+
|
423 |
+
- Overrepresent some viewpoints and underrepresent others
|
424 |
+
|
425 |
+
- Contain stereotypes
|
426 |
+
|
427 |
+
- Contain [personal information](#personal-data-and-information)
|
428 |
+
|
429 |
+
- Generate:
|
430 |
+
|
431 |
+
- Hateful, abusive, or violent language
|
432 |
+
|
433 |
+
- Discriminatory or prejudicial language
|
434 |
+
|
435 |
+
- Content that may not be appropriate for all settings, including sexual content
|
436 |
+
|
437 |
+
- Make errors, including producing incorrect information as if it were factual
|
438 |
+
|
439 |
+
- Generate irrelevant or repetitive outputs
|
440 |
+
|
441 |
+
</details>
|
442 |
+
|
443 |
+
---
|
444 |
+
|
445 |
+
# Evaluation
|
446 |
+
*This section describes the evaluation protocols and provides the results.*
|
447 |
+
|
448 |
+
|
449 |
+
<details>
|
450 |
+
<summary>Click to expand</summary>
|
451 |
+
|
452 |
+
## Metrics
|
453 |
+
*This section describes the different ways performance is calculated and why.*
|
454 |
+
|
455 |
+
|
456 |
+
Includes:
|
457 |
+
|
458 |
+
| Metric | Why chosen |
|
459 |
+
|--------------------|--------------------------------------------------------------------|
|
460 |
+
| [Perplexity](#perplexity) | Standard metric for quantifying model improvements during training |
|
461 |
+
| Cross Entropy [Loss](#loss) | Standard objective for language models. |
|
462 |
+
|
463 |
+
And multiple different metrics for specific tasks. _(More evaluation metrics forthcoming upon completion of evaluation protocol.)_
|
464 |
+
|
465 |
+
## Factors
|
466 |
+
*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.*
|
467 |
+
|
468 |
+
- Language, such as English or Yoruba
|
469 |
+
|
470 |
+
- Domain, such as newswire or stories
|
471 |
+
|
472 |
+
- Demographic characteristics, such as gender or nationality
|
473 |
+
|
474 |
+
## Results
|
475 |
+
*Results are based on the [Factors](#factors) and [Metrics](#metrics).*
|
476 |
+
|
477 |
+
**Train-time Evaluation:**
|
478 |
+
|
479 |
+
As of 25.May.2022, 15:00 PST:
|
480 |
+
|
481 |
+
- Training Loss: 2.0
|
482 |
+
|
483 |
+
- Validation Loss: 2.2
|
484 |
+
|
485 |
+
- Perplexity: 8.9
|
486 |
+
|
487 |
+
(More evaluation scores forthcoming.)
|
488 |
+
|
489 |
+
</details>
|
490 |
+
|
491 |
+
---
|
492 |
+
|
493 |
+
# Recommendations
|
494 |
+
|
495 |
+
*This section provides information on warnings and potential mitigations.*
|
496 |
+
|
497 |
+
<details>
|
498 |
+
<summary>Click to expand</summary>
|
499 |
+
|
500 |
+
- Indirect users should be made aware when the content they're working with is created by the LLM.
|
501 |
+
|
502 |
+
- Users should be aware of [Risks and Limitations](#risks-and-limitations), and include an appropriate age disclaimer or blocking interface as necessary.
|
503 |
+
|
504 |
+
- Models trained or finetuned downstream of BLOOM LM should include an updated Model Card.
|
505 |
+
|
506 |
+
- Users of the model should provide mechanisms for those affected to provide feedback, such as an email address for comments.
|
507 |
+
|
508 |
+
</details>
|
509 |
+
|
510 |
+
---
|
511 |
+
|
512 |
+
# Glossary and Calculations
|
513 |
+
|
514 |
+
*This section defines common terms and how metrics are calculated.*
|
515 |
+
<details>
|
516 |
+
<summary>Click to expand</summary>
|
517 |
+
|
518 |
+
- <a name="loss">**Loss:**</a> 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.
|
519 |
+
|
520 |
+
- <a name="perplexity">**Perplexity:**</a> 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.
|
521 |
+
|
522 |
+
- <a name="high-stakes">**High-stakes settings:**</a> 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/).
|
523 |
+
|
524 |
+
- <a name="critical-decisions">**Critical decisions:**</a> Such as those defined in [the United States' proposed Algorithmic Accountability Act](https://www.congress.gov/117/bills/s3572/BILLS-117s3572is.pdf).
|
525 |
+
|
526 |
+
- <a name="human-rights">**Human rights:**</a> Includes those rights defined in the [Universal Declaration of Human Rights](https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf).
|
527 |
+
|
528 |
+
- <a name="personal-data-and-information">**Personal Data and Personal Information:**</a> 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).
|
529 |
+
|
530 |
+
- <a name="sensitive-characteristics">**Sensitive characteristics:**</a> 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))
|
531 |
+
|
532 |
+
- <a name="deception">**Deception:**</a> 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.
|
533 |
+
|
534 |
+
</details>
|
535 |
+
|
536 |
+
---
|
537 |
+
|
538 |
+
# More Information
|
539 |
+
*This section provides links to writing on dataset creation, technical specifications, lessons learned, and initial results.*
|
540 |
+
|
541 |
+
<details>
|
542 |
+
<summary>Click to expand</summary>
|
543 |
+
|
544 |
+
## Dataset Creation
|
545 |
+
|
546 |
+
Blog post detailing the design choices during the dataset creation: https://bigscience.huggingface.co/blog/building-a-tb-scale-multilingual-dataset-for-language-modeling
|
547 |
+
|
548 |
+
## Technical Specifications
|
549 |
+
|
550 |
+
Blog post summarizing how the architecture, size, shape, and pre-training duration where selected: https://bigscience.huggingface.co/blog/what-language-model-to-train-if-you-have-two-million-gpu-hours
|
551 |
+
|
552 |
+
More details on the architecture/optimizer: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml
|
553 |
+
|
554 |
+
Blog post on the hardware/engineering side: https://bigscience.huggingface.co/blog/which-hardware-to-train-a-176b-parameters-model
|
555 |
+
|
556 |
+
Details on the distributed setup used for the training: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml
|
557 |
+
|
558 |
+
Tensorboard updated during the training: https://huggingface.co/bigscience/tr11-176B-ml-logs/tensorboard#scalars&tagFilter=loss
|
559 |
+
|
560 |
+
## Lessons
|
561 |
+
|
562 |
+
Insights on how to approach training, negative results: https://github.com/bigscience-workshop/bigscience/blob/master/train/lessons-learned.md
|
563 |
+
|
564 |
+
Details on the obstacles overcome during the preparation on the engineering side (instabilities, optimization of training throughput, so many technical tricks and questions): https://github.com/bigscience-workshop/bigscience/blob/master/train/tr11-176B-ml/chronicles.md
|
565 |
+
|
566 |
+
## Initial Results
|
567 |
+
|
568 |
+
Initial prompting experiments using interim checkpoints: https://huggingface.co/spaces/bigscience/bloom-book
|
569 |
+
|
570 |
+
</details>
|
571 |
+
|
572 |
+
---
|
573 |
+
|
574 |
+
# Model Card Authors
|
575 |
+
*Ordered roughly chronologically and by amount of time spent.*
|
576 |
+
|
577 |
+
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, Christopher Akiki, 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
|