/ Модель

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

Контекст
2 048 токенов
Параметры
152 млн
Лицензия
Apache 2.0
Архитектура
gpt_neox · dense
Опубликована
18 окт 2022

pythia-160m-deduped-v0

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

Небольшая англоязычная GPT-NeoX-модель EleutherAI для исследований генерации текста и интерпретируемости языковых моделей.

608скачиваний за 30 дней7лайковвеса обновлены10 июл 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Pythia-160M-deduped-v0 — англоязычная авторегрессионная языковая модель на базе трансформера GPT-NeoX, разработанная EleutherAI как часть набора Pythia для научных экспериментов над поведением и интерпретируемостью больших языковых моделей. В модели около 151,9 млн параметров, 12 слоёв, размерность модели 768 и 12 голов внимания; окно контекста — 2048 токенов. Она принимает текст и предсказывает продолжение.

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

Модель может генерировать недостоверный текст и нежелательные или предвзятые высказывания; её выводы требуют проверки человеком. Она рассчитана только на английский язык и не подходит для перевода или генерации на других языках. Лицензия — Apache 2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

The Pythia Scaling Suite is a collection of models developed to facilitate interpretability research. It contains two sets of eight models of sizes 70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two models: one trained on the Pile, and one trained on the Pile after the dataset has been globally deduplicated. All 8 model sizes are trained on the exact same data, in the exact same order. All Pythia models are available on Hugging Face.

The Pythia model suite was deliberately designed to promote scientific research on large language models, especially interpretability research. Despite not centering downstream performance as a design goal, we find the models match or exceed the performance of similar and same-sized models, such as those in the OPT and GPT-Neo suites.

Please note that all models in the Pythia suite were renamed in January 2023. For clarity, a table comparing the old and new names is provided in this model card, together with exact parameter counts.

Pythia-160M-deduped

Model Details

  • Developed by: EleutherAI
  • Model type: Transformer-based Language Model
  • Language: English
  • Learn more: Pythia's GitHub repository for training procedure, config files, and details on how to use.
  • Library: GPT-NeoX
  • License: Apache 2.0
  • Contact: to ask questions about this model, join the EleutherAI Discord, and post them in #release-discussion. Please read the existing Pythia documentation before asking about it in the EleutherAI Discord. For general correspondence: contact@eleuther. ai.
Pythia modelNon-Embedding ParamsLayersModel DimHeadsBatch SizeLearning RateEquivalent Models
70M18,915,328651282M1.0 x 10-3—
160M85,056,00012768124M6.0 x 10-4GPT-Neo 125M, OPT-125M
410M302,311,424241024164M3.0 x 10-4OPT-350M
1.0B805,736,44816204882M3.0 x 10-4—
1.4B1,208,602,624242048164M2.0 x 10-4GPT-Neo 1.3B, OPT-1.3B
2.8B2,517,652,480322560322M1.6 x 10-4GPT-Neo 2.7B, OPT-2.7B
6.9B6,444,163,072324096322M1.2 x 10-4OPT-6.7B
12B11,327,027,200365120402M1.2 x 10-4—

Uses and Limitations

Intended Use

The primary intended use of Pythia is research on the behavior, functionality, and limitations of large language models. This suite is intended to provide a controlled setting for performing scientific experiments. To enable the study of how language models change in the course of training, we provide 143 evenly spaced intermediate checkpoints per model. These checkpoints are hosted on Hugging Face as branches. Note that branch 143000 corresponds exactly to the model checkpoint on the main branch of each model.

You may also further fine-tune and adapt Pythia-160M-deduped for deployment, as long as your use is in accordance with the Apache 2.0 license. Pythia models work with the Hugging Face Transformers Library. If you decide to use pre-trained Pythia-160M-deduped as a basis for your fine-tuned model, please conduct your own risk and bias assessment.

Out-of-scope use

The Pythia Suite is not intended for deployment. It is not a in itself a product and cannot be used for human-facing interactions.

Pythia models are English-language only, and are not suitable for translation or generating text in other languages.

Pythia-160M-deduped has not been fine-tuned for downstream contexts in which language models are commonly deployed, such as writing genre prose, or commercial chatbots. This means Pythia-160M-deduped will not respond to a given prompt the way a product like ChatGPT does. This is because, unlike this model, ChatGPT was fine-tuned using methods such as Reinforcement Learning from Human Feedback (RLHF) to better “understand” human instructions.

Limitations and biases

The core functionality of a large language model is to take a string of text and predict the next token. The token deemed statistically most likely by the model need not produce the most “accurate” text. Never rely on Pythia-160M-deduped to produce factually accurate output.

This model was trained on the Pile, a dataset known to contain profanity and texts that are lewd or otherwise offensive. See Section 6 of the Pile paper for a discussion of documented biases with regards to gender, religion, and race. Pythia-160M-deduped may produce socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive.

If you plan on using text generated through, for example, the Hosted Inference API, we recommend having a human curate the outputs of this language model before presenting it to other people. Please inform your audience that the text was generated by Pythia-160M-deduped.

Quickstart

Pythia models can be loaded and used via the following code, demonstrated here for the third pythia-70m-deduped checkpoint:

from transformers import GPTNeoXForCausalLM, AutoTokenizer

model = GPTNeoXForCausalLM.from_pretrained(
  "EleutherAI/pythia-70m-deduped",
  revision="step3000",
  cache_dir="./pythia-70m-deduped/step3000",
)

tokenizer = AutoTokenizer.from_pretrained(
  "EleutherAI/pythia-70m-deduped",
  revision="step3000",
  cache_dir="./pythia-70m-deduped/step3000",
)

inputs = tokenizer("Hello, I am", return_tensors="pt")
tokens = model.generate(**inputs)
tokenizer.decode(tokens[0])

Revision/branch step143000 corresponds exactly to the model checkpoint on the main branch of each model. For more information on how to use all Pythia models, see documentation on GitHub.

Training

Training data

Pythia-160M-deduped was trained on the Pile after the dataset has been globally deduplicated. The Pile is a 825GiB general-purpose dataset in English. It was created by EleutherAI specifically for training large language models. It contains texts from 22 diverse sources, roughly broken down into five categories: academic writing (e.g. arXiv), internet (e.g. CommonCrawl), prose (e.g. Project Gutenberg), dialogue (e.g. YouTube subtitles), and miscellaneous (e.g. GitHub, Enron Emails). See the Pile paper for a breakdown of all data sources, methodology, and a discussion of ethical implications. Consult the datasheet for more detailed documentation about the Pile and its component datasets. The Pile can be downloaded from the official website, or from a community mirror.

Training procedure

All models were trained on the exact same data, in the exact same order. Each model saw 299,892,736,000 tokens during training, and 143 checkpoints for each model are saved every 2,097,152,000 tokens, spaced evenly throughout training. This corresponds to training for just under 1 epoch on the Pile for non-deduplicated models, and about 1.5 epochs on the deduplicated Pile.

All Pythia models trained for the equivalent of 143000 steps at a batch size of 2,097,152 tokens. Two batch sizes were used: 2M and 4M. Models with a batch size of 4M tokens listed were originally trained for 71500 steps instead, with checkpoints every 500 steps. The checkpoints on Hugging Face are renamed for consistency with all 2M batch models, so step1000 is the first checkpoint for pythia-1.4b that was saved (corresponding to step 500 in training), and step1000 is likewise the first pythia-6.9b checkpoint that was saved (corresponding to 1000 “actual” steps). See GitHub for more details on training procedure, including how to reproduce it. Pythia uses the same tokenizer as GPT-NeoX- 20B.

Evaluations

All 16 Pythia models were evaluated using the LM Evaluation Harness. You can access the results by model and step at results/json/* in the GitHub repository. Expand the sections below to see plots of evaluation results for all Pythia and Pythia-deduped models compared with OPT and BLOOM.

Naming convention and parameter count

Pythia models were renamed in January 2023. It is possible that the old naming convention still persists in some documentation by accident. The current naming convention (70M, 160M, etc.) is based on total parameter count.

current Pythia suffixold suffixtotal paramsnon-embedding params
70M19M70,426,62418,915,328
160M125M162,322,94485,056,000
410M350M405,334,016302,311,424
1B800M1,011,781,632805,736,448
1.4B1.3B1,414,647,8081,208,602,624
2.8B2.7B2,775,208,9602,517,652,480
6.9B6.7B6,857,302,0166,444,163,072
12B13B11,846,072,32011,327,027,200

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
GPTNeoXForCausalLM
Ревизия весов
26b9eee

0 моделей