/ Модель

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

Контекст
2 048 токенов
Параметры
566 млн
Лицензия
CC BY-NC 4.0
Архитектура
nanochat_gpt · dense
Библиотека
transformers
Опубликована
28 авг 2026

d20_optimized_897m_seed5

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

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

105скачиваний за 30 дней0лайковвеса обновлены3 сен 2026

Бенчмарки

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

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

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

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

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

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

d20_optimized_897m_seed5 — исследовательская базовая языковая модель семейства nanochat GPT, опубликованная как часть Scaling Ladder для изучения разброса результатов предобучения между случайными инициализациями. Это плотный авторегрессионный трансформер, обученный предсказывать следующий токен; модель не проходила настройку для диалога и не имеет специального обучения безопасности.

Вариант d20 содержит 20 слоёв, скрытый размер 1280 и 10 голов внимания. В README указано около 897 млн параметров всего, тогда как метаданные сообщают 566,2 млн; для точного общего числа README приводит 896 533 746. Контекст составляет 2048 токенов, словарь — 32 768 токенов. Модель предназначена для экспериментов с предобучением и scaling laws, оценки контрольных точек и генерации продолжения англоязычного текста. Доступны ревизии с разными бюджетами обучения; README показывает TPP_10, TPP_20 и TPP_30 и описывает продолжение лестницы до TPP_200.

Архитектура включает чередование коротких скользящих окон внимания и слоёв с полным контекстом, value embeddings, повторное введение исходного embedding на каждом слое, rotary embeddings и другие механизмы nanochat. Модель использует лицензию CC BY-NC 4.0, которая ограничивает коммерческое использование. Поскольку отсутствуют instruction tuning и safety training, она не предназначена как готовый диалоговый помощник; возможны нестабильные или небезопасные продолжения.

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

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

Ограничения

Модель не проходила instruction tuning или safety training, поэтому не является готовым диалоговым помощником и может выдавать небезопасные или не соответствующие запросу продолжения. Лицензия CC BY-NC 4.0 ограничивает коммерческое использование.

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

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

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

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

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

Открыть на Hugging Face

Scaling Ladder — d20 (897M total parameters), seed 5

Research artifact. One of 24 base language models (3 sizes x 8 random seeds) trained to study seed-to-seed variance in language-model pretraining. Every model is a plain next-token predictor trained on the same data for 200 tokens per parameter. No instruction tuning, no safety training.

Tokens per parameter (TPP) is computed over scaling parameters throughout, not total parameters — see Parameter counts below.

This repository holds size d20, seed 5. The seed sets both the weight initialization and the data order; everything else is identical across the eight seeds of a size.

This revision (main) mirrors TPP_200 — the completed ladder.

validation loss across tokens per parameter

Validation loss in bits per byte (lower is better) against realized tokens per parameter, measured at each checkpoint save on the training run's held-out validation split. One series is the annealed models (the TPP_X revisions); the other is the un-annealed main-run (constant learning rate) checkpoints they forked from (the TPP_X_preanneal revisions). A thin connector joins each annealed model to the fork checkpoint its anneal started from. This repository's single run only — no averaging across seeds.

The ladder

reposlayershidden sizetotal parametersscaling parameters
d12_optimized_286m_seed1..812768286M110M
d16_optimized_537m_seed1..8161024537M235M
d20_optimized_897m_seed1..8201280897M435M

"optimized" in every repo name marks the architecture family: the full nanochat GPT with all of its architecture mechanisms enabled (see Architecture). It distinguishes this ladder from possible future ladders trained with a plainer ("clean") architecture.

Parameter counts

The size in each repository name is the total parameter count of the checkpoint — everything model.safetensors holds, including the token embedding and the value-embedding tables (10 at this size; 6/8/10 across d12/d16/d20): 286,261,730 / 536,871,738 / 896,533,746 for d12 / d16 / d20. The scaling-parameter count — the weight matrices plus the output head only, and the basis for tokens per parameter and the scaling-law fits — is smaller: 110,100,912 / 234,881,792 / 435,160,240. The gap is mostly the vocabulary-sized value-embedding tables (see Architecture).

Revisions: checkpoints along training

Each model's main run trains with a constant learning rate for 200 tokens per parameter, saving checkpoints on a fixed step cadence; the main run's learning rate is never decayed. Every annealed checkpoint comes from a separate anneal run: it forks the main run at the saved checkpoint closest to (mark minus 2.97B tokens) — before the mark — then trains a fixed 2.97B tokens (for this size) while the learning rate decays linearly to 5% of the constant value, landing at the mark. The annealed model's total token count is therefore the mark itself, not the mark plus the anneal. Because the fork snaps to the nearest saved checkpoint, the realized total can deviate from the nominal mark; the table below records it exactly, and the deviation is largest at the lowest marks. Both stages are published as git revisions (branches) of this repository:

  • TPP_X (X = 10, 20, ..., 200): the annealed model at the X-tokens-per-parameter mark. Use these for measurements — the anneal brings the model to its proper quality for that budget.
  • TPP_X_preanneal: the constant-learning-rate checkpoint of the main run that the TPP_X anneal forked from. Nominally the fork point sits about 6.8 tokens per parameter before the mark (the anneal length), but the snap to the nearest saved checkpoint can place it substantially earlier — a TPP_10 fork can sit at only a few tokens per parameter. The table below records every pre-anneal position exactly.
  • main: identical to TPP_200 once it exists; while the ladder is still training, main holds the latest available TPP_X.

Marks are added incrementally while training continues, so a missing revision only means it has not landed yet.

Currently available marks in this repository:

markannealed stepannealed tokens/parampre-anneal steppre-anneal tokens/param
TPP_10433210.44not landed yet-
TPP_20833220.08550013.25
TPP_301233229.72950022.89
TPP_401683240.561400033.73
TPP_502083250.201800043.37
TPP_602483259.842200053.01
TPP_702883269.472600062.65
TPP_803283279.113000072.29
TPP_903733289.963450083.13
TPP_1004133299.593850092.77
TPP_11045832110.4443000103.61
TPP_12049832120.0847000113.25
TPP_13053832129.7251000122.89
TPP_14058332140.5655500133.73
TPP_15062332150.2059500143.37
TPP_16066332159.8463500153.01
TPP_17070332169.4767500162.65
TPP_18074332179.1171500172.29
TPP_19078832189.9676000183.13
TPP_20082832199.5980000192.77

"Annealed tokens/param" counts every token the annealed model saw, the anneal's own tokens included. "Pre-anneal tokens/param" is the fork point's position in the main run: fork step x tokens per step / scaling parameters.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "jkminder/d20_optimized_897m_seed5"
revision = "TPP_100"  # or any revision above
tok = AutoTokenizer.from_pretrained(repo, revision=revision, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    repo, revision=revision, trust_remote_code=True, dtype="bfloat16")

trust_remote_code=True is required: the architecture matches no stock transformers class, so the modeling code ships in the repository (modeling_nanochat_gpt.py, plain PyTorch). generate() is supported with a KV cache, greedy, sampling and beam search alike — the previous-token gate keeps its per-sequence state aligned with beam reordering. Assisted decoding (an assistant model) is refused: it requires cache cropping, which that state does not support.

Architecture

Full nanochat GPT architecture — the "optimized" family in the repo name: depth 20, hidden size 1280, 10 attention heads (head dimension 128), sequence length 2048, vocabulary 32,768. All of nanochat's architecture mechanisms are active: value embeddings on alternating layers (the vocabulary-sized tables behind the scaling-vs-total parameter gap), re-injection of the input embedding at every layer, per-layer residual scaling, a learned gate that mixes each token's embedding with the previous token's, a mid-network subtraction of the stored input contribution, query-key sharpening, logit softcap 15, and attention that alternates short sliding windows with full-context layers (pattern "SSSL"). Also: parameter-free RMSNorm, rotary embeddings (base 100,000) with query-key RMS normalization after rotation, relu(x)^2 MLP, no biases, untied embeddings.

Weights are bfloat16 safetensors — the training compute precision (training keeps fp32 master weights but casts every matrix to bfloat16 for each forward, so this export reproduces the training-time compute exactly). Every revision's upload is byte-verified against the converted checkpoint (file sizes and content hashes of the hub listing). The conversion itself is verified by bitwise logit comparison against the original training code on at least one revision per repository; a revision that was logit-verified carries the record verify_results.json.

Tokenizer

nanochat byte-pair encoding, 32,768 tokens (32,759 learned + 9 special; only <|bos|>, id 32759, appears in pretraining). Trained once on ClimbMix and pinned across every model of the study. Load it with trust_remote_code=True as in the snippet (the config carries an auto_map, and resolving it without the flag triggers an interactive prompt).

Training data

ClimbMix (NVIDIA, filtered English web text), pinned snapshot climbmix_1201, single pass, sequences of 2048 tokens. The base data carries a CC BY-NC 4.0, research-and-development-only license, which this model mirrors.

License

  • Model weights: cc-by-nc-4.0 (mirrors the ClimbMix training data; research use).
  • Modeling/configuration code: MIT (derived from karpathy/nanochat; see the bundled LICENSE file).

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

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

GPU в ailist

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

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

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

Класс архитектуры
NanochatGPTForCausalLM
Ревизия весов
0e9af1f

0 моделей