Run this model with HF Jobs
Run bigscience/bloom on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/bigscience/bloom. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/bigscience/bloom on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/bigscience/bloom. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/bigscience/bloom. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use bigscience/bloom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloom with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloom")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom") model = AutoModelForCausalLM.from_pretrained("bigscience/bloom", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloom with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloom" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloom", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloom
- SGLang
How to use bigscience/bloom with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "bigscience/bloom" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloom", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "bigscience/bloom" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bigscience/bloom", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloom with Docker Model Runner:
docker model run hf.co/bigscience/bloom
Updates the model card in light of more developed format.
Browse filesUpdates the model card in light of the specifications HF has been setting out based on our exhaustive survey of model cards.
This requires adding a little section detailing the model card, being more mindful of the use of <detail> expansions, and making key terms/sections more clear.
Since the markdown seems to render only a slight difference between # Section headers and ## Subsection headers, I have added a line -- to better demarcate them.
57 unmodified lines5859606162636465664 unmodified lines717273747576777879808182838485868719 unmodified lines10710810911011111211311411511611711811912012111 unmodified lines1331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981991 unmodified line2012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392401 unmodified line2422432442452462472482 unmodified lines2512522532542552562575 unmodified lines26326426526626726826913 unmodified lines2832842852862872882892902919 unmodified lines30130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741813 unmodified lines4324334344354364374384394404414424434444454464474484493 unmodified lines4534544554564574584592 unmodified lines4624634644654664674686 unmodified lines4754764774784794804814824834844854864874884894904914924 unmodified lines49749849950050150250350450550650750850951051151212 unmodified lines5255265275285295305315325335345355365375385395405415425 unmodified lines54854955055155255355455555655755855956056156256356456557 unmodified lines<img src="https://assets.website-files.com/6139f3cdcbbff3a68486761d/613cd8997b270da063e230c5_Tekengebied%201-p-500.png" alt="BigScience Logo" width="200"/>Version 1.2 / 17.Jun.2022 - Current latest checkpoint: **Global step 80100**## Table of Contents1. [Model Details](#model-details)2. [Uses](#uses)3. [Training Data](#training-data)4 unmodified lines8. [More Information](#more-information)9. [Model Card Authors](#model-card-authors)## Model Details### Basics*This section provides information for anyone who wants to know about the model.*<details><summary>Click to expand</summary> <br/>**Developed by:** BigScience ([website](https://bigscience.huggingface.co))* All collaborators are either volunteers or have an agreement with their employer. *(Further breakdown of participants forthcoming.)***Model Type:** Transformer-based Language Model19 unmodified lines</details>### Technical Specifications*This section provides information for people who work on model development.*<details><summary>Click to expand</summary><br/>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.**Model Architecture:** Modified from Megatron-LM GPT2 (see [paper](https://arxiv.org/abs/1909.08053), [BLOOM Megatron code](https://github.com/bigscience-workshop/Megatron-DeepSpeed)):* Decoder-only architecture11 unmodified lines**Objective Function:** Cross Entropy with mean reduction (see [API documentation](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#torch.nn.CrossEntropyLoss)).**Compute infrastructure:** 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)).* Hardware: 384 A100 80GB GPUs (48 nodes):* Additional 32 A100 80GB GPUs (4 nodes) in reserve* 8 GPUs per node Using NVLink 4 inter-gpu connects, 4 OmniPath links* CPU: AMD* CPU memory: 512GB per node* GPU memory: 640GB per node* Inter-node connect: Omni-Path Architecture (OPA)* NCCL-communications network: a fully dedicated subnet* Disc IO network: shared network with other types of nodes* Software:* Megatron-DeepSpeed ([Github link](https://github.com/bigscience-workshop/Megatron-DeepSpeed))* DeepSpeed ([Github link](https://github.com/microsoft/DeepSpeed))* PyTorch (pytorch-1.11 w/ CUDA-11.5; see [Github link](https://github.com/pytorch/pytorch))* apex ([Github link](https://github.com/NVIDIA/apex))#### **Training**_In progress._Current training logs: [Tensorboard link](https://huggingface.co/tensorboard/bigscience/tr11-176B-ml-logs/)- Checkpoint size:- Bf16 weights: 329GB- Full checkpoint with optimizer states: 2.3TB- Training throughput: About 150 TFLOP per GPU per second- Number of epochs: 1 (*current target*)- Dates:- Started 11th March, 2022 11:42am PST- Estimated end: 5th July, 2022- Estimated cost of training: Equivalent of $2-5M in cloud computing (including preliminary experiments)- Server training location: Île-de-France, France#### **Tokenization**The BLOOM tokenizer ([link](https://huggingface.co/bigscience/tokenizer)) is a learned subword tokenizer trained using:- A byte-level Byte Pair Encoding (BPE) algorithm1 unmodified line- A vocabulary size of 250,680It was trained on a subset of a preliminary version of the corpus using alpha-weighting per language.</details>### Environmental Impact<details><summary>Click to expand</summary><br/>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.**Estimated carbon emissions:** *(Forthcoming upon completion of training.)***Estimated electricity usage:** *(Forthcoming upon completion of training.)*</details><p> </p>## Uses*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.It provides information for anyone considering using the model or who is affected by the model.*<details><summary>Click to expand</summary><br/>### Intended UseThis 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.#### **Direct Use**- Text generation1 unmodified line- Examples: Cloze tests, counterfactuals, generations with reframings#### **Downstream Use**- Tasks that leverage language models include: Information Extraction, Question Answering, Summarization2 unmodified linesSee 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.#### **Out-of-scope Uses**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.5 unmodified lines- Applying the model for critical automatic decisions, generating factual content, creating reliable summaries, or generating predictions that must be correct#### **Misuse**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:13 unmodified lines- Generating content without attribution to the model, as specified in the [RAIL License, Use Restrictions](https://huggingface.co/spaces/bigscience/license)### Intended Users#### **Direct Users**- General Public9 unmodified lines- Community advocates, including human and civil rights groups#### Indirect Users- Users of derivatives created by Direct Users, such as those using software with an [intended use](#intended-use)- Users of [Derivatives of the Model, as described in the License](https://huggingface.co/spaces/bigscience/license)#### Others Affected (Parties Prenantes)- People and groups referred to by the LLM- People and groups exposed to outputs of, or decisions based on, the LLM- People and groups whose original work is included in the LLM</details><p> </p>## Training Data*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.*<details><summary>Click to expand</summary><br/>Details for each dataset are provided in individual [Data Cards](https://huggingface.co/spaces/bigscience/BigScienceCorpus).Training data includes:- 45 natural languages- 12 programming languages- In 1.5TB of pre-processed text, converted into 350B unique tokens (see [the tokenizer section](#tokenization) for more.)#### **Languages**The pie chart shows the distribution of languages in training data.The following table shows the further distribution of Niger-Congo and Indic languages in the training data.<details><summary>Click to expand</summary><br/>| Niger Congo | Percentage | | Indic | Percentage ||----------------|------------ |------ |-----------|------------|| Chi Tumbuka | 0.00002 | | Assamese | 0.01 || Kikuyu | 0.00004 | | Odia | 0.04 || Bambara | 0.00004 | | Gujarati | 0.04 || Akan | 0.00007 | | Marathi | 0.05 || Xitsonga | 0.00007 | | Punjabi | 0.05 || Sesotho | 0.00007 | | Kannada | 0.06 || Chi Chewa | 0.0001 | | Nepali | 0.07 || Setswana | 0.0002 | | Telugu | 0.09 || Northern Sotho | 0.0002 | | Malayalam | 0.10 || Fon | 0.0002 | | Urdu | 0.10 || Kirundi | 0.0003 | | Tamil | 0.20 || Wolof | 0.0004 | | Bengali | 0.50 || Kuganda | 0.0004 | | Hindi | 0.70 || Chi Shona | 0.001 || Isi Zulu | 0.001 || Igbo | 0.001 || Xhosa | 0.001 || Kinyarwanda | 0.003 || Yoruba | 0.006 || Swahili | 0.02 |</details>The following table shows the distribution of programming languages.<details><summary>Click to expand</summary><br/>| Extension | Language | Number of files ||----------------|------------|-----------------|| java | Java | 5,407,724 || php | PHP | 4,942,186 || cpp | C++ | 2,503,930 || py | Python | 2,435,072 || js | JavaScript | 1,905,518 || cs | C# | 1,577,347 || rb | Ruby | 6,78,413 || cc | C++ | 443,054 || hpp | C++ | 391,048 || lua | Lua | 352,317 || go | GO | 227,763 || ts | TypeScript | 195,254 || C | C | 134,537 || scala | Scala | 92,052 || hh | C++ | 67,161 || H | C++ | 55,899 || tsx | TypeScript | 33,107 || rs | Rust | 29,693 || phpt | PHP | 9,702 || c++ | C++ | 1,342 || h++ | C++ | 791 || php3 | PHP | 540 || phps | PHP | 270 || php5 | PHP | 166 || php4 | PHP | 29 |</details></details><p> </p>## Risks and Limitations*This section identifies foreseeable harms and misunderstandings.*<details><summary>Click to expand</summary><br/>Model may:- Overrepresent some viewpoints and underrepresent others13 unmodified lines- Make errors, including producing incorrect information as if it were factual- Generate irrelevant or repetitive outputs</details><p> </p>## Evaluation*This section describes the evaluation protocols and provides the results.*<details><summary>Click to expand</summary><br/>### Metrics*This section describes the different ways performance is calculated and why.*Includes:| Metric | Why chosen |3 unmodified linesAnd multiple different metrics for specific tasks. _(More evaluation metrics forthcoming upon completion of evaluation protocol.)_### Factors*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.*- Language, such as English or Yoruba2 unmodified lines- Demographic characteristics, such as gender or nationality### Results*Results are based on the [Factors](#factors) and [Metrics](#metrics).***Train-time Evaluation:**6 unmodified lines- Perplexity: 8.9(More evaluation scores forthcoming at the end of model training.)</details><p> </p>## Recommendations*This section provides information on warnings and potential mitigations.*<details><summary>Click to expand</summary><br/>- Indirect users should be made aware when the content they're working with is created by the LLM.4 unmodified lines- Users of the model should provide mechanisms for those affected to provide feedback, such as an email address for comments.</details><p> </p>## Glossary and Calculations*This section defines common terms and how metrics are calculated.*<details><summary>Click to expand</summary><br/>- <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.12 unmodified lines- <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.</details><p> </p>## More Information<details><summary>Click to expand</summary><br/>### Dataset CreationBlog post detailing the design choices during the dataset creation: https://bigscience.huggingface.co/blog/building-a-tb-scale-multilingual-dataset-for-language-modeling### Technical SpecificationsBlog 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-hours5 unmodified linesTensorboard updated during the training: https://huggingface.co/bigscience/tr11-176B-ml-logs/tensorboard#scalars&tagFilter=lossInsights on how to approach training, negative results: https://github.com/bigscience-workshop/bigscience/blob/master/train/lessons-learned.mdDetails 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### Initial ResultsInitial prompting experiments using interim checkpoints: https://huggingface.co/spaces/bigscience/bloom-book</details><p> </p>## Model Card Authors*Ordered roughly chronologically and by amount of time spent.*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 Launay57 unmodified lines5859606162636465664 unmodified lines7172737475767778798081828384858687888990919219 unmodified lines11211311411511611711811912012112212312412512612712812911 unmodified lines1411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692701 unmodified line2722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283291 unmodified line3313323333343353363372 unmodified lines3403413423433443453465 unmodified lines35235335435535635735813 unmodified lines3723733743753763773783793809 unmodified lines39039139239339439539639739839940040140240340440540640740840941041141241341441541641741841913 unmodified lines4334344354364374384394404414424434444454464474484494504514524534543 unmodified lines4584594604614624634642 unmodified lines4674684694704714724736 unmodified lines4804814824834844854864874884894904914924934944954964974 unmodified lines50250350450550650750850951051151251351451512 unmodified lines5285295305315325335345355365375385395405415425435445455465475 unmodified lines55355455555655755855956056156256356456556656756856957057157257357 unmodified lines<img src="https://assets.website-files.com/6139f3cdcbbff3a68486761d/613cd8997b270da063e230c5_Tekengebied%201-p-500.png" alt="BigScience Logo" width="200"/>Version 1.3 / 3.July.2022 - Checkpoint: **Global step 80100**# Table of Contents1. [Model Details](#model-details)2. [Uses](#uses)3. [Training Data](#training-data)4 unmodified lines8. [More Information](#more-information)9. [Model Card Authors](#model-card-authors)---# Model DetailsBLOOM 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.## Basics*This section provides information about the model type, version, license, funders, release date, developers, and contact information.**It is useful for anyone who wants to reference the model.*<details><summary>Click to expand</summary>**Developed by:** BigScience ([website](https://bigscience.huggingface.co))*All collaborators are either volunteers or have an agreement with their employer. (Further breakdown of participants forthcoming.)***Model Type:** Transformer-based Language Model19 unmodified lines</details>## Technical Specifications*This section includes details about the model objective and architecture, and the compute infrastructure.**It is useful for people interested in model development.*<details><summary>Click to expand</summary>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.### Model Architecture and Objective* Modified from Megatron-LM GPT2 (see [paper](https://arxiv.org/abs/1909.08053), [BLOOM Megatron code](https://github.com/bigscience-workshop/Megatron-DeepSpeed)):* Decoder-only architecture11 unmodified lines**Objective Function:** Cross Entropy with mean reduction (see [API documentation](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#torch.nn.CrossEntropyLoss)).### Compute infrastructureJean 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)).#### Hardware* 384 A100 80GB GPUs (48 nodes)* Additional 32 A100 80GB GPUs (4 nodes) in reserve* 8 GPUs per node Using NVLink 4 inter-gpu connects, 4 OmniPath links* CPU: AMD* CPU memory: 512GB per node* GPU memory: 640GB per node* Inter-node connect: Omni-Path Architecture (OPA)* NCCL-communications network: a fully dedicated subnet* Disc IO network: shared network with other types of nodes#### Software* Megatron-DeepSpeed ([Github link](https://github.com/bigscience-workshop/Megatron-DeepSpeed))* DeepSpeed ([Github link](https://github.com/microsoft/DeepSpeed))* PyTorch (pytorch-1.11 w/ CUDA-11.5; see [Github link](https://github.com/pytorch/pytorch))* apex ([Github link](https://github.com/NVIDIA/apex))</details>---# Training*This section provides information about the training data, the speed and size of training elements, and the environmental impact of training.**It is useful for people who want to learn more about the model inputs and training footprint.*<details><summary>Click to expand</summary>## Training Data*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.*Details for each dataset are provided in individual [Data Cards](https://huggingface.co/spaces/bigscience/BigScienceCorpus).Training data includes:- 45 natural languages- 12 programming languages- In 1.5TB of pre-processed text, converted into 350B unique tokens (see [the tokenizer section](#tokenization) for more.)### LanguagesThe pie chart shows the distribution of languages in training data.The following tables shows the further distribution of Niger-Congo & Indic languages and programming languages in the training data.Distribution of Niger Congo and Indic languages.| Niger Congo | Percentage | | Indic | Percentage ||----------------|------------ |------ |-----------|------------|| Chi Tumbuka | 0.00002 | | Assamese | 0.01 || Kikuyu | 0.00004 | | Odia | 0.04 || Bambara | 0.00004 | | Gujarati | 0.04 || Akan | 0.00007 | | Marathi | 0.05 || Xitsonga | 0.00007 | | Punjabi | 0.05 || Sesotho | 0.00007 | | Kannada | 0.06 || Chi Chewa | 0.0001 | | Nepali | 0.07 || Setswana | 0.0002 | | Telugu | 0.09 || Northern Sotho | 0.0002 | | Malayalam | 0.10 || Fon | 0.0002 | | Urdu | 0.10 || Kirundi | 0.0003 | | Tamil | 0.20 || Wolof | 0.0004 | | Bengali | 0.50 || Kuganda | 0.0004 | | Hindi | 0.70 || Chi Shona | 0.001 || Isi Zulu | 0.001 || Igbo | 0.001 || Xhosa | 0.001 || Kinyarwanda | 0.003 || Yoruba | 0.006 || Swahili | 0.02 |Distribution of programming languages.| Extension | Language | Number of files ||----------------|------------|-----------------|| java | Java | 5,407,724 || php | PHP | 4,942,186 || cpp | C++ | 2,503,930 || py | Python | 2,435,072 || js | JavaScript | 1,905,518 || cs | C# | 1,577,347 || rb | Ruby | 6,78,413 || cc | C++ | 443,054 || hpp | C++ | 391,048 || lua | Lua | 352,317 || go | GO | 227,763 || ts | TypeScript | 195,254 || C | C | 134,537 || scala | Scala | 92,052 || hh | C++ | 67,161 || H | C++ | 55,899 || tsx | TypeScript | 33,107 || rs | Rust | 29,693 || phpt | PHP | 9,702 || c++ | C++ | 1,342 || h++ | C++ | 791 || php3 | PHP | 540 || phps | PHP | 270 || php5 | PHP | 166 || php4 | PHP | 29 |### Preprocessing**Tokenization:** The BLOOM tokenizer ([link](https://huggingface.co/bigscience/tokenizer)), a learned subword tokenizer trained using:- A byte-level Byte Pair Encoding (BPE) algorithm1 unmodified line- A vocabulary size of 250,680It was trained on a subset of a preliminary version of the corpus using alpha-weighting per language.## Speeds, Sizes, TimesTraining logs: [Tensorboard link](https://huggingface.co/tensorboard/bigscience/tr11-176B-ml-logs/)- Dates:- Started 11th March, 2022 11:42am PST- Estimated end: 5th July, 2022- Checkpoint size:- Bf16 weights: 329GB- Full checkpoint with optimizer states: 2.3TB- Training throughput: About 150 TFLOP per GPU per second- Number of epochs: 1- Estimated cost of training: Equivalent of $2-5M in cloud computing (including preliminary experiments)- Server training location: Île-de-France, France## Environmental ImpactThe 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.**Estimated carbon emissions:** *(Forthcoming.)***Estimated electricity usage:** *(Forthcoming.)*</details>---# Uses*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.**It is useful for anyone considering using the model or who is affected by the model.*<details><summary>Click to expand</summary>## Intended UseThis 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.### Direct Use- Text generation1 unmodified line- Examples: Cloze tests, counterfactuals, generations with reframings### Downstream Use- Tasks that leverage language models include: Information Extraction, Question Answering, Summarization2 unmodified linesSee 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.#### Out-of-scope UsesUsing 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.5 unmodified lines- Applying the model for critical automatic decisions, generating factual content, creating reliable summaries, or generating predictions that must be correct#### MisuseIntentionally using the model for harm, violating [human rights](#human-rights), or other kinds of malicious activities, is a misuse of this model. This includes:13 unmodified lines- Generating content without attribution to the model, as specified in the [RAIL License, Use Restrictions](https://huggingface.co/spaces/bigscience/license)## Intended Users### Direct Users- General Public9 unmodified lines- Community advocates, including human and civil rights groups### Indirect Users- Users of derivatives created by Direct Users, such as those using software with an [intended use](#intended-use)- Users of [Derivatives of the Model, as described in the License](https://huggingface.co/spaces/bigscience/license)### Others Affected (Parties Prenantes)- People and groups referred to by the LLM- People and groups exposed to outputs of, or decisions based on, the LLM- People and groups whose original work is included in the LLM</details>---# Risks and Limitations*This section identifies foreseeable harms and misunderstandings.*<details><summary>Click to expand</summary>Model may:- Overrepresent some viewpoints and underrepresent others13 unmodified lines- Make errors, including producing incorrect information as if it were factual- Generate irrelevant or repetitive outputs</details>---# Evaluation*This section describes the evaluation protocols and provides the results.*<details><summary>Click to expand</summary>## Metrics*This section describes the different ways performance is calculated and why.*Includes:| Metric | Why chosen |3 unmodified linesAnd multiple different metrics for specific tasks. _(More evaluation metrics forthcoming upon completion of evaluation protocol.)_## Factors*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.*- Language, such as English or Yoruba2 unmodified lines- Demographic characteristics, such as gender or nationality## Results*Results are based on the [Factors](#factors) and [Metrics](#metrics).***Train-time Evaluation:**6 unmodified lines- Perplexity: 8.9(More evaluation scores forthcoming.)</details>---# Recommendations*This section provides information on warnings and potential mitigations.*<details><summary>Click to expand</summary>- Indirect users should be made aware when the content they're working with is created by the LLM.4 unmodified lines- Users of the model should provide mechanisms for those affected to provide feedback, such as an email address for comments.</details>---# Glossary and Calculations*This section defines common terms and how metrics are calculated.*<details><summary>Click to expand</summary>- <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.12 unmodified lines- <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.</details>---# More Information*This section provides links to writing on dataset creation, technical specifications, lessons learned, and initial results.*<details><summary>Click to expand</summary>## Dataset CreationBlog post detailing the design choices during the dataset creation: https://bigscience.huggingface.co/blog/building-a-tb-scale-multilingual-dataset-for-language-modeling## Technical SpecificationsBlog 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-hours5 unmodified linesTensorboard updated during the training: https://huggingface.co/bigscience/tr11-176B-ml-logs/tensorboard#scalars&tagFilter=loss## LessonsInsights on how to approach training, negative results: https://github.com/bigscience-workshop/bigscience/blob/master/train/lessons-learned.mdDetails 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## Initial ResultsInitial prompting experiments using interim checkpoints: https://huggingface.co/spaces/bigscience/bloom-book</details>---# Model Card Authors*Ordered roughly chronologically and by amount of time spent.*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