Skip to content
The Daily Repo

rasbt / LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

Why this job: says: from scratch

What it does

This repository contains the code for developing, pretraining, and finetuning a GPT-like LLM and is the official code repository for the book Build a Large Language Model (From Scratch).

Get started

No single install command. Read the steps in the README (opens in new tab)

Maintenance
Active
Last commit yesterday
Stars
108,118
+350 this week
Licence
Custom
Read before business use
Downloads for
None listed
No release files
Latest version
None yet
No releases
Built with
Jupyter Notebook
73% of the code

Is it looked after?

Contributors
10
Last 90 days
Issues
100% closed
1 still open
Pull requests
534 merged
3 waiting
Releases
None
Never published
  • No contributing guide
  • No security policy
  • No code of conduct

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
raiyanyahya / how-to-train-your-gpt4,17715 days agoMITNo downloads
rohitg00 / ai-engineering-from-scratch78,169yesterdayMITNo downloads
analyticalrohit / llms-from-scratch3865 months agoMITNo downloads
More: languages, topics, project record and preview image

Languages

  • Jupyter Notebook 73%
  • Python 27%
  • Dockerfile <1%

Topics

  • gpt
  • large-language-models
  • llm
  • python
  • pytorch
  • ai
  • artificial-intelligence
  • language-model
  • deep-learning
  • machine-learning
  • from-scratch
  • generative-ai

Project record

  • JobLists and guides
  • StatusListed
  • Commits1,090
  • Forks16,727
  • Watching869
  • Stars in 28 days+1,767
  • CreatedJul 23, 2023
  • First seen by usNov 7, 2026
  • CheckedNov 10, 2026

Project preview image

Preview image from rasbt/LLMs-from-scratch

Type to search.

Try