roneneldan/TinyStories
Viewer • Updated • 2.14M • 322k • 1.34k
A small re-implementation of LLaDA, a masked diffusion language model, trained from scratch on TinyStories. It writes short children's stories by unmasking tokens step by step instead of left to right.
Live demo (runs in your browser): https://aleksanyan-volodya.github.io/llada/ Code: https://github.com/aleksanyan-volodya/LLaDA_interactive
| file | content |
|---|---|
model.onnx |
final checkpoint (step 60,000), fp32, 132 MB |
model_int8.onnx |
same, int8 dynamic quantization, 33 MB |
tokenizer.json |
byte-level BPE vocabulary (8,000 tokens) and merges, mask_id, eos_id, seq_len |
Model: bidirectional Transformer mask predictor, 8 layers, 8 heads, dim 512, RoPE, RMSNorm, SwiGLU, context 256.
Input ids (int64, shape [1, T], masked positions = mask_id), output logits ([1, T, 8000]).