Serbian Teen Trained a Language Model from Scratch on an RTX 3060 Ti
Serbian Teen Trained a Language Model from Scratch on an RTX 3060 Ti
The open-source Lyra project documents the full pipeline for training, instruction tuning, and serving a small language model on consumer hardware.
A 14-year-old teenager from Serbia trained a language model from scratch. For that, he only needed an RTX 3060 Ti GPU with 8 GB of VRAM. In the end, he created a model with 326 million parameters and trained it on 6.4 billion tokens.
The entire process is published on GitHub: from data collection and pretraining to instruction tuning and building an interface for chatting with the model directly in the terminal. The project received 188 votes on Hacker News.
If you only have a regular gaming GPU and have long wanted to understand how large language models are trained, this repository may be more practical than many scientific articles.
The author's list of mistakes is especially interesting. He admits that implementing the full training process on such limited hardware exposed him to almost every possible pitfall of PyTorch. He documented nine serious errors in an architecture description. For anyone planning to train small models themselves, this can help avoid many problems.
If you do not want to train a model yourself, the author also published the weights of the fine-tuned model on Hugging Face. They can be downloaded and used immediately to chat with the model through the terminal.
Why it matters
AnalysisThe Lyra project shows that a basic LLM training pipeline can be reproduced on accessible hardware, while the documented PyTorch mistakes help developers avoid common pitfalls.
Discuss in community
Share your questions and insights with developers
Related in Ecosystem
Practical guides, core terminology, and agent skills
Synthetic Data Generation & Pretraining
A technology for generating, automatically filtering, and formally verifying training datasets using artificial intelligence to overcome the shortage of quality human data.
LearnHarness Turns AI Agents into Personal Tutors
LearnHarness is an open-source app that adapts AI agents into personalized tutors, tracking progress across sessions and supporting both cloud and local models.
Alibaba Releases Free AI Code Review Tool After Two Years of Internal Use
Alibaba has open-sourced Open Code Review, a free AI code-review tool that analyzes Git changes, comments on code lines, and detects bugs, synchronization issues, and vulnerabilities.
Jev and System One AI: A Complete Practical Guide to the Decision Model from TypeSafe
A deep engineering breakdown of the flagship Jev model: System One architecture versus LLMs, Choice/Score/Noul primitives, request parallelism, confidence mathematics, video use cases, code, and an overview of local open-weight alternatives (Laya, GLiNER2.5, CLM-8B).