Run this model with HF Jobs
Run bigscience/bloom-560m 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-560m. 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-560m 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-560m. 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-560m. 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-560m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bigscience/bloom-560m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bigscience/bloom-560m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom-560m") model = AutoModelForCausalLM.from_pretrained("bigscience/bloom-560m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bigscience/bloom-560m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bigscience/bloom-560m" # 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-560m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bigscience/bloom-560m
- SGLang
How to use bigscience/bloom-560m 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-560m" \ --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-560m", "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-560m" \ --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-560m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bigscience/bloom-560m with Docker Model Runner:
docker model run hf.co/bigscience/bloom-560m
Copy+paste from updated model card, + warning.
Browse files123456789101112133 unmodified lines17181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001 unmodified line1021031041051061071081091101111121131141151161171181191201211221231241252 unmodified lines1281291301311321331341351361371381391401411421431441451461471481491501511521531541551561 unmodified line1581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911923 unmodified lines19619719819920020120220320420520620720820915 unmodified lines2252262272282292302312322332342352362372382392402411 unmodified line24324424524624724824925025125225325425525625725825926026126226326426526626726826927027127261 unmodified lines3343353363373383393403413 unmodified lines3453463473483493503513521 unmodified line3543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174181 unmodified line4204214224234244254269 unmodified lines436437438439440441442443444445446447448449450451452453454455456457458459460461462---license: bigscience-bloom-rail-1.0---# <span style="color:red"><b>WARNING:</b> This is an <b>intermediary checkpoint</b>. It is not fully trained yet. You might want to use [Bloom-1B3](https://huggingface.co/bigscience/bloom-1b3) if you want a model that has completed training.</span># <p>BLOOM LM<br/> _BigScience Large Open-source Open-access Multilingual Language Model_ <br/>Model Card</p>Version 1.0 / 24.May.2022## Table of Contents1. [Model Details](#model-details)3 unmodified lines5. [Evaluation](#evaluation)6. [Recommendations](#recommendations)7. [Glossary and Calculations](#glossary-and-calculations)8. [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](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 Model**Version:** 1.0.0**Languages:** Multiple; see [training data](#training-data).**License:** [RAIL License v1.0](https://docs.google.com/document/d/10NMjEKjxR7mrZ5CvugGBVaF6nPEgNxFBIbkH7z5HB-0/edit#)**Released:** [Forthcoming]**Send questions to:** bigscience-contact@googlegroups.com**Cite as:** [BigScience Workshop](https://bigscience.huggingface.co), BigScience Language Open-source Open-access Multilingual (BLOOM). International, May 2021-May 2022.**Funded by:** The French government, [Hugging Face](https://huggingface.co), and the organizations of contributors. [Further breakdown of organizations forthcoming.]</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.***Model Architecture:** Modified from Megatron-LM GPT2 ([paper link](https://arxiv.org/abs/1909.08053)):1. Layer normalization applied to word embedding layer2. [ALiBI positional encodings](https://arxiv.org/pdf/2108.12409.pdf)**Objective Function:** [Cross Entropy with mean reduction](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#torch.nn.CrossEntropyLoss)**Number of Parameters:** 350M parameters; 24 layers, 16 attention heads#### **Infrastructure**Compute Infrastructure: [Jean Zay](http://www.idris.fr/eng/jean-zay/jean-zay-presentation-eng.html) Public Supercomputer, provided by the French governmentHardware: 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 nodesSoftware:- [Megatron-DeepSpeed](https://github.com/bigscience-workshop/Megatron-DeepSpeed), BigScience fork- [DeepSpeed](https://github.com/microsoft/DeepSpeed)- [PyTorch](https://github.com/pytorch/pytorch)-1.11 w/ CUDA-11.5- [apex](https://github.com/NVIDIA/apex)#### **Training**1 unmodified line_In progress._Checkpoint size:- fp16 weights: 1.04GBTraining throughput: About 150 TFLOP per GPU per secondNumber of steps: 555750Dates:- Started: to determine- Ended: to determineEstimated cost of training: UnknownServer training location: Ile-de-France, France</details>2 unmodified lines<details><summary>Click to expand</summary><br/>[More forthcoming when training has completed.]The training supercomputer, [Jean Zay]((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><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.1 unmodified line- Text generation- Exploring characteristics of language generated by a language model.- Examples: Cloze tests, counterfactuals, generations with reframings.#### **Downstream Use**- Tasks that leverage language models include: Information Extraction, Question Answering, Summarization.### Misuse and Out-of-scope Use*This section addresses what users ought not do with the model.*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.#### **Out-of-scope Uses**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.##### Out-of-scope uses include:- Usage in biomedical domains, political and legal domains, or finance domains.- Usage for evaluating or scoring individuals, such as for employment, education, or credit.- 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 rights, or other kinds of malicious activities is a misuse of this model. This includes:- Spam generation3 unmodified lines- Harassment and abuse- Deception- Unconsented impersonation and imitation- Unconsented surveillance- 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).### Intended Users15 unmodified lines#### 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://docs.google.com/document/d/117RhytMYC9HS-1NmWHEn9XBK7vJ5kdv9OcG6AV69Vec/edit#bookmark=id.pvl8781qfes3).#### 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>1 unmodified line*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 [Model README, Datasets for more](https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml#datasets).#### **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/>61 unmodified lines## Risks and Limitations*This section identifies foreseeable harms and misunderstandings.*<details><summary>Click to expand</summary><br/>3 unmodified lines- Contain stereotypes- Contain personal information- Generate:1 unmodified line- Discriminatory or prejudicial language- Content that may not be appropriate for all settings, including sexual content.- Make errors, including producing incorrect information as if it were factual.- Generate irrelevant or repetitive outputs.</details><p> </p>## Evaluation<details><summary>Click to expand</summary><br/>### Metrics*This section describes the different ways performance is calculated, and why.*[More Forthcoming]Includes:| Metric | Why chosen ||--------------------|--------------------------------------------------------------------|| F1 | Standard for benchmarking || Accuracy | Standard for benchmarking || Perplexity | Standard metric for quantifying model improvements during training || Cross Entropy Loss | Standard objective for language models |And multiple different metrics for specific tasks.### 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 Yoruba- Domain, such as newswire or stories- Demographic characteristics, such as gender or nationality### Results*Results are based on the [Factors](#factors) and [Metrics](#metrics).***Train-time evaluation:**As of 19.May.2022, 18:00:- Training Loss: 2.04- Validation Loss: 2.21- Perplexity: 9.15[More evaluation types forthcoming at the end of model training.]</details><BR/>## Recommendations*This section provides information on warnings and potential mitigations.*<details><summary>Click to expand</summary><br/>1 unmodified line- Users should be aware of [Risks and Limitations](#risks-and-limitations), and include an appropriate age disclaimer or blocking interface as necessary.- Models pre-trained with the LLM should include an updated Model Card.- Users of the model should provide mechanisms for those affected to provide feedback, such as an email address for comments.9 unmodified lines<details><summary>Click to expand</summary><br/>- **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.- **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.- **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/).- **Critical decisions**: Such as those defined in [the United States' proposed Algorithmic Accountability Act](https://www.congress.gov/117/bills/s3572/BILLS-117s3572is.pdf).- **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).- **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).- **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))- **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.</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, 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 Launay1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162633 unmodified lines6768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661 unmodified line1681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072 unmodified lines2102112122132142152162172182192202212222232242252262272282292302312322332342351 unmodified line2372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692703 unmodified lines27427527627727827928028128228328428528615 unmodified lines3023033043053063073083093103113123133143153163173183191 unmodified line32132232332432532632732832933033133233333433533633733833934034134234334434534634761 unmodified lines4094104114124134143 unmodified lines4184194204214224234241 unmodified line4264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884891 unmodified line4914924934944954964979 unmodified lines507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565---license: bigscience-bloom-rail-1.0language:- ak- ar- as- bm- bn- ca- code- en- es- eu- fon- fr- gu- hi- id- ig- ki- kn- lg- ln- ml- mr- ne- nso- ny- or- pa- pt- rn- rw- sn- st- sw- ta- te- tn- ts- tum- tw- ur- vi- wo- xh- yo- zh- zhs- zht- zu---# <span style="color:red"><b>WARNING:</b> This is an <b>intermediary checkpoint</b>. It is not fully trained yet. You might want to use [Bloom-1B3](https://huggingface.co/bigscience/bloom-1b3) if you want a model that has completed training.</span># <p>BLOOM LM<br/> _BigScience Large Open-science Open-access Multilingual Language Model_ <br/>Model Card</p><img src="https://assets.website-files.com/6139f3cdcbbff3a68486761d/613cd8997b270da063e230c5_Tekengebied%201-p-500.png" alt="BigScience Logo" width="200"/>Version 1.0 / 26.May.2022## Table of Contents1. [Model Details](#model-details)3 unmodified lines5. [Evaluation](#evaluation)6. [Recommendations](#recommendations)7. [Glossary and Calculations](#glossary-and-calculations)8. [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 Model**Version:** 1.0.0**Languages:** Multiple; see [training data](#training-data)**License:** RAIL License v1.0 ([link](https://huggingface.co/spaces/bigscience/license))**Release Date Estimate:** Monday, 11.July.2022**Send Questions to:** bigscience-contact@googlegroups.com**Cite as:** BigScience, _BigScience Language Open-science Open-access Multilingual (BLOOM) Language Model_. International, May 2021-May 2022**Funded by:*** The French government.* Hugging Face ([website](https://huggingface.co)).* Organizations of contributors. *(Further breakdown of organizations forthcoming.)*</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 architecture* Layer normalization applied to word embeddings layer (`StableEmbedding`; see [code](https://github.com/facebookresearch/bitsandbytes), [paper](https://arxiv.org/pdf/2110.02861.pdf))* ALiBI positional encodings (see [paper](https://arxiv.org/pdf/2108.12409.pdf)), with GeLU activation functions* 176 billion parameters:* 70 layers, 112 attention heads* Hidden layers are 14336-dimensional* Sequence length of 2048 tokens used (see [BLOOM tokenizer](https://huggingface.co/bigscience/tokenizer), [tokenizer description](#tokenization))**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**1 unmodified line_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) algorithm- A simple pre-tokenization rule, no normalization- A vocabulary size of 250,680It was trained on a subset of a preliminary version of the corpus using alpha-weighting per language.</details>2 unmodified lines<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.1 unmodified line- Text generation- Exploring characteristics of language generated by a language model- Examples: Cloze tests, counterfactuals, generations with reframings#### **Downstream Use**- Tasks that leverage language models include: Information Extraction, Question Answering, Summarization### Misuse and Out-of-scope Use*This section addresses what users ought not do with the model.*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.#### **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.##### Out-of-scope Uses Include:- Usage in biomedical domains, political and legal domains, or finance domains- Usage for evaluating or scoring individuals, such as for employment, education, or credit- 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:- Spam generation3 unmodified lines- Harassment and abuse- [Deception](#deception)- Unconsented impersonation and imitation- Unconsented surveillance- Generating content without attribution to the model, as specified in the [RAIL License, Use Restrictions](https://huggingface.co/spaces/bigscience/license)### Intended Users15 unmodified lines#### 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>1 unmodified line*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/>61 unmodified lines## Risks and Limitations*This section identifies foreseeable harms and misunderstandings.*<details><summary>Click to expand</summary><br/>3 unmodified lines- Contain stereotypes- Contain [personal information](#personal-data-and-information)- Generate:1 unmodified line- Discriminatory or prejudicial language- Content that may not be appropriate for all settings, including sexual content- 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 ||--------------------|--------------------------------------------------------------------|| [Perplexity](#perplexity) | Standard metric for quantifying model improvements during training || Cross Entropy [Loss](#loss) | Standard objective for language models. |And 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 Yoruba- Domain, such as newswire or stories- Demographic characteristics, such as gender or nationality### Results*Results are based on the [Factors](#factors) and [Metrics](#metrics).***Train-time Evaluation:**As of 25.May.2022, 15:00 PST:- Training Loss: 2.0- Validation Loss: 2.2- 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/>1 unmodified line- Users should be aware of [Risks and Limitations](#risks-and-limitations), and include an appropriate age disclaimer or blocking interface as necessary.- Models pretrained with the LLM should include an updated Model Card.- Users of the model should provide mechanisms for those affected to provide feedback, such as an email address for comments.9 unmodified lines<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.- <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.- <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/).- <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).- <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).- <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).- <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))- <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-hoursMore details on the architecture/optimizer: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-mlBlog post on the hardware/engineering side: https://bigscience.huggingface.co/blog/which-hardware-to-train-a-176b-parameters-modelDetails on the distributed setup used for the training: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-mlTensorboard 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 Launay
README.md+218-115