r/huggingface • u/luka0x12 • 22h ago
I uploaded both Lyra-326M checkpoints so you can try it before and after instruction tuning
i spent about a week pretraining a 326M transformer from scratch on my 3060 Ti. i put both checkpoints on Hugging Face so you can see what instruction tuning changed. the base model keeps going from whatever text you give it. the instruct version starts from those weights and was trained on about 78k examples, with loss only on the assistant tokens.
it learned to take its turn in a chat, and it still makes stuff up. it's English-only with a 1,024-token context. this was mostly a learning project for me and i might keep going with it. both downloads include the PyTorch model and tokenizer. generate.py runs the base version and chat.py runs instruct locally.
the data builder and trainer are open source (Apache 2.0) if you want to retrain it. both checkpoints are open weights under CC BY-NC 4.0 for noncommercial use.
base weights · instruct weights · training code on GitHub · architecture walkthrough