/ Модель

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

Контекст
1 024 токена
Параметры
933 888
Лицензия
MIT
Архитектура
llama · dense
Библиотека
transformers
Опубликована
10 ноя 2026

slm-tavenel-story-935k

Генерация текстаТекст → текст3 профессии
216скачиваний за 30 дней0лайковвеса обновлены10 ноя 2026

Описание модели

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

Экспериментальная компактная Llama-модель генерирует англоязычные продолжения детских историй и предназначена для исследований малых языковых моделей.

SLM-Tavenel Story 935K — экспериментальная англоязычная модель продолжения детских историй, разработанная автором репозитория и опубликованная как исследовательский артефакт. Это компактная причинная языковая модель архитектуры Llama с 935 040 параметрами, четырьмя блоками декодера, группированным запросным вниманием и общими весами эмбеддингов и выходного слоя. Модель принимает текст и генерирует продолжение; её контекст составляет 1 024 токена. Обучение проводилось с нуля на выборке из первого шарда SimpleStories, а не на всём наборе данных.

Модель предназначена для экспериментов с малыми языковыми моделями, генерацией историй, байтовой токенизацией и анализом ошибок повествования. На локальной отладочной выборке SimpleStories она показала более низкий показатель BPB, чем TinyStories tiny1m, однако на официальной валидации TinyStories результат был хуже; эта метрика не оценивает связность сюжета. Модель часто теряет из виду персонажей, предметы и цели, не обучалась следованию инструкциям или безопасному поведению и не предназначена для диалогов либо надёжного повествования. Весы выпущены под лицензией MIT; README оговаривает неразрешённую неопределённость относительно исходных условий генерации SimpleStories.

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

SLM-Tavenel Story 935K

An English story-continuation research model with 935,040 parameters and a 1.87 MB bfloat16 weight file. It learns children's-story language but often loses track of characters, objects and goals. It is a base predictor, not a chat assistant or a reliable storyteller.

Public research preview, released under MIT. The owner explicitly authorized public weights with the remaining SimpleStories source uncertainty documented. The producer declares MIT, but the original generator-service terms have not been independently verified. See source review and publication decision. This is not a claim of legal clearance, OSI certification or comprehensive safety validation.

Architecture · Training · Evaluation · Examples · Observability · Reproduce · SLM-Tavenel project

PropertyValue
Unique parameters, including shared embedding/output weights935,040
Backbone4 pre-RMSNorm decoder blocks, width 128, SwiGLU intermediate size 416
AttentionCausal grouped-query attention, 4 query heads / 1 key-value head, head dimension 32, RoPE
Additional attention gates / QK normalizationNone
TokenizerProject byte-level BPE, 1,024 entries; trained only on training stories
Learned training window256 tokens
Configured positional limit1,024 tokens; longer contexts perform worse and are not recommended
ExportStandard Transformers LlamaForCausalLM, safetensors bfloat16, tied embeddings
InferenceCPU supported; standard Transformers loading, no repository-specific remote code required
TrainingFrom scratch, seed 421201, 100,007,936 presented token positions
Data60,000 SimpleStories training stories from one pinned shard; 3,185 local dev stories
ScopeEnglish, synthetic stories; one run, exploratory results

Run locally

The package was checked with Python 3.11.9, PyTorch 2.10.0+cu130, Transformers 4.57.6, tokenizers 0.22.2 and safetensors 0.8.0. These are the recorded versions, not a claim that every other version is incompatible.

pip install torch "transformers==4.57.6" "tokenizers==0.22.2" "safetensors==0.8.0"
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "athenista/slm-tavenel-story-935k"
# This immutable revision contains the checked weight and tokenizer files.
revision = "62e64c2b677ea9fbc90cdee0fbfe66b589b78e83"
tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
model = AutoModelForCausalLM.from_pretrained(
    model_id, revision=revision, dtype=torch.float32
).eval()
torch.manual_seed(0)
inputs = tokenizer("Once upon a time, a fox found a key.", return_tensors="pt")
with torch.inference_mode():
    output = model.generate(
        **inputs, max_new_tokens=160, do_sample=True,
        temperature=0.8, top_p=0.9, pad_token_id=tokenizer.pad_token_id
    )
