rasbt/ LLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
What it does
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Summary based on the GitHub description (opens in a new tab)
What the README covers
- Build a Large Language Model (From Scratch)
- Table of Contents
- Prerequisites
- Hardware Requirements
- Video Course
- Companion Book / Sequel
- Exercises
- Bonus Material
- Questions, Feedback, and Contributing to This Repository
- Citation
Getting started
Excerpt from the README · Checked 15 Oct 2026
git clone --depth 1 https://github.com/rasbt/LLMs-from-scratch.gitShown exactly as published. Top 200 Repos has not run or tested it. View in README (opens in a new tab)
Ranking trend
Global rank in each recorded snapshot. A lower number is a higher rank.
From #118 to #124 across 2 snapshots since 15 Oct 2026.
What people build with it
No use case in the library involves this repository yet.
Suggest a use case