Community member trains an 8M-parameter LLM from scratch in PyTorch
A Reddit user says they built and trained an approximately 8-million-parameter LLM from scratch with PyTorch as an experimental platform for implementing ideas from research papers. They also report training it for 60,000 steps and documenting their implementation, experiments, mistakes, and lessons in personal blogs.
The post offers a concrete example of an individual using a small language model as a hands-on laboratory for testing research-paper implementations.
Hey everyone!
I've built and trained a small LLM (~8M parameters) from scratch using PyTorch, mainly as an experimental lab where I can implement and test ideas from different research papers.
I've been documenting the whole journey through casual blogs, including my mistakes, experiments, and things I've learned.
So far:
Next up is KV caching, followed by PagedAttention, Orca, and whatever else I find interesting.
Just wanted to ask if sharing these experiments and blogs here would be welcome. Nothing promotional, just me experimenting, learning, and hopefully getting feedback from people who know more than I do.