print(tokenizer.decode(output[0], skip_special_tokens=True))

Keep the prompt plus continuation within 256 tokens. CPU float32 is used for these examples even though the stored weights are bfloat16. A 4-bit or GGUF variant has not been produced or measured. Operational measurements record CPU prefill latency and cached generation speed; timing is from one machine and excludes loading.

CPU, two threads; batch 1Measured value
Prefill, 128 tokens7.39 ms
64 generated tokens, total0.210 s
Cached greedy generation304.1 tokens/s

Median of three runs after one warmup, CPU float32. The generated sequences are forced to 64 new tokens for timing. This is one machine/session and excludes loading; it is not a hardware-independent speed claim.

Architecture

Architecture of the 935,040-parameter SLM-Tavenel Story model

Figure 1. The complete standard Llama computation. The embedding table and output matrix share weights. There are no attention gates or auxiliary inference models.

ComponentParameters
Shared token embedding / output table131,072
Attention projections, four blocks163,840
SwiGLU projections, four blocks638,976
RMSNorm weights, including final norm1,152
Total935,040

Training

SettingValue
Training seed421201, one run
OptimizerAdamW, beta1 0.9, beta2 0.95, epsilon 1e-8, weight decay 0.1
ScheduleCosine, 300 warmup updates, peak LR 1e-3, minimum LR 1e-4
Updates6,104
Batch32 sequences × 256 tokens × 2 accumulation steps = 16,384 positions per update
Exposure100,007,936 positions; approximately four passes over 24,806,504 training-token positions
Precisionbfloat16 mixed precision; native checkpoint retains float32 weights
Gradient clipping1.0
HardwareOne RTX 4060 Laptop GPU, 8 GB
Training duration / measured energyApproximately 9.4 minutes / 7.344 Wh GPU board energy
Peak allocated training VRAM0.566 GB; excludes CUDA/driver overhead
DeterminismDeterministic algorithms enabled; cross-platform bitwise reproducibility is not promised

The tokenizer was trained on a seeded sample of 30,000 local training documents. The local source split groups all stories from the same original completion on the same side. The first shard only was sampled; the model did not train on all of SimpleStories. Original manifests and their dirty: true code status are preserved. No new training or performance improvement is implied by exporting this checkpoint.

Training and sampled validation losses across the completed run

Figure 2. One training seed. Training loss is a minibatch estimate; validation loss is sampled during training. The final logged validation cross-entropy is 1.9662 nats per token. This is not an independent final-test loss.

Evaluation

The comparison uses the project's existing likelihood evaluator, source code, on exactly the same 3,185 local dev stories, totaling 3,944,858 UTF-8 bytes. Each document is prefixed with the model's document-start/end token. Next-token log probabilities are accumulated in non-overlapping 256-token chunks and divided by the byte count. Lower bits per byte is better. Per-token perplexities are not compared across different tokenizers.

ModelUnique parametersScoring contextDev BPB
SLM-Tavenel Story 935K, exported weights935,0402560.9370
TinyStories tiny1m935,0402561.6701

The native float32 checkpoint measured 0.9370 BPB at chunk length 256, 1.1453 at 512 and 1.2914 at 1,024. The table's Story 935K result is recomputed on the exact exported bfloat16-rounded weights loaded in CPU float32; its raw results bind the scored data and weights by SHA-256.

Descriptive same-text BPB comparison and context-length diagnostic

Figure 3. Both models are scored on the same local SimpleStories dev texts. The right panel varies chunk length for the native Story 935K checkpoint.

Full TinyStories validation: 21,990 stories, 19,218,350 UTF-8 bytes, scored on both frozen exported models with the same 256-token policy. The official source revision and exact/case-whitespace overlap checks are in dataset audit.

Evaluation textsSLM-Tavenel Story 935K BPBTinyStories tiny1m BPB
SimpleStories local dev (3,185)0.9370121.670079
TinyStories official validation (21,990)1.5430901.045244

