Repository navigation
Releases
Releases · crisptech/vrel
Vrel 0.3.1
Download the trained model: vrel-0.3.0.zip below is Vrel 0.3 (14.0M parameters, TinyStories, half the size of 0.2), 8-bit, ready to run. Unzip it into Lyss's models folder and type lyss. Also on Hugging Face.
- The 14M model is now called Vrel 0.3 (it was released as "Vrel Mini"). Same weights, same results. Its preset is still
mini. - Every trained version (0.1, 0.2 and 0.3) can be downloaded, ready to run in Lyss, from the GitHub releases and from Hugging Face (huggingface.co/crisptechdev/vrel). The README says what Vrel can and cannot do.
- Fixed: exports are labeled with the model's own version. Exporting Vrel 0.2 with newer code used to label it 0.3.0; now
exportwritesmodels/vrel-0.1.0/,models/vrel-0.2.0/ormodels/vrel-0.3.0/with the matching version inmodel.json.
From 0.3.0
Vrel Mini: half the size of Vrel 0.2, nearly the same stories.
- New Vrel Mini (
--preset mini): 14.0M parameters instead of 27.8M, learning from the trained Vrel 0.2 as well as from the stories. Validation loss 1.303 (perplexity 3.7) against 0.2's 1.278 (3.6). Its export is 14.2 MB, and it generates faster: 148.2 against 139.0 tokens/s on the GPU, 169.8 against 125.9 on the CPU (4 threads). Trained in 2 h 13 min on an RTX 4060. train --teacher <checkpoint>lets a model learn from a trained Vrel's guesses as well as from the text (distillation), with--distillsetting how much (default 0.5). On the 14M model it cut perplexity after 2,000 rounds from 6.0 to 5.4.--namesaves a run under its own folders.exportnow stores the weights as 8-bit numbers by default: a quarter of the file size (Vrel 0.2's weights: 111.2 MB to 28.0 MB). The validation loss went from 1.2779 to 1.2780 on 0.2 and from 1.3034 to 1.3035 on Mini.--format float32keeps full size. Older exports still load.- Vrel Mini exports to
models/vrel-mini-<version>/under the name "Vrel Mini", so it never overwrites the bigger model's export. - Fixed: Vrel sometimes treated your prompt as the middle of someone's speech and closed a quote that was never opened. Prompts now start a fresh story, the way every story starts in training. Stray closing quotes dropped from 12% to 1% of continuations (8 prompts, 10 seeds each).
Vrel 0.2.0
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 --downloaddownloads 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 nowstories(Vrel 0.2). Use--preset smallfor 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. exporttakestrained_oninmodel.jsonfrom the checkpoint, so each exported model names its own training data instead of always saying "books".- Released under the Crisp Tech name.
Vrel 0.1.0
Download the trained model: vrel-0.1.0.zip below is Vrel 0.1 (13.9M parameters, 67 public-domain novels), 8-bit, ready to run. Unzip it into Lyss's models folder and type lyss. Also on Hugging Face.
First release.
- Vrel, a small transformer language model built from scratch: our own tokenizer, layers, attention, optimizer, training loop and sampler. No pretrained weights, no borrowed model code.
- Results on held-out text: validation loss 3.637 (perplexity 38.0), against 4.916 (136.5) for the bigram baseline and 9.080 (8,776) for random weights. 13.9M parameters, trained in 40 minutes on an RTX 4060 at 20,422 tokens/s. Only 0.3% of its 8-word phrases appear word for word in the training books.
python -m vrel preparedownloads and cleans 67 public-domain novels from Project Gutenberg, falling back to official Project Gutenberg mirrors when gutenberg.org is down, and resuming downloads that get cut off.python -m vrel tokenizertrains an 8,192-token byte-level BPE tokenizer and encodes the books.python -m vrel bigramscores a simple counting baseline for comparison.python -m vrel traintrains the model on your GPU (or CPU), with checkpoints and resume.python -m vrel generatewrites text from a prompt, streamed as it is produced.python -m vrel watchopens a live, beginner-friendly dashboard at http://127.0.0.1:8777: how Vrel learns in plain words, how unsure it is round by round, progress, and what it wrote at the start next to what it writes now.python -m vrel statsandpython -m vrel exportinspect a checkpoint and package it in a self-contained folder that other apps can load.