Skip to content

Vrel 0.2.0

Choose a tag to compare

@luciertanner luciertanner released this 01 Dec 00:15
· 2 commits to main since this release

Download the trained model: vrel-0.2.0.zip below is Vrel 0.2 (27.8M parameters, TinyStories), 8-bit, ready to run. Unzip it into Lyss's models folder and type lyss. Also on Hugging Face.

Vrel now writes stories that make sense.

  • Vrel 0.2 is trained on TinyStories (2.7 million short stories, CDLA-Sharing-1.0) instead of 19th-century novels. It writes simple stories with named characters, dialogue, a problem and an ending.
  • Results on 27,630 held-out stories: validation loss 1.278 (perplexity 3.6), against 3.514 (33.6) for the bigram baseline and 8.436 (4,611) for random weights. 27.8M parameters, trained in 2 h 19 min on an RTX 4060 at 19,574 tokens/s, using 3.8 GB of GPU memory.
  • New, more modern design, still written from scratch: RMSNorm, rotary positions, SwiGLU and no biases, with a 512-token context (up from 256).
  • Our own attention backward pass recomputes what it needs instead of storing it, cutting training memory from 9.4 GB to 3.8 GB and making training 34x faster (578 to 19,694 tokens/s) at this size.
  • KV cache: generation is 4.9x faster on CPU (24.3 to 118.9 tokens/s). On the GPU it is about the same (135.3 to 139.1 tokens/s).
  • python -m vrel stories --download downloads the stories (resumable), trains a 4,096-token tokenizer and encodes all 552.6M tokens in about 2 minutes using several processes.
  • Every command takes --preset. Breaking: the default is now stories (Vrel 0.2). Use --preset small for the 0.1 book model.
  • The dashboard describes whichever run it is watching (dataset, size, rounds, prompt): python -m vrel watch --preset stories.
  • Fixed: the quick test presets (tiny, stories-tiny) saved over the real model's checkpoint. They now save to their own folder.
  • export takes trained_on in model.json from the checkpoint, so each exported model names its own training data instead of always saying "books".
  • Released under the Crisp Tech name.