On TinyStories, Story 935K minus tiny1m = +0.497847 BPB, 95% paired document-bootstrap interval [+0.491981, +0.503727]. A negative difference favors Story 935K. The interval describes these fixed checkpoints and documents; it excludes training-seed variation, unknown reference exposure and dependencies between synthetic story families. See full results and hashed per-item scores.

The SimpleStories advantage reverses on TinyStories: tiny1m has lower BPB on the official TinyStories validation texts, while Story 935K has lower BPB on its own source's dev texts. Neither result is a human narrative-coherence score or a comparison at equal training budget.

The tiny1m tokenizer is explicitly loaded as LlamaTokenizer(legacy=True) in the cross-corpus comparison. Its SimpleStories line was recomputed with that same loader. The previous automatically converted fast tokenizer differed by 44 tokens across 3,185 dev stories; both results and the unchanged weights are documented in tokenizer reconciliation. This is a loading correction, not a trained-model improvement.

Same-policy BPB on SimpleStories and TinyStories

Figure 4. Corpus-specific likelihood, not narrative preference. Only the TinyStories panel has document-bootstrap intervals; SimpleStories intervals were not computed.

This does not establish a narrative-quality win over tiny1m. The local dev stories share the source and domain of Story 935K's training material. tiny1m has different training data, tokenizer and budget. There is one training seed and no neutral or sealed final test. The initial SimpleStories dev comparison has no uncertainty interval; the TinyStories intervals above cover fixed checkpoints only. No completed blind human preference study is claimed. General multiple-choice accuracy has not been evaluated for this export.

Five public story prefixes also produced 15 continuations per model: one greedy continuation and two sampled seeds per prefix, under a 320-byte generation budget with visible final-token overshoot and stop reasons. All 30 raw records, decoding settings, the blank human-review form and model key are included. Repetition is a mechanical diagnostic and is not presented as a coherence or preference score. Those prefixes are development probes, not an unseen test.

An interactive local human-review form now hides fresh randomized A/B assignments and collects grammar, coherence, relevance and preference from human readers. The aggregate status currently reports no completed human form. These are the same five previously public prefixes; prior exposure must be disclosed, and 15 pairs are not 15 independent prompts. Missing ratings are never replaced with model-generated judgments.

Raw examples

The two prompts below were supplied in the publication request. Each receives exactly one sampled continuation with seed 0, temperature 0.8, top-p 0.9 and at most 160 new tokens. The continuation is not rewritten or selected among retries; raw token IDs and settings are included. These examples were already inspected during development.

Prompt 1: Once upon a time, a fox found a key.

There was a golden coin! Excited, they gathered all the animals and shared the letters with their friends. They realized that it was fun to build. They wanted to join their first socks, so they gathered in the park.

In the end, they learned that being a hero was not just about the partners. They shared stories and laughed. Their hearts were full of joy and laughter. They learned that even though their best changes, they could overcome anything, growing together.

When they returned home, they understood that adventures are always within. They promised to always rememb

Prompt 2: Lily was afraid of the dark, so her brother gave her a small lamp.

They looked out at the stars, but they kept climbing. In that moment, she felt the weight of her strength. "I will find a way," she thought, her heart racing.

As they entered the forest, the trees whispered secrets. They spoke of love and song, lost and alone. "If you trust me, you must face your fears," the spirit said. The children stared at them, their eyes sparkling like the stars. They were thrown into the darkness, sharing the stories of their own. The girl smiled, knowing she had found the star's magic.

The output can be grammatical and story-like while changing characters, losing objects and adding irrelevant events. Fluency is not proof of causal consistency, factual accuracy or instruction following.

Observability and explanation

Per-layer activation and attention diagnostics on the logged probe

Figure 5. Last logged observability probe at update 6,000, before the final checkpoint at update 6,104. The probe was sampled from validation data using a fixed RNG seed. Attention entropy, mass on the first token and residual RMS describe computation; they do not independently explain narrative meaning.

