rasbt/LLMs-from-scratch

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

Open original source ↗

What this repository does

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

Repository facts

Owner
rasbt
Primary language
Jupyter Notebook
Stars
104,988
Forks
16,087
Open issues + pull requests
1
License
Other
Archived
No
Default branch
main
Created
2023-07-23T18:15:57.000Z
Last push
2026-09-10T20:36:18.000Z

Topics and intended use

Owner-supplied topics: ai, artificial-intelligence, attention-mechanism, deep-learning, finetuning, from-scratch, generative-ai, gpt, instruction-tuning, language-model, large-language-models, llm, machine-learning, natural-language-processing, pretraining, python, pytorch, tokenizer, transformers

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-09-15T06:38:54.881Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

jackfrued/Python-100-Days

microsoft/generative-ai-for-beginners

microsoft/ML-For-Beginners

microsoft/AI-For-Beginners

pathwaycom/llm-app

GokuMohandas/Made-With-ML