Global

from-scratch
21 projects tagged “from-scratch” that gained the most stars yesterday
#102 · +420 · 1d ·GitHub

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

Creator
rohitg00
Size
130.6 MB
Stars
71.6K
Age
7mo
Commits · 90 Days
#422 · +95 · 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
16.7 MB
Stars
106.9K
Updated
CommitOct 02
Age
3y
Commits · 90 Days

Implementing LLM architectures from scratch in PyTorch

Size
3.2 MB
Stars
1.1K
Updated
CommitOct 17
Age
1mo
Commits · 90 Days
#1111 · +30 · 1d ·GitHub

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

Size
0.3 MB
Stars
4.1K
Updated
CommitAug 30
Age
5mo
Commits · 90 Days
#1153 · +29 · 1d ·GitHub

Most people learn ML frameworks by importing them. We built ours by hand, then made it hit harder.

Creator
TrenTorch
Size
58.9 MB
Stars
579
Age
1mo
Commits · 90 Days
#1795 · +16 · 1d ·GitHub

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

Size
31 MB
Stars
9.1K
Age
2mo
Commits · 90 Days
#2002 · +14 · 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
79.9 MB
Stars
1.5K
Updated
CommitOct 19
Age
1mo
Commits · 90 Days
#2409 · +10 · 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
33K
Updated
CommitOct 18
Age
9y
Commits · 90 Days
#4031 · +4 · 1d ·GitHub

until forever. Exceptional understanding of French with the flawless accent implies correct exposure to exceptional French and flawless accent. Similarly, great AI Researchers & engineers with excellent problem-skills imply quality knowledge consumed and exposure rich experience.

Size
7.9 MB
Stars
7.7K
Updated
CommitJul 18
Age
8mo
Commits · 90 Days
#4054 · +4 · 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
11mo
Commits · 90 Days
#4195 · +3 · 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.2 MB
Stars
33.9K
Updated
CommitOct 19
Age
7y
Commits · 90 Days
#5311 · +2 · 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
36.9 MB
Stars
1.3K
Updated
CommitOct 17
Age
1mo
Commits · 90 Days
#5673 · +1 · 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.2K
Updated
CommitMay 29
Age
3y
Commits · 90 Days
#5909 · +1 · 1d ·GitHub

This repository contains a step-by-step guide that teaches how to create a simple operating system (OS) kernel from scratch. I call this OS Raspberry Pi OS or just RPi OS.

Size
2 MB
Stars
14K
Updated
CommitApr 16
Age
9y
Commits · 90 Days
#6198 · +1 · 1d ·GitHub

:zap:机器学习实战(Python3):kNN、决策树、贝叶斯、逻辑回归、SVM、线性回归、树回归

Size
1.1 MB
Stars
10.4K
Updated
CommitJul 07
Age
9y
Commits · 90 Days
#7033 · +0 · 1d ·GitHub

Am I missing your favorite model? Is there something that could be cleaner / less confusing? Did I mess something up?

Creator
ddbourgin
Size
10.3 MB
Stars
16.3K
Updated
CommitJan 08
Age
7y
Commits · 90 Days
#7110 · +0 · 1d ·GitHub

also, im going to load tensors directly from the model file that meta provided for llama3, you need to download the weights before running this file. here is the offical link to download the weights:

Creator
naklecha
Size
16 MB
Stars
15.2K
Updated
CommitMay 21
Age
2y
Commits · 90 Days
#7697 · +0 · 1d ·GitHub

C in four functions

Creator
rswier
Size
<0.1 MB
Stars
10.8K
Updated
CommitMar 14
Age
11y
Commits · 90 Days
#7769 · +0 · 1d ·GitHub

View rendered tutorial (with more details on what this is.)

Creator
cstack
Size
1.1 MB
Stars
10.5K
Updated
CommitMar 04
Age
9y
Commits · 90 Days
#8133 · +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
426
Updated
CommitSep 26
Age
4mo
Commits · 90 Days
#8635 · +0 · 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
116
Updated
CommitOct 17
Age
2y
Commits · 90 Days