The original observability log also records weight norms, gradient norms and update ratios. The architecture does not have attention gates, so gate-closure rates would be inapplicable here. Logged probes are not blinded outcome measurements.

Changes in one next-token log probability after zeroing individual attention heads

Figure 6. Each intervention zeroes one head before its output projection. Values are changes in the log probability of the unmodified model's top next token, on the same two fixed prompts. Negative values mean that removing the head reduced that token's probability. The raw ablation records describe a causal effect on that narrowly specified token score, not a validated semantic role for a head or an explanation of a whole story.

Data, licensing and privacy

Source: SimpleStories/SimpleStories at the pinned revision. The producer declares MIT and the paper reports GPT-4o-mini-2024-07-18 generation. The source stories were generated by the upstream provider; this model was trained from scratch on those stories without making new calls to that API.

The source review distinguishes the producer's declared license from unverified original generation terms. The model weights and project code are released under MIT. This does not replace upstream obligations, establish the status of every output, or certify conformity with the Open Source AI Definition. Candidate source status and incomplete human source/privacy review are disclosed rather than signed retrospectively. Public release was explicitly authorized with those reserves; it does not change the historical source-review flags.

The actual split audit found zero shared completion groups and zero exact or case-and-whitespace-normalized texts between train and dev. A scan of all 63,185 local stories found no email, phone, contextual-IP or valid-IBAN patterns recognized by the project's detector. It does not detect every kind of personal information, determine whether names are real, test memorization, or establish semantic independence of the splits. Real training text is excluded from this package; its metadata-only source index records source rows, IDs, completion groups, splits and text hashes.

Intended use and limits

This checkpoint is intended for research into very small language models, byte-level tokenization, narrative failure modes and mechanistic probes. It is English-only and has not been instruction, preference or safety tuned. It can produce false, repetitive, biased or unsuitable content. No comprehensive safety, memorization, child-suitability or privacy evaluation has been completed. The children's-story style is not an assurance that the output is appropriate for children. Consequential decisions, factual advice and unsupervised child-facing deployment are outside the evaluated scope.

Reproducibility and provenance

The native training-code base is commit 34a92771b3d9a95356d81a9296c6bec0844b6904, recorded as dirty. The story-model configuration and fluency tool originate from PR #1 at commit 14bb331; the completion-group split and 100M-token training configuration were prepared locally afterward. These previously uncommitted components are included in this publication's GitHub source, with their origin disclosed. Publishing them now does not retrospectively make the original run a clean-commit run.

EvidenceFile
Native checkpoint and exported artifact hashesOriginal export provenance
Resolved model/training configs, seed and environmentRun manifest
Tokenizer training inputs and hashTokenizer manifest
Source revision, grouping and raw shard hashCorpus manifest
Token counts and shard hashesToken-shard manifest
Cache checks, weight mapping and CPU timingVerification
Training, validation and intervention evidencetraining_record/
Published package file inventoryPackage manifest

The native float32 weights are rounded to bfloat16 in the exported file. The tensor mapping is checked exactly; logits are compared against a native model with the same rounding and against the original checkpoint. The two differences are reported separately, so export rounding is not hidden. Cached and uncached greedy sequences are checked on the two fixed prompts. These checks validate packaging on these inputs; they do not establish model quality.

The GitHub repository contains the scripts needed to rebuild the subset, train the tokenizer, encode fixed splits, train the model, export it and reproduce these figures. See the experiment report. Training data, optimizer checkpoints and weight files are not committed to Git.

Citation

Please cite this model's pinned Hugging Face revision and the SLM-Tavenel GitHub release, and credit the dataset creators:

@article{finke2025parameterized,
  title={Parameterized Synthetic Text Generation with SimpleStories},
  author={Finke, Lennart and Sreedhara, Chandan and Dooms, Thomas and Allen, Mat and Zhang, Emerald and Rodriguez, Juan Diego and Nabeshima, Noa and Marshall, Thomas and Braun, Dan},
  journal={arXiv preprint arXiv:2504.09184},
  year={2025}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей