/ Модель

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

Контекст
1 024 токена
Лицензия
CC0 1.0
Архитектура
gpt2 · dense
Библиотека
transformers
Опубликована
4 ноя 2026

openpd-gpt2-v1

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

Англоязычная модель генерации текста на архитектуре GPT-2 Small, обученная с нуля на корпусе общественного достояния и CC0.

133скачиваний за 30 дней0лайковвеса обновлены5 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

openpd-gpt2 v1 — англоязычная авторегрессионная языковая модель ikarth, обученная с нуля на архитектуре GPT-2 Small. Она содержит около 124 млн параметров, использует 12 слоёв и контекст до 1 024 токенов. Для обучения применён набор из 8,8 млрд токенов текстов, обозначенных как общественное достояние или CC0; значительную часть корпуса составляют книги и документы до 1929 года. Модель предназначена для генерации продолжений текста и экспериментов с обучением на открытых данных. Она лучше справляется с прозой соответствующего периода, чем исходный GPT-2, но хуже — с современными темами; её токенизатор GPT-2 BPE сам не обучался на открытых данных.

Это базовая модель без настройки на инструкции, защитных механизмов и ограничителей. Она не подходит для надёжных фактических ответов, советов или актуальной информации и может генерировать предвзятый либо некачественный текст. Карточка указывает лицензию CC0-1.0. В репозитории доступны веса safetensors и ONNX.

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

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

Ограничения

Модель мало осведомлена о событиях после примерно 1930 года и заметно хуже исходного GPT-2 работает с современными темами. Она не настроена на инструкции и не имеет защитных механизмов; ответы могут быть предвзятыми или недостоверными.

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

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

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

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

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

Открыть на Hugging Face

openpd-gpt2 v1

I trained a language model from scratch! It's called GPT-2.

Well, technically it just has the architecture of GPT-2, with different training data and some minor tweaks. Consider it a demonstration of what is possible when training with the strictest limitations (though I should note there are some much bigger models that pursued similar goals, with varying levels of strictness).

The code is based on Karpathy's well-known nanoGPT tutorials, with the twist that the training data is entirely public domain and CC0 text (and therefore, so is the model). Otherwise, I stuck relatively closely to the original architecture of GPT-2. Which does mean that it is less optimized than it could be; model architectures have come along way since the distant past of 2019. The nature of the particular public-domain data means that books from 1929 and before make up a large part of the dataset, so it's also not as versed in modern topics as the original internet-poisoned GPT-2 is. On the other hand no Reddit posts were consulted in training this model.

It's replicating GPT-2-small (124M parameters), which let me train it from scratch in a semi-reasonable amount of time, which a semi-reasonable amount of data: 8.8B tokens of strictly public-domain and CC0 text: one full epoch of openpd-strict-v1, which I've also uploaded, though the files are relatively accessible, being public domain and all.

The earlier version, v0, was trained on a 2.5B token subset of the data, plus Ubuntu IRC. I dropped Ubuntu IRC for two reasons: the point was to do the absolute maximalist definition of "public domain" and because the formatting wasn't really helping much (as the evals demonstrate). I trained v0 on my personal 3090. I could have done the same for v1 if I wanted to wait a couple of days, but I needed the machine for other things (and wanted to test my setup in the cloud) so I trained v1 on 4 rented H100s in 85 minutes. Both approaches used roughly the same amount of power, as it turned out.

On held-out prose from 1930 its perplexity is 40% lower than the original GPT-2's (17.4 vs 28.8); on modern Wikipedia text it is about twice GPT-2's. It writes period prose well and knows little about the world after about 1930. A better eval would be to find Project Gutenberg books scanned after the datasets' cutoff, rather than just 1930, but it works well enough for a model that is just barely aware there was a recent stock crash.

It's a base model with no safety tuning, guardrails, or instruction tuning; use at your own risk. It doesn't have much in the way of code, so the risk is more likely to be in the realm of racism, sexism, telling bad stories, etc.

Try it

In your browser: openpd-gpt2 demo (runs locally via transformers.js and the 8-bit ONNX weights in onnx/; about 215 MB download).

With transformers:

from transformers import pipeline

generator = pipeline("text-generation", model="ikarth/openpd-gpt2-v1")
print(generator("The old captain looked out across the harbor and")[0]["generated_text"])

Sampling defaults (generation_config.json): temperature 0.9, top-k 50, 120 new tokens.

Model

ArchitectureGPT-2 small: 12 layers, 12 heads, 768 dims, 1,024-token context, tied embeddings (vocab padded to 50,304 for training; exported with 50,257)
TokenizerGPT-2 BPE (tiktoken gpt2). Not trained on open data (see Known issues)
Parameters~124M
Codesame model code as v0 (build-nanogpt lineage). Commit 8202e0a, clean
Weightsmodel.safetensors (fp32); onnx/model_quantized.onnx (8-bit, for transformers.js)

Training data

Tier pd only: every document is public domain (by law, mostly US) or CC0, checked per document where the source records licenses (metadata.license, peS2o's oa_license) and per source otherwise. Dataset openpd-strict-v1 (tokenized with GPT-2 BPE), fingerprint e777bfedc277d972… (sha256 of the token stream). It is openpd-v1 (v0's data) minus Ubuntu IRC, with the same sources, sampling, and cleaning.

SourceLicense basisTrained tokensShareCleaning
Project Gutenberg (Common Pile)PD (US)2.168 B24.7%prose unwrapped, verse kept
Pre-1929 books, Internet Archive (Common Pile)PD (US)2.104 B24.0%de-hyphenated
Library of Congress Selected Digitized Books (storytracer)CC0 / PD (US)1.152 B13.1%de-hyphenated, prose unwrapped
Caselaw Access Project (Common Pile)PD (US)0.721 B8.2%none
arXiv abstracts (Common Pile)CC00.548 B6.2%none
US Government Publishing Office (Common Pile)PD (US gov works)0.461 B5.2%de-hyphenated
Biodiversity Heritage Library (Common Pile)PD0.432 B4.9%de-hyphenated
PubMed Central, CC0 subset (Common Pile)CC00.408 B4.6%none
peS2o, CC0/PD subset (Common Pile)CC0 / PD0.300 B3.4%none
arXiv papers, PD/CC0 subset (Common Pile)PD / CC00.282 B3.2%de-hyphenated
Regulations.gov (Common Pile)PD (US gov works)0.202 B2.3%de-hyphenated
Python Enhancement Proposals (Common Pile)PD0.003 B0.0%none
Total8.782 B

Trained tokens are exact (from per-shard source counts, provenance_step_016749.json in this repo): 16,750 steps × 524,288 tokens, 0.996 epochs, no document seen twice.

Model involvement in the data

No synthetic text. Upstream processing involved models only for text extraction and filtering: OCR for the book, BHL, and case-law sources; Grobid PDF parsing for peS2o; and Common Pile's filtering pipeline (classifiers not yet verified against the Common Pile paper).

Personal information

No chat, forum, or social-media text. Case law and government documents name people as public records do; no additional PII scrubbing was applied.

Training

Steps16,750 × 524,288 tokens = 8.78 B tokens (one epoch)
ScheduleWSD: 170 warmup steps, constant 6e-4 to step 13,399, linear decay to 6e-5 over the last 20%
Learning rate6e-4, chosen by a 1,000-step comparison on this data: 6e-4 reached val loss 4.824, 1.8e-3 reached 4.974
OptimizerAdamW (β 0.9/0.95, weight decay 0.1 on matrices), grad clip 1.0
Precisionbf16 autocast, TF32 matmuls, torch.compile
Hardware4× H100 80GB SXM (RunPod), DDP, micro-batch 64
Throughput~1.85M tokens/s
Training time85 min (one uninterrupted run)
Energy (GPU)3.79 kWh (driver energy counters; excludes the rest of the machine)
Cost~$28 including setup, a smoke test, and the learning-rate comparison

Val loss (openpd-strict-v1 val split): about 3.20 at the end of the constant-LR phase (3.194 at step 13,000, 3.204 at 13,250) → 3.025 final.

Evaluation

Training loss, validation loss, and eval results by checkpoint

Every number below comes from the same eval code, run the same way on all three models. All use the same tokenizer, so perplexities are directly comparable. Evaluated every 1,000 steps (chart).

openpd-gpt2 v1openpd-gpt2 v0GPT-2 small
Training data8.8B tokens, pd only2.4B tokens, pd + Ubuntu IRCWebText (2019 web pages linked from Reddit)
Perplexity, 1930 novels (held out, 977k tokens)17.426.128.8
Perplexity, WikiText-103 test (modern, 273k tokens)48.681.122.8
BLiMP, mean of 67 paradigms (chance 0.5)0.7710.7360.823
  morphology0.8930.8800.930
  syntax0.7250.6730.791
  semantics0.7100.6810.745
  syntax/semantics0.7250.6860.785
HellaSwag acc_norm (10,042; chance 0.25)0.2610.2550.298
  ActivityNet contexts0.3140.3020.353
  WikiHow contexts0.2360.2330.272

Period text: much better than GPT-2. The 1930 set is eight novels first published in 1930, which entered the US public domain on 1 January 2026 and were added to Project Gutenberg after the training data was collected (13-gram overlap with the training data: 2.2% on average, stock phrases). v1 has lower perplexity than GPT-2 on every one:

Novelv1v0GPT-2
The Maltese Falcon (Hammett)13.419.320.8
The Secret of the Old Clock (Keene)14.222.624.1
The Murder at the Vicarage (Christie)16.724.727.8
Cakes and Ale (Maugham)17.327.129.5
Vile Bodies (Waugh)17.626.229.7
Angel Pavement (Priestley)17.826.329.3
Strong Poison (Sayers)20.130.633.4
Mr. Fortune's Maggot (Townsend Warner)23.737.240.0

Modern text: better than v0, still about twice GPT-2. Most of the training data predates 1930, and its modern sources are specialized (case law, government documents, science papers). Dropping Ubuntu IRC (v0's only casual modern text) did not hurt: WikiText perplexity fell from 81.1 to 48.6. (Our WikiText numbers use whole-article sliding windows on detokenized text, not the GPT-2 paper's setup; compare them only within this table.)

Grammar (BLiMP): closer to GPT-2, but leveled off. BLiMP checks that the model prefers the grammatical sentence of a minimal pair. It rose to ~0.76 by step 10,000 and gained only ~0.01 after that; the remaining gap is mostly syntax (0.725 vs 0.791).

HellaSwag: still near chance. Its ActivityNet contexts (video captions of everyday activities) reach 0.31; its WikiHow contexts, about modern products and activities, stay slightly below chance for the whole run. 3.7× more training data than v0 didn't move them, which suggests the limit is what the data covers, not model size or training length.

The learning-rate decay (last 20% of steps) cut val loss from about 3.20 to 3.025, 1930-novel perplexity from 20.2 to 17.4, and WikiText from 58.8 to 48.6.

Samples (configs/prompts/openpd-v1.toml, 3 samples per prompt, temperature 0.9, top-k 50; v1 vs v0 vs GPT-2). v1 stays on topic more than v0 (the natural-history prompt now gets plumage and egg counts rather than a family story) and writes consistent period dialogue. With no chat in its data, modern prompts become period fiction instead of v0's IRC chat; the IRC-style prompt <mike> anyone know how to turns into prose about grammar. Example:

The old captain looked out across the harbor and called in the mate of the ship.

"Where is it?" asked the midshipman politely. "Are the schooners safe?"

"I think the schooners are safe," answered the skipper. "I have seen the schooners off the land now. Have them taken on board, and put in a fresh supply at least."

Known issues

From the dataset's content report (openpd-strict-v1_report.json):

  • Very long documents. 739 documents (7.5% of tokens) are longer than one 524k-token training batch, up to 7.2M tokens; each fills several consecutive batches by itself. In training this showed up as stretches of very low training loss and temporary validation-loss bumps (e.g. 3.28 → 3.36 → back below 3.28 around step 8,500).

  • Layout-heavy government text. 4.2% of tokens are in documents where ≥60% of tokens contain no letters (indentation, dot leaders, column layouts). 0.3% are numeric data tables.

  • OCR noise. Book, LoC, BHL, and case-law text is OCR; BHL in particular is noisy. Greek and other non-Latin passages in older books are often garbled.

  • No cross-source deduplication. The same work can appear in Project Gutenberg, the pre-1929 books, and LoC.

  • Period bias. Most text predates 1930; the model knows little about the modern world, and its language and attitudes reflect its sources, including their prejudices.

  • US-centric public-domain basis. Some works may still be under copyright outside the US.

  • Tokenizer. The GPT-2 tokenizer was trained by OpenAI on WebText, which is not open data. The model's weights are trained only on open data, but its vocabulary is not.

  • 8-bit ONNX weights (browser demo) are slightly worse than the full-precision model: on a held-out 1930 passage, loss 2.945 vs 2.928, same top prediction 89.5% of the time. are mixed precision: the 8 layers most sensitive to quantization stay fp32, because a few extreme activations in early layers made fully 8-bit weights noticeably worse (loss +0.017 on a held-out 1930 passage). With them kept fp32: loss 2.930 vs 2.928 at full precision, same top prediction 93.4% of the time, 214 MB.

  • Unverified upstream details. Common Pile's compilation license and the exact classifiers in its filtering pipeline are not yet verified against its paper.

Intended use

Experiments, comparisons with the original GPT-2, demonstrations of open-data training, winning petty arguments, and fun. Not for factual questions, advice, or any use that needs reliable or current information.

Attribution

Training data from the Common Pile v0.1 (Kandpal et al. 2025, The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text) and the Library of Congress Selected Digitized Books collection (compiled by Sebastian Majstorovic / storytracer).

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей