Latest / Learning & reference

Train LLM From Scratch

github.com · Open source · Active

PyTorch code for training a transformer language model from raw text

Visit github.com ↗Share

Stars
13.3k
Forks
1.8k
Open issues
1
Last commit
Releases
1
Found
22 months ago

GitHub figures as of . They are context, not a ranking.

This project implements a transformer language model in PyTorch from scratch, based on the Attention Is All You Need paper. Its scripts cover downloading data, training and generating text, and can run on a single GPU or a laptop CPU. It suits learners who want to see each step of building and training a small LLM.

Repository description on GitHub: “A straightforward method for training your LLM, from downloading data to generating text.”

What it does

  • Hand-written transformer implementation in PyTorch
  • Scripts for data download, training and text generation
  • Runs on a single GPU or a small laptop CPU

Good for

  • Learn how a transformer language model is built step by step
  • Train a small model on a single GPU or a laptop CPU

Suits: Students and engineers learning how language models are trained.

What you can try

Clone the repository from GitHub and run its training scripts on a GPU or CPU, as the README outlines.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw Train LLM From Scratch on , when FareedKhan-dev created its repository on GitHub. The oldest published release on GitHub is v1.0.0, dated . Its first tagged release came 673 days after it was found.

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: FareedKhan-dev/train-llm-from-scratch
  2. Found: FareedKhan-dev created its repository on GitHub. GitHub
  3. Release v1.0.0
  4. Day-7 check recorded by Kip (details)
  5. Day-30 check recorded by Kip (details)

Quick answers

When was Train LLM From Scratch released?
Its first tagged release on GitHub is dated 16 Nov 2026. Kip found it on GitHub on 12 Jan 2025.
Is Train LLM From Scratch open source?
Its source is public on GitHub at FareedKhan-dev/train-llm-from-scratch under the MIT licence.
What does Train LLM From Scratch run on?
Command line.
Is Train LLM From Scratch free?
It is open source, so the code is free to read and run; check the licence for terms.
Is Train LLM From Scratch still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
GitHublisting
official API record
GitHub repositoryFareedKhan-dev/train-llm-from-scratch
REST API record
GitHub Releasesrelease list
REST API record

Stable ID github-915520679. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Learning & reference

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.