rasbt/LLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Star count as of 14:24 (BKK).
rasbt/LLMs-from-scratch has 107.4k stars and gained +655 of them in the last 7 days, a 0.6% change. It is written in Jupyter Notebook, grouped under ai-models, released under NOASSERTION. A merged pull request waits a median of 27m from opening to merge, measured on 18 pull requests. Last pushed on 2 Oct 2026.
Classified as learning material. Hidden from the default views.See why
Star history
Loading star history…
Growth
| Period | Stars gained | Growth | From | Measured |
|---|---|---|---|---|
| Last 6 hours | +6 | 0.0% | 107.4k at 08:49 | Intraday snapshots, measured 14:24 |
| Last 12 hours | — | — | — | Not measured |
| Today | +4 | 0.0% | 107.4k on 27 Oct 2026 | Daily snapshots |
| Last 7 days | +655 | 0.6% | 106.8k on 18 Oct 2026 | Weekly history |
| Last 30 days | +1.9k | 1.8% | 105.5k on 27 Sep 2026 | Weekly history |
| Last year | +32.7k | 43.7% | 74.7k on 26 Oct 2025 | Weekly history |
A period with no current measurement is left blank: a delta needs a measurement at both ends of the period. The 6- and 12-hour periods need two intraday measurements exactly that far apart, the day-and-longer periods need snapshots on both dates, and the last year also needs star history from a year ago, which we keep for one year.
Embed this badge
Copy either snippet into the repository's README. The badge shows total stars and the gain over the last 7d (the same window as the one below) and is hotlinked directly, with no account or token.
[](https://bestofgit-blue.vercel.app/projects/rasbt/LLMs-from-scratch)
<a href="https://bestofgit-blue.vercel.app/projects/rasbt/LLMs-from-scratch">
<img src="https://bestofgit-blue.vercel.app/badge/rasbt/LLMs-from-scratch.svg?window=7d"
alt="Star and growth badge for rasbt/LLMs-from-scratch on BestOfGit" />
</a>