Global

from-scratch
16 projects tagged “from-scratch” that gained the most stars yesterday

Learn AI Engineering! Learn it. Build it. Ship it for others.

Creator
rohitg00
Size
200 MB
Stars
81.7K
Age
8mo
Commits · 90 Days
#464 · +51 · 1d ·GitHub

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).

Creator
rasbt
Size
17.1 MB
Stars
109.2K
Updated
CommitNov 09
Age
3y
Commits · 90 Days
#1485 · +16 · 1d ·GitHub

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

Size
0.3 MB
Stars
4.2K
Updated
CommitOct 26
Age
7mo
Commits · 90 Days
#1656 · +14 · 1d ·GitHub

24 GB of RAM. Portable C99: no BLAS, no framework, no GPU.

Size
31.4 MB
Stars
12.7K
Age
4mo
Commits · 90 Days
#1814 · +12 · 1d ·GitHub

SerenityOS is a love letter to '90s user interfaces with a custom Unix-like core. It flatters with sincerity by stealing beautiful ideas from various other systems.

Creator
SerenityOS
Size
238.7 MB
Stars
34K
Updated
CommitNov 18
Age
8y
Commits · 90 Days
#2807 · +6 · 1d ·GitHub

c). You might think that you need many billion parameter LLMs to do anything useful, but in fact very small LLMs can have surprisingly strong performance if you make the domain narrow enough (ref: TinyStories paper).

Creator
karpathy
Size
1.2 MB
Stars
20.3K
Updated
CommitMay 29
Age
3y
Commits · 90 Days
#3261 · +5 · 1d ·GitHub

Official SGLang x Datawhale course on LLM inference: understand inference, build a mini-sglang from scratch, then read the real SGLang source and land your first PR. Available in English and Chinese.

Size
132.6 MB
Stars
2.3K
Age
3mo
Commits · 90 Days
#3753 · +3 · 1d ·GitHub

The purpose of this project is not to produce as optimized and computationally efficient algorithms as possible but rather to present the inner workings of them in a transparent and accessible way.

Size
0.5 MB
Stars
33.4K
Updated
CommitOct 18
Age
9y
Commits · 90 Days
#4870 · +2 · 1d ·GitHub

Learn ML by building it: a from-scratch machine learning framework in NumPy, and hundreds of coding questions that run in your browser.

Creator
TrenTorch
Size
220.4 MB
Stars
859
Age
3mo
Commits · 90 Days
#5632 · +1 · 1d ·GitHub

Learn to build AI agents locally without frameworks. Understand what happens under the hood before using production frameworks.

Creator
pguso
Size
1.8 MB
Stars
4.9K
Updated
CommitJul 24
Age
1y
Commits · 90 Days
#6113 · +1 · 1d ·GitHub

lytlnyblOS (little nibble OS) is a small, from scratch 32-bit operating system that comes with a complete guide book to teach beginners practically about OS development.

Creator
red-mutt
Size
8.5 MB
Stars
122
Updated
CommitNov 06
Age
2y
Commits · 90 Days
#6861 · +0 · 1d ·GitHub

Become a cracked AI/ML researcher/engineer with this unconventional textbook covering maths, computing, and ML with intuition.

Size
7.9 MB
Stars
7.7K
Updated
CommitJul 18
Age
10mo
Commits · 90 Days
#7085 · +0 · 1d ·GitHub

mini-AGI - is a continual learning byte-level language model that assembles its own architecture, trains from scratch on a single 8 GB VRAM GPU, and keeps learning from everything it reads.

Creator
volotat
Size
51.5 MB
Stars
1.3K
Updated
CommitNov 18
Age
2mo
Commits · 90 Days

Implementing LLM architectures from scratch in PyTorch

Size
4.9 MB
Stars
856
Updated
CommitNov 18
Age
2mo
Commits · 90 Days
#7481 · +0 · 1d ·GitHub

PyTorch implementations of modern open-source LLM architectures (Llama, Qwen, DeepSeek, Gemma, GPT-OSS, Kimi, and more) — written from scratch for readability and learning, based on Sebastian Raschka's LLM Architecture Gallery.

Creator
anuj0456
Size
0.1 MB
Stars
428
Updated
CommitSep 26
Age
6mo
Commits · 90 Days
#7812 · +0 · 1d ·GitHub

Actual gameplay recording · Built-in automated player completes the level · Preview at 2× speed

Creator
tombkeeper
Size
5.1 MB
Stars
218
Updated
CommitOct 20
Age
1mo
Commits · 90 Days