/ Модель

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

Контекст
512 токенов
Лицензия
Apache 2.0
Архитектура
gpt2 · dense
Библиотека
transformers
Опубликована
29 окт 2025

word

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

Небольшая GPT-2-модель, обученная с нуля на WikiText-2 и предназначенная для демонстрации генерации английского текста.

1 015скачиваний за 30 дней0лайковвеса обновлены2 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

harpertoken/word — компактная языковая модель GPT-2, обученная авторами репозитория с нуля на корпусе WikiText-2, а не дообученная на весах OpenAI. Она предназначена для демонстрации архитектуры и процесса обучения авторегрессионной модели, генерирующей текст на основе продолжения заданного фрагмента. Модель имеет архитектуру GPT-2 small: 12 слоёв, размерность эмбеддингов 768 и около 124 млн параметров. Она использует токенизатор GPT-2 с 50 257 токенами и поддерживает контекст до 512 токенов. Репозиторий содержит веса в формате safetensors; лицензия — Apache-2.0.

Обучение на небольшом наборе англоязычных текстов из Wikipedia ограничивает модель энциклопедическим и декларативным стилем. По README, модель склонна сразу выдавать токен конца текста, поэтому обычная генерация часто возвращает исходный запрос без продолжения или останавливается почти сразу. У неё нет настройки для инструкций или диалога, а метрики качества не приведены; авторы позиционируют её как демонстрационный пример, а не основу для прикладных систем.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

word

A GPT-2 language model trained from random initialisation on WikiText-2, rather than adapted from OpenAI's released weights. The architecture is GPT-2 small (twelve layers, 768 embedding dimensions, 50257-token vocabulary), which works out at about 124M parameters; the previous version of this card put the figure at 117M, which does not match the 496 MB float32 checkpoint. config.json carries no _name_or_path, confirming nothing was fine-tuned. One structural difference from stock GPT-2 is worth knowing: n_positions is 512 rather than 1024, and the position embedding really is 512 rows, so this model accepts half the context a standard GPT-2 does.

The tokenizer is GPT-2's own byte-pair vocabulary, taken from openai-community/gpt2, because the checkpoint was trained from scratch and therefore ships no vocabulary of its own. It matches: both are 50257 entries, so the token ids in the weights line up with this tokenizer exactly. An earlier version of this repository shipped no tokenizer at all, and AutoTokenizer then returned an empty vocabulary of length one rather than raising, which meant every input collapsed to the unknown token and generation returned noise without any error. That is fixed. GPT-2 uses byte-pair encoding without a distinct unknown token, so rare inputs are segmented rather than discarded, which is one reason a model of this size produces fluent-looking nonsense.

Usage

from transformers import pipeline

generator = pipeline("text-generation", model="harpertoken/word")
print(generator("The quick brown fox", max_new_tokens=60)[0]["generated_text"])

Limitations

WikiText-2 is about two million tokens drawn from Wikipedia verification articles. Training on it for a few epochs produces a model that reproduces that register, namely encyclopaedic and declarative English, and little else. The previous card reported three epochs at batch size one completed in roughly ten minutes on CPU or MPS; for a 124M-parameter model over that corpus at that batch size the arithmetic does not work, so I have left the training time unstated rather than repeat it.

There are no evaluation figures. Perplexity on WikiText-2 would be the obvious measurement and has not been recorded here. Treat this as an architectural and training demonstration: it is a working GPT-2 implementation at small scale, not a language model to build on. Concretely, generation collapses to end-of-text: the end token is the top prediction on ordinary prompts, with measured probability 0.31 to 0.93, so greedy decoding returns the prompt unchanged and sampling usually stops within a token or two. The usage example above will print the prompt back. It has no instruction tuning, no dialogue behaviour, and no pretraining beyond a narrow slice of one corpus.

Attribution

The architecture follows Radford et al., Improving Language Understanding by Generative Pre-Training (2018). WikiText-2 is described in Merity et al., Pointer Sentinel Mixture Models (2016).

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
GPT2LMHeadModel
Ревизия весов
9f5d927

0 моделей