/ Модель

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

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

DiffuThink-Story-512

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

Небольшая англоязычная модель, обученная с нуля для продолжения коротких историй и восстановления замаскированных фрагментов текста.

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

Бенчмарки

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

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

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

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

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

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

DiffuThink-Story-512 — разработанная в этом проекте гибридная языковая модель на PyTorch с 13 439 680 параметрами, обученная с нуля на синтетических английских историях TinyStories. Она продолжает фрагменты рассказов и восстанавливает замаскированные части текста; обучение сочетает причинное предсказание следующего токена и денойзинг, а контекст составляет 512 токенов. Модель использует двунаправленное RoPE-внимание, RMSNorm, SwiGLU, обучаемые абсолютные позиции и общие входные и выходные эмбеддинги. Чекпойнт не совместим с AutoModel и поставляется с собственной архитектурой и API инференса.

В README приведены метрики восстановления подслов и причинной оценки на отложенных данных, но они не показывают качество диалога или связность историй. Модель может повторяться, выдумывать детали, останавливаться рано и генерировать неграмотный текст; она не предназначена для общего рассуждения, следования инструкциям, фактически точных ответов или многоязычной работы. В метаданных указана лицензия Apache-2.0, однако карточка README отмечает, что это локальный кандидат на выпуск и лицензия обученных весов не была автоматически подтверждена.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

DiffuThink-Story-512

A 13,439,680-parameter hybrid language model whose entire weight lineage was trained from random initialization in this project. No pretrained model weights or external tokenizer vocabulary were used. Custom PyTorch architecture and inference API; not an AutoModel-compatible checkpoint.

What it does

Completes English story fragments and reconstructs masked subwords. Uses bidirectional RoPE attention, RMSNorm, SwiGLU, learned absolute positions, tied input/output embeddings and noise conditioning. The training objective mixes random masks and masked suffixes. This hybrid checkpoint adds 90% causal and 10% denoising training batches. Continuation uses strictly causal next-token prediction. Infilling uses confidence-ordered unmasking; autoregressive continuation is NOT diffusion. The optional adaptive budget is a confidence heuristic, not learned reasoning or a new diffusion theorem.

Measured held-out reconstruction

Mask rateTop-1 token accuracyTop-5Cross-entropy (nats)Unigram top-1
15%69.39%87.79%1.3547.04%
50%51.36%73.87%2.3486.89%
85%23.93%44.64%4.2336.96%

Exact experiment details, counts, versions and limitations: evaluation.json. These numbers are subword reconstruction metrics, not chat quality or autoregressive perplexity. The test uses the first 512 prepared held-out windows.

Run locally

Download this repository, install requirements.txt, and run from its directory:

from diffuthink.v2.inference import load
from diffuthink.v2.hybrid import generate
model, tokenizer = load(".", device="cpu")
result = generate(model, tokenizer,
    "Once upon a time, a little girl found", max_new_tokens=192,
    temperature=0.5, seed=42, precision="fp32", finish_sentence_tokens=32)
print(result["text"])

For a Hub download use huggingface_hub.snapshot_download(repo_id=YOUR_REPO_ID), then use that returned directory as the model path and Python import root. The Python code is included for inspection; no remote-code execution is required by a loader.

Data and provenance

TinyStories: https://huggingface.co/datasets/roneneldan/TinyStories Pinned revision: f54c09fd23315a6f9c86f9dc80f725de7d8f9c64. 500,000 training stories; 1,000 validation and 1,000 test stories from the source validation file. Normalized exact-document duplicates are removed across splits; near-duplicate and semantic leakage detection is not claimed. Each document is windowed only after splitting. The byte-level BPE tokenizer is trained only on training stories (first 50,000). TinyStories is synthetic, generated using GPT-3.5/4, and its card declares CDLA-Sharing-1.0. The data is not included in this model release. See training_info.json for lineage and hashes.

Limitations and authorship

Small English story model: can repeat, invent, stop early, or produce ungrammatical text. No general reasoning, instruction following, factual accuracy, multilingual proficiency, or superiority to established language models is claimed. The basic unigram comparison is weak; sampler and bigram experiments are documented separately in the project. Development was substantially AI-assisted. The portfolio contribution is the implemented pipeline, experimental method, analysis and subsequent personal work, not a claim to have invented Transformers, BPE or discrete diffusion.

Publication

This is a local release candidate, not an uploaded model. Select an appropriate project/model license before a public release and preserve source-data attribution. No license tag is asserted automatically for the trained weights.

Causal evaluation

Held-out next-token NLL: 1.6798 nats; perplexity: 5.364. Evaluated over 95831 targets. This is a genuine causal likelihood metric, unlike masked reconstruction CE. It does not measure story coherence.

Default decoding uses top-p 0.9, repetition penalty 1.12 and no repeated four-token sequences. These are disclosed logit constraints, not grammatical rewriting. The project report also preserves samples without repetition controls.

Expanded context phase

Context: 512 tokens. The original positional embeddings were preserved; added positions were initialized near their mean and then trained. The BPE vocabulary and held-out document splits are unchanged. This is continued training of this project's own from-scratch weights.

The local demo allows up to 32 extra tokens after its requested budget to reach terminal punctuation. It reports whether EOS, punctuation, or the hard length limit ended generation. That display heuristic does not guarantee a finished or coherent story. Fair before/after benchmarks disable the extra-token allowance.

Controlled previous-checkpoint comparison

Both models were evaluated on the same 1380 legacy test windows (192 tokens), with identical targets and tokenizer. Perplexity: 7.206 before, 6.147 after. This differs from the 512-token-window evaluation above. All 24-prompt, two-seed samples and their decoding settings are in comparison.json. Repetition and EOS rates are descriptive indicators, not a semantic-coherence assessment. Corpus size, context and training compute changed together; their individual effects are not isolated.

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

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

GPU в ailist

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

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

Архитектура ? неизвестна transformers в образе рантайма.

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

0 моделей