Lyra
A 326M-parameter decoder-only Transformer trained from scratch on 6.4B tokens using a single RTX 3060 Ti. Includes the full pretraining, SFT, and inference pipeline.
- Stars
- 570
- Forks
- 63
- + today
- +2
- Created
- 3d
Ranking data as of December 5, 2026 (UTC).
Star History
Today, hour by hour
Overview
A 326M-parameter decoder-only Transformer trained from scratch on 6.4B tokens using a single RTX 3060 Ti. Includes the full pretraining, SFT, and inference pipeline. It ranks #375 on GitTiger, gaining +2 stars on December 5, 2026 (UTC).
The project is written in Python and has 63 forks. It was created 3d ago.
What it is
Lyra is a 326-million-parameter decoder-only Transformer trained from scratch rather than fine-tuned from an existing checkpoint, and the repository publishes the whole pipeline: pretraining, supervised fine-tuning and inference. The author, described as a fourteen-year-old in Serbia, trained it on one NVIDIA RTX 3060 Ti with 8 GB of VRAM.
Capabilities
Pretraining ran for 195,312 steps over a 6.4-billion-token corpus blended at 70% FineWeb-Edu, 20% Cosmopedia v2 and 10% Python-Edu, ending at a validation loss of 2.32 nats, or perplexity 10.19. A second stage, called Second Voice in the README, added roughly 78,000 supervised examples with length-bucketed batches and loss masking on assistant turns only, turning the base checkpoint into a model that answers questions and refuses requests. Both luka0x12/Lyra-326M-base and Lyra-326M-Instruct are published for use.
Getting started
The listing gives no memory or hardware guidance for inference, and the training commands are not included in the supplied fields; the repository README carries them.
git clone https://github.com/luka0x12/Lyra.git
cd Lyra
# see README for setupFrequently Asked Questions
What hardware was Lyra trained on?
A single RTX 3060 Ti with 8 GB of VRAM, according to the README summary. The repository does not state what running inference requires.
How large is the training corpus?
6.4 billion tokens drawn from FineWeb-Edu, Cosmopedia v2 and Python-Edu in a 70/20/10 split.
Is there an instruction-tuned variant?
Yes, Lyra-326M-Instruct, produced from about 78k supervised examples with assistant-only loss masking.