/ Модель

Характеристики

Контекст
4 096 токенов
Лицензия
BigScience BLOOM RAIL 1.0
Архитектура
bloom · dense
Опубликована
19 мая 2022

bloom-1b7

Генерация текстаТекст → текст14 профессий

Многоязычная авторегрессионная модель BigScience для генерации текста и экспериментов с языковыми моделями.

8 931скачиваний за 30 дней123лайкавеса обновлены11 мая 2023

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки6

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

  • MUSR

    MUSR Raw · выше — лучше

    Результат

    0,3886

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • BBH

    BBH Raw · выше — лучше

    Результат

    0,3141

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • IFEval

    IFEval Raw · выше — лучше

    Результат

    0,1044

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • GPQA

    GPQA Raw · выше — лучше

    Результат

    0,2584

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • MMLU-PRO

    MMLU-PRO Raw · выше — лучше

    Результат

    0,1086

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • MATH Lvl 5

    MATH Lvl 5 Raw · выше — лучше

    Результат

    0,0053

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

BLOOM-1b7 — плотная авторегрессионная языковая модель на базе Transformer, разработанная проектом BigScience. Она предназначена для генерации текста, исследования поведения языковых моделей и использования в качестве предварительно обученной основы для дальнейшей настройки. В карточке указаны сценарии извлечения информации, ответов на вопросы и суммаризации; модель также обучалась на данных с кодом.

Модель относится к семейству BLOOM и принимает текст, выдавая продолжение текста. Контекст — до 4096 токенов. Метаданные содержат языковые теги для широкого набора естественных языков, а также код; точный размер этой версии в предоставленных данных не указан. Модель выпущена BigScience под лицензией BigScience BLOOM RAIL v1.0.

BLOOM может выдавать ошибочную информацию как достоверную, повторяться и воспроизводить стереотипы или оскорбительный контент. Карточка не рекомендует применять её для высокорисковых решений, а также в медицинской, политической, юридической и финансовой сферах.

Сценарии применения

  • генерация продолжения текста
  • эксперименты с генерацией формулировок
  • извлечение информации из текста
  • ответы на вопросы
  • создание черновиков кратких пересказов
  • генерация фрагментов кода

Ограничения

Модель может допускать фактические ошибки, выдавать нерелевантные или повторяющиеся ответы, воспроизводить стереотипы и генерировать оскорбительный контент. Не предназначена для высокорисковых решений и применения в медицинской, политической, юридической или финансовой сферах.

Для каких профессий подходит14

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Version 1.0 / 26.May.2022

Model Card for Bloom-1b7

Table of Contents

  1. Model Details
  2. Uses
  3. Bias, Risks, and Limitations
  4. Recommendations
  5. Training Data
  6. Evaluation
  7. Environmental Impact
  8. Technical Specifications
  9. Citation
  10. Glossary and Calculations
  11. More Information
  12. Model Card Authors
  13. Model Card Contact

Model Details

Model Description

This section provides information for anyone who wants to know about the model.

  • Developed by: BigScience (website)

    • 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

  • License: RAIL License v1.0 (link)

  • Release Date Estimate: Monday, 11.July.2022

  • Funded by:

    • The French government.

    • Hugging Face (website).

    • Organizations of contributors. (Further breakdown of organizations forthcoming.)

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.

Intended Use

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.

Direct Use

  • 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, 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 settings is out of scope for this model.  The model is not designed for 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, or other kinds of malicious activities, is a misuse of this model. This includes:

  • Spam generation

  • Disinformation and influence operations

  • Disparagement and defamation

  • 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

Intended Users

Direct Users

  • General Public

  • Researchers

  • Students

  • Educators

  • Engineers/developers

  • Non-commercial entities

  • Community advocates, including human and civil rights groups

Indirect Users

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

Bias, Risks, and Limitations

This section identifies foreseeable harms and misunderstandings.

Model may:

  • Overrepresent some viewpoints and underrepresent others

  • Contain stereotypes

  • Contain personal information

  • Generate:

    • Hateful, abusive, or violent language

    • 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

Recommendations

This section provides information on warnings and potential mitigations.

  • Indirect users should be made aware when the content they're working with is created by the LLM.

  • Users should be aware of 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.

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.

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 for more.)

Languages

The pie chart shows the distribution of languages in training data.

pie chart showing the distribution of languages in training data

The following table shows the further distribution of Niger-Congo and Indic languages in the training data.

Niger CongoPercentageIndicPercentage
Chi Tumbuka0.00002Assamese0.01
Kikuyu0.00004Odia0.04
Bambara0.00004Gujarati0.04
Akan0.00007Marathi0.05
Xitsonga0.00007Punjabi0.05
Sesotho0.00007Kannada0.06
Chi Chewa0.0001Nepali0.07
Setswana0.0002Telugu0.09
Northern Sotho0.0002Malayalam0.10
Fon0.0002Urdu0.10
Kirundi0.0003Tamil0.20
Wolof0.0004Bengali0.50
Kuganda0.0004Hindi0.70
Chi Shona0.001
Isi Zulu0.001
Igbo0.001
Xhosa0.001
Kinyarwanda0.003
Yoruba0.006
Swahili0.02

