๐Ÿ† #4 overall#3 of 601 in Language Models

rasbt /LLMs-from-scratch

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

$ git clone https://github.com/rasbt/LLMs-from-scratch.git
GitHub social preview for rasbt/LLMs-from-scratch
Stars
106.6K
106,580
Forks
16.4K
16,401
Language
Jupyter Notebook
License
Other
Created
Jul 23, 2023
3.2 years old
Last push
Oct 2, 2026

Categories

GitHub topics

More in Language Models

Language Models

jshuadvd/LongRoPE

Implementation of the LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens Paper

๐Ÿง  Natural Language Processingโœ‚๏ธ Tokenization & Preprocessing
Pythonno licenseupdated Jul 20, 2024
GitHub โ†—โ˜… 154โ‘‚ 13
Language Models

raiyanyahya/how-to-train-your-gpt

Build a modern LLM from scratch. Every line commented. Explained like we are five.

๐Ÿง  Natural Language Processing
Jupyter NotebookMITupdated Aug 30, 2026
GitHub โ†—โ˜… 3.7Kโ‘‚ 448
Language Models

analyticalrohit/llms-from-scratch

Build a ChatGPT like LLM from scratch in PyTorch, explained step by step.

โœ‚๏ธ Tokenization & Preprocessing
Jupyter NotebookMITupdated Jun 8, 2026
GitHub โ†—โ˜… 384โ‘‚ 90
Language Models

theaniketgiri/create-llm

The fastest way to build and start training your own LLM. CLI tool that scaffolds production-ready PyTorch training projects in seconds. Like create-next-app but for language models.

๐Ÿง  Natural Language Processing
TypeScriptMITupdated Sep 13, 2026
GitHub โ†—โ˜… 367โ‘‚ 48
Language Models

BlinkDL/RWKV-LM

RWKV (pronounced RwaKuv) is an RNN with great LLM performance, which can also be directly trained like a GPT transformer (parallelizable). We are at RWKV-7 "Goose". So it's combining the best of RNN and transformer - great performance, linear time, constant space (no kv-cache), fast training, infinite ctx_len, and free sentence embedding.

PythonApache-2.0updated Sep 28, 2026
GitHub โ†—โ˜… 14.8Kโ‘‚ 1K

Data from GitHub ยท snapshot Oct 15, 2026