/ Модель

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

Контекст
2 048 токенов
Лицензия
Apache 2.0
Архитектура
mosaic_gpt · dense
Опубликована
25 мая 2023

mpt-1b-redpajama-200b

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

Предобученная текстовая модель MosaicML на 1,3 млрд параметров для продолжения и генерации текста.

601скачиваний за 30 дней3лайкавеса обновлены5 авг 2023

Бенчмарки

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

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

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

В подключённых источниках результатов для этой модели пока нет.

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

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

MPT-1b-RedPajama-200b — языковая модель MosaicML с 1,3 млрд параметров, обученная на 200 млрд токенов из набора RedPajama. Это плотный авторегрессионный трансформер-декодер MosaicGPT: 24 слоя, 16 голов внимания и ширина 2048. В архитектуре используются ALiBi и нормализация QK; позиционные эмбеддинги и смещения не применяются.

Модель предназначена для продолжения текста и генерации ответов по текстовой подсказке. Обучающие данные включают веб-страницы, код, Википедию, книги, научные статьи и StackExchange; использован токенизатор GPT-NeoX-20B. Для загрузки через Transformers требуется разрешить выполнение пользовательского кода модели параметром trust_remote_code=True.

Репозиторий распространяется по лицензии Apache-2.0. Карточка описывает предобученную модель и её архитектуру, но не приводит оценок качества или специальных гарантий для отдельных языков и прикладных задач.

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

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

Ограничения

Карточка не приводит оценок качества и подтверждённого списка поддерживаемых естественных языков. Для загрузки через Transformers требуется trust_remote_code=True.

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

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

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

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

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

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

Открыть на Hugging Face

MPT-1b-RedPajama-200b

MPT-1b-RedPajama-200b is a 1.3 billion parameter decoder-only transformer trained on the RedPajama dataset. The model was trained for 200B tokens by sampling from the subsets of the RedPajama dataset in the same proportions as were used by the Llama series of models. This model was trained by MosaicML and follows a modified decoder-only transformer architecture.

Model Date

April 20, 2023

How to Use

Note: This model requires that trust_remote_code=True be passed to the from_pretrained method. This is because we use a custom model architecture MosaicGPT that is not yet part of the transformers package. MosaicGPT includes options for many training efficiency features such as FlashAttention (Dao et al. 2022), ALIBI, QK LayerNorm, and more.

import transformers
model = transformers.AutoModelForCausalLM.from_pretrained('mosaicml/mpt-1b-redpajama-200b', trust_remote_code=True)

To use the optimized triton implementation of FlashAttention, you can load with attn_impl='triton' and move the model to bfloat16 like so:

model = transformers.AutoModelForCausalLM.from_pretrained('mosaicml/mpt-1b-redpajama-200b', trust_remote_code=True, attn_impl='triton')
model.to(device='cuda:0', dtype=torch.bfloat16)

Model Description

This model uses the MosaicML LLM codebase, which can be found in the MosaicML Examples Repository. The architecture is a modification of a standard decoder-only transformer. The transformer has 24 layers, 16 attention heads, and width 2048. The model has been modified from a standard transformer in the following ways:

  • It uses ALiBi and does not use positional embeddings.
  • It uses QK LayerNorm.
  • It does not use biases.

Training Data

The model was trained for 200B tokens (batch size 2200, sequence length 2048). It was trained on the following data mix:

  • 67% RedPajama Common Crawl
  • 15% C4
  • 4.5% RedPajama GitHub
  • 4.5% RedPajama Wikipedia
  • 4.5% RedPajama Books
  • 2.5% RedPajama Arxiv
  • 2% RedPajama StackExchange

This is the same mix of data as was used in the Llama series of models](https://arxiv.org/abs/2302.13971).

Each sample was chosen from one of the datasets, with the dataset selected with the probability specified above. The examples were shuffled within each dataset. Each example was constructed from as many sequences from that dataset as were necessary to fill the 2048 sequence length.

The data was tokenized using the EleutherAI/gpt-neox-20b tokenizer.

Training Configuration

This model was trained on 440 A100-40GBs for about half a day using the MosaicML Platform. The model was trained with sharded data parallelism using FSDP.

Acknowledgements

This model builds on the work of Together, which created the RedPajama dataset with the goal of mimicking the training data used to create the Llama series of models. We gratefully acknowledge the hard work of the team that put together this dataset, and we hope this model serves as a useful companion to that work.

We also gratefully acknowledge the work of the researchers who created the Llama series of models, which was the impetus for our efforts and those who worked on the RedPajama project.

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
MosaicGPT
Ревизия весов
50d6bc9

0 моделей