Lyra-326M: a small English-only model shared before and after instruction tuning
Lyra-326M is a 326M transformer that its author pretrained from scratch over about a week on a 3060 Ti. The author uploaded two checkpoints[1] to Hugging Face: a base model that continues whatever text it is given, and an instruct version made with instruction tuning[2]. The instruct version starts from the base weights and was trained on about 78k examples, with training computed only on the assistant tokens. It learned to take its turn in a chat, but it still makes things up. The model is English-only with a 1,024-token context. The author says it was mostly a learning project and may continue it. Both downloads include the PyTorch model and tokenizer[3]; generate.py runs the base version and chat.py runs the instruct version locally. The data builder and trainer are open source under Apache 2.0, and both checkpoints are open weights[4] under CC BY-NC 4.0 for noncommercial use.
Repository Lyra github.com
Open source 326M-parameter English language model, trained from scratch, with code for pretraining, instruction tuning and local inference.
Links from the post and discussion
- Base model weights on Hugging Face huggingface.co
- Instruct model weights on Hugging Face huggingface.co
- Training code on GitHub github.com
- Architecture walkthrough luka0x12.github.io
Sources
-
Reddit
I uploaded both Lyra-326M checkpoints so you can try it before and after instruction tuning