The following table shows the distribution of programming languages.

ExtensionLanguageNumber of files
javaJava5,407,724
phpPHP4,942,186
cppC++2,503,930
pyPython2,435,072
jsJavaScript1,905,518
csC#1,577,347
rbRuby6,78,413
ccC++443,054
hppC++391,048
luaLua352,317
goGO227,763
tsTypeScript195,254
CC134,537
scalaScala92,052
hhC++67,161
HC++55,899
tsxTypeScript33,107
rsRust29,693
phptPHP9,702
c++C++1,342
h++C++791
php3PHP540
phpsPHP270
php5PHP166
php4PHP29

Evaluation

This section describes the evaluation protocols and provides the results.

Metrics

This section describes the different ways performance is calculated and why.

Includes:

MetricWhy chosen
PerplexityStandard metric for quantifying model improvements during training
Cross Entropy LossStandard 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 and 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.)

  • BLOOM Book: Read generations from BLOOM based on prompts provided by the community

Environmental Impact

The training supercomputer, Jean Zay (website), 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.)

Technical Specifications

This section provides information for people who work on model development.

Please see the BLOOM training README for full details on replicating training.

Model Architecture: Modified from Megatron-LM GPT2 (see paper, BLOOM Megatron code):

  • Decoder-only architecture

  • Layer normalization applied to word embeddings layer (StableEmbedding; see code, paper)

  • ALiBI positional encodings (see paper), with GeLU activation functions

  • 1,722,408,960 parameters:

    • 513,802,240 embedding parameters

    • 24 layers, 16 attention heads

    • Hidden layers are 2048-dimensional

    • Sequence length of 2048 tokens used (see BLOOM tokenizer, tokenizer description)

Objective Function: Cross Entropy with mean reduction (see API documentation).

Compute infrastructure: Jean Zay Public Supercomputer, provided by the French government (see announcement).

  • Hardware: 64 V100 16/32GB GPUs (16 nodes):

    • 4 GPUs per node

    • 40 CPUs per task

    • 1 task per node

    • CPU: AMD

    • CPU memory: 160GB per node

    • GPU memory: 64GB or 128GB (depending on node availability during training) 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:

Training

  • Checkpoint size:

    • Fp16 weights: 2.6GB (# params * 2)

    • Full checkpoint with optimizer states: --

  • Training throughput: --

  • Number of epochs: 1

  • Dates:

    • Start: 11th March, 2022 11:42am PST

    • End: 20 May, 2022

  • Server training location: Île-de-France, France

Tokenization

The BLOOM tokenizer (link) 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,680

It was trained on a subset of a preliminary version of the corpus using alpha-weighting per language.

Citation

Cite as: BigScience, BigScience Language Open-science Open-access Multilingual (BLOOM) Language Model. International, May 2021-May 2022

Glossary and Calculations

This section defines common terms and how metrics are calculated.

  • 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.

  • Critical decisions: Such as those defined in the United States' proposed Algorithmic Accountability Act.

  • Human rights: Includes those rights defined in the Universal Declaration of Human Rights.

  • Personal Data and Personal Information: Personal data and information is defined in multiple data protection regulations, such as "personal data" in the European Union's General Data Protection Regulation; and "personal information" in the Republic of South Africa's Protection of Personal Information Act, The People's Republic of China's Personal information protection law.

  • Sensitive characteristics: This includes specifically protected categories in human rights (see UHDR, Article 2) and personal information regulation (see GDPR, Article 9; Protection of Personal Information Act, Chapter 1)

  • 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.

More Information

Dataset Creation

Blog post detailing the design choices during the dataset creation: https://bigscience.huggingface.co/blog/building-a-tb-scale-multilingual-dataset-for-language-modeling

Technical Specifications

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

More details on the architecture/optimizer: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml

Blog post on the hardware/engineering side: https://bigscience.huggingface.co/blog/which-hardware-to-train-a-176b-parameters-model

Details on the distributed setup used for the training: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml

Tensorboard updated during the training: https://huggingface.co/bigscience/tr11-176B-ml-logs/tensorboard#scalars&tagFilter=loss

Insights on how to approach training, negative results: https://github.com/bigscience-workshop/bigscience/blob/master/train/lessons-learned.md

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

Initial Results

Initial prompting experiments using interim checkpoints: https://huggingface.co/spaces/bigscience/bloom-book

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, Niklas Muennighoff

Model Card Contact

Send Questions to: bigscience-contact@googlegroups.com

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
BloomForCausalLM
Ревизия весов
cc72a88

0 моделей