{"slug": "show-hn-i-trained-a-326m-language-model-from-scratch-on-one-rtx-3060-ti", "title": "Show HN: I trained a 326M language model from scratch on one RTX 3060 Ti", "summary": "A developer posting as luka0x12 trained Lyra, a 326M-parameter language model, from scratch on a single 8 GB RTX 3060 Ti, pretraining on 6.4B tokens in a little over a week before fine-tuning on about 78,000 examples to produce an instruct checkpoint. The base and instruct checkpoints are published on Hugging Face under CC BY-NC 4.0, with training code under Apache 2.0, and the instruct model can be run locally via python chat.py. The developer notes that a restart once rolled training back 20,000 steps because the resume command loaded the best-validation-loss checkpoint, and now saves the latest training state separately; the instruct model handles simple questions but still confidently fabricates answers.", "body_md": "I wanted to see how far I could get with the GPU I already had. Pretraining Lyra on 6.4B tokens took a little over a week on my 8 GB 3060 Ti. Then I fine-tuned it on about 78,000 examples to see what it would take to turn a text completer into something I could chat with.\n\nOne restart sent me back 20,000 steps. My resume command loaded the checkpoint with the best validation loss, which hadn’t improved in a while. Now I save the latest training state separately so a restart picks up where I actually left off.\n\nYou can try the instruct checkpoint locally with python chat.py. It handles simple questions and still confidently makes things up. The training code is Apache 2.0 if you want to retrain it, and both checkpoints are available under CC BY-NC 4.0.\n\nBase checkpoint [https://huggingface.co/luka0x12/Lyra-326M-base](https://huggingface.co/luka0x12/Lyra-326M-base)\nInstruct checkpoint [https://huggingface.co/luka0x12/Lyra-326M-Instruct](https://huggingface.co/luka0x12/Lyra-326M-Instruct)\nArchitecture and training notes [https://luka0x12.github.io/Lyra/](https://luka0x12.github.io/Lyra/)\n\nComments URL: [https://news.ycombinator.com/item?id=50736541](https://news.ycombinator.com/item?id=50736541)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-i-trained-a-326m-language-model-from-scratch-on-one-rtx-3060-ti", "canonical_source": "https://github.com/luka0x12/Lyra", "published_at": "2026-12-02 21:30:41+00:00", "updated_at": "2026-12-02 21:46:48.327570+00:00", "lang": "en", "topics": ["large-language-models", "machine-learning", "ai-research", "ai-tools"], "entities": ["Lyra-326M", "luka0x12", "RTX 3060 Ti", "Hugging Face", "Lyra-326M-base", "Lyra-326M-Instruct"], "also_reported_by": [], "takeaway": "A 326M-parameter model can be pretrained on 6.4B tokens in just over a week on a single 8 GB RTX 3060 Ti, but save the latest training state separately from the best-validation-loss checkpoint or a restart can roll back 20,000 steps.", "recommendation": {"advice": "Save the latest training state separately from the best-validation-loss checkpoint so a restart resumes where training actually stopped; the source lost 20,000 steps by reloading the best-loss checkpoint.", "playbook": "training-data", "playbook_url": "https://wpnews.pro/playbooks/training-data"}, "alternates": {"html": "https://wpnews.pro/news/show-hn-i-trained-a-326m-language-model-from-scratch-on-one-rtx-3060-ti", "markdown": "https://wpnews.pro/news/show-hn-i-trained-a-326m-language-model-from-scratch-on-one-rtx-3060-ti.md", "text": "https://wpnews.pro/news/show-hn-i-trained-a-326m-language-model-from-scratch-on-one-rtx-3060-ti.txt", "jsonld": "https://wpnews.pro/news/show-hn-i-trained-a-326m-language-model-from-scratch-on-one-rtx-3060-ti.jsonld"}}