/ Модель

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

Лицензия
MIT
Библиотека
pytorch
Опубликована
30 сен 2026

slm-lab-chat-15m

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

Экспериментальная миниатюрная языковая модель SLM Lab для изучения продолженного предобучения на диалоговом тексте и генерации простого английского текста.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Dhevenddra/slm-lab-chat-15m — небольшая авторегрессионная трансформерная языковая модель, разработанная в проекте SLM Lab и обученная с нуля на наборе TinyStories, а затем продолженно обученная на диалоговом корпусе HuggingFaceTB/smoltalk. Это промежуточный чекпойнт исследования, посвящённого влиянию продолженного предобучения на поведение модели в чате; модель предназначена для изучения и воспроизведения обучения, а не для практического использования.

Модель содержит 12 587 904 параметра; её архитектура включает 6 слоёв, ширину 384, 6 голов внимания с 2 KV-головами и компоненты RMSNorm, RoPE, GQA и SwiGLU. Она генерирует текст на английском языке, обучена предсказывать следующие токены и имеет контекст 512 токенов. Продолженное обучение снизило потери на диалоговом корпусе, но ухудшило результаты на исходном корпусе TinyStories и не научило модель корректно формировать ответы по шаблону диалога.

Карточка сообщает, что модель показывает случайный уровень на стандартных бенчмарках, обучалась только на синтетических детских историях и не проходила обучение безопасности, фильтрацию или выравнивание. Лицензия репозитория — MIT.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

slm-lab-chat-15m

A 12,587,904-parameter decoder-only transformer, trained from scratch on TinyStories on a free Colab T4 — this repo is the mid-trained model.

It exists to isolate one question: how much of chat behaviour comes from continued pretraining on chat-shaped text, before any instruction tuning at all? The answer this model gives is almost none of the format, and a measurable amount of forgetting — which is the useful result, and the table below is it.

The base model continued on a chat-formatted corpus, so it has seen the template before it is asked to produce it. Mid-training is the step that is usually skipped and usually missed.

A research artifact for learning, not a product: built to understand and measure the training stack, and of no practical use as anything else.

How it was built

Parameters12,587,904
d_model / layers / heads384 / 6 / 6 (2 KV heads, GQA)
Vocabulary8192, byte-level BPE trained in this project
Context length512
ArchitectureRMSNorm, RoPE, SwiGLU, tied embeddings
DataTinyStories, full train split (2,119,719 documents)
OptimizerAdamW, lr 0.0004 → 4e-05, cosine, 120 warmup steps
Precisionfloat16 with GradScaler (the T4 has no bf16)

RMSNorm, RoPE, grouped-query attention and SwiGLU are each implemented twice in the repository — once slow and readable, once fast — with tests asserting the two agree to floating-point tolerance.

The run is safe to relaunch after any session kill: it resumes from its last checkpoint, and the resume is verified bit-identical — weights, Adam moments and data-loader position all agreeing to 0.000e+00 across a process boundary.

Results

beforeafterdelta
Chat-corpus loss5.40592.8836-2.5222
TinyStories loss1.57322.1276+0.5544
Tokens seen24,576,000
Epochs over the chat corpus1.22
Chat corpusHuggingFaceTB/smoltalk, 20,137,800 tokens
Chat-format compliance after mid-training0.0%

Read the two rows together. Mid-training gained 2.5222 nats on conversational text and lost 0.5544 nats on the original corpus — against a seed noise floor this project measured at 0.0146 nats, so both movements are real, and the forgetting is roughly 38× the noise rather than a rounding artifact.

And it bought no format at all: well-formed assistant turns stay at 0.0%. Seeing the template is not learning to emit it. That takes supervised fine-tuning, which is the next repo.

Every number above is read from this repo's own training record, and the full write-ups are published under results/ at https://huggingface.co/datasets/Dhevenddra/slm-lab-data.

Limitations

Specific, and written out in full — this is the section a knowledgeable reader checks first.

  • It only knows children's stories. TinyStories is synthetic text in a deliberately small vocabulary of simple English. The model has seen nothing else and will not handle anything else.
  • It scores at chance on every standard benchmark. That is what the scaling curve predicts at this size, not a training defect — and it is measured above rather than asserted.
  • 512-token context, with RoPE. It degrades past that length rather than failing outright, but it has never been trained there.
  • No safety training of any kind. No filtering, no alignment, no refusal behaviour. It is a next-token predictor over children's stories.
  • Not evaluated for bias. The corpus is synthetic and narrow, which constrains the harm surface but is not the same as having checked.

Contamination: ruled out, with confidence. The entire corpus was controlled within this project, so benchmark test data cannot have appeared in pretraining. That is an unusual thing to be able to say and it is why these models are useful as a floor measurement.

Reproducing it

git clone https://github.com/Dhevenddra/slm-lab && cd slm-lab/slm-lab
pip install -e ".[dev,data]"
python scripts/phase03_pretrain.py \
    --tokenizer artifacts/tokenizers/tinystories_8192.json

Where this came from

Part of slm-lab — a language model built end to end on free compute: a hand-written BPE tokenizer, a transformer from scratch, a controlled ablation study with a measured noise floor, post-training, QLoRA on a 1B model, DPO, and quantization written by hand and benchmarked against every production method.

This repo is the project's mid-training (phase 05) stage; the published write-up for it is under results/ in the dataset repo, named for that phase.

The project's own failure log (FAILURES.md, 26 entries) is the part most worth reading. The recurring shape: the instrument measured something correlated with the question rather than equal to it.

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
abec5cf

0 моделей