Skip to content
The Daily Repo

FareedKhan-dev / train-llm-from-scratch

A straightforward method for training your LLM, from downloading data to generating text.

Why this job: says: from scratch

What it does

I implemented a transformer model from scratch using PyTorch, based on the paper Attention is All You Need. You can use my scripts to train your own billion or million parameter LLM using a single GPU, or a small one on a laptop CPU with no GPU at all.

Get started

git clone https://github.com/FareedKhan-dev/train-llm-from-scratch.git
cd train-llm-from-scratch
pip install -e .
Maintenance
Active
Last commit 38 days ago
Stars
13,172
+83 this week
Licence
MIT
Allows business use
Downloads for
None listed
No release files
Latest version
None yet
No releases
Built with
Python
74% of the code

Is it looked after?

Contributors
Not stated
Last 90 days
Issues
93% closed
1 still open
Pull requests
21 merged
1 waiting
Releases
None
Never published

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
huggingface / alignment-handbook5,71147 days agoApache-2.0No downloads
Danielskry / Awesome-RAG1,42334 days agoCC0-1.0No downloads
analyticalrohit / llms-from-scratch3865 months agoMITNo downloads
More: languages, topics and project record

Languages

  • Python 74%
  • Jupyter Notebook 22%
  • Mermaid 3%
  • Shell 1%

Topics

  • gemini
  • large-language-models
  • llm
  • openai
  • training
  • transformers

Project record

  • JobLists and guides
  • StatusFeatured
  • Commits175
  • Forks1,829
  • Watching93
  • Stars in 28 days+1,096
  • CreatedJan 12, 2025
  • First seen by usNov 7, 2026
  • CheckedNov 8, 2026

Type to search.

Try