cd /news/large-language-models/show-hn-i-trained-a-326m-language-mo… · home › topics › large-language-models › article
[ARTICLE · art-180558] src=github.com ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

Show HN: I trained a 326M language model from scratch on one RTX 3060 Ti

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.

recommendation

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.

more in playbook: Fine-tuning and data
read1 min views15 publishedDec 2, 2026

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.

One 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.

You 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.

Base checkpoint [https://huggingface.co/luka0x12/Lyra-326M-base](https://huggingface.co/luka0x12/Lyra-326M-base)
Instruct checkpoint [https://huggingface.co/luka0x12/Lyra-326M-Instruct](https://huggingface.co/luka0x12/Lyra-326M-Instruct)
Architecture and training notes [https://luka0x12.github.io/Lyra/](https://luka0x12.github.io/Lyra/)

Comments URL: [https://news.ycombinator.com/item?id=50736541](https://news.ycombinator.com/item?id=50736541)

Points: 1

── more in #large-language-models 4 stories · sorted by recency
── more on @lyra-326m 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-i-trained-a-…] indexed:0 read:1min 2026-12-02 · —