LVL 01SK
PROJECT LIBRARY

Explore the journey

Every project is open. Start anywhere, follow your curiosity, and learn at your own pace.

26 projects · all openProgress and bookmarks are stored locally
Random Forest from Scratch project artwork01
MediumMachine Learning

Random Forest from Scratch

Build a complete Random Forest classifier from impurity math to a bagged ensemble with bootstrapping and feature subsampling.

1.3h15 stepsNumPy
Start project →
Support Vector Machine from Scratch project artwork02
MediumMachine Learning

Support Vector Machine from Scratch

Build a linear SVM using hinge loss, a regularized objective, and gradient-based optimization.

0.9h11 stepsNumPy
Start project →
Build a Trainable CNN from Scratch project artwork03
HardDeep Learning

Build a Trainable CNN from Scratch

Assemble a LeNet-style convolutional network with im2col convolutions, gradients, Adam, and a complete training loop.

4.9h59 stepsNumPy
Start project →
Transformer from Scratch project artwork04
HardDeep Learning

Transformer from Scratch

Reimplement the original encoder-decoder Transformer with multi-head attention, scheduling, and beam search.

6.6h79 stepsPyTorch
Start project →
Tiny GPT From Scratch project artwork05
HardDeep Learning

Tiny GPT From Scratch

Grow a character-level language model from a bigram baseline into a working GPT with multi-head attention and sampling.

13.8h166 stepsNumPy · PyTorch
Start project →
Q-Learning on FrozenLake project artwork06
EasyReinforcement Learning

Q-Learning on FrozenLake

Train a tabular Q-learning agent with epsilon-greedy exploration and greedy evaluation.

1.3h16 stepsNumPy
Start project →
AlphaZero on Connect-4 project artwork07
HardReinforcement Learning

AlphaZero on Connect-4

Build the game engine, policy-value network, PUCT MCTS, self-play generation, training, and baseline evaluation.

4.8h57 stepsPyTorch
Start project →
RAG Pipeline project artwork08
HardLLMs

RAG Pipeline

Construct ingestion, chunking, embeddings, hybrid retrieval, grounded generation, evaluation, and conversational memory.

4.3h51 stepsPyTorch
Start project →
DPO from Scratch project artwork09
HardAlignment

DPO from Scratch

Implement log-prob utilities, Bradley–Terry preferences, DPO gradients, IPO variants, and a full evaluation pipeline.

2.3h27 stepsNumPy
Start project →
RLHF from Scratch project artwork10
HardLLMs

RLHF from Scratch

Build decoding, SFT, LoRA, reward modeling, PPO, preference optimization, evaluation, and a model comparison interface.

5.4h65 stepsPyTorch
Start project →
Vision-Language Model project artwork11
HardGenerative AI

Vision-Language Model

Build a ViT encoder, multimodal projector, causal decoder, training loop, and caption generation from raw tensor operations.

5.2h62 stepsPyTorch
Start project →
Flash Attention in CUDA project artwork12
HardCUDA

Flash Attention in CUDA

Build a tiled, IO-aware Flash Attention kernel with online softmax and causal masking.

2.2h26 stepsCUDA
Start project →
Fused LLM Inference Kernels project artwork13
HardGPU / CUDA

Fused LLM Inference Kernels

Implement reductions, activations, fused RMSNorm, Softmax, RoPE, and SwiGLU kernels for efficient inference.

1.7h20 stepsCUDA
Start project →
Mini LLM Inference Server project artwork14
HardML Systems

Mini LLM Inference Server

Construct sampling, tokenization, KV caching, paged allocation, continuous batching, streaming, and benchmarking.

4.3h51 stepsPython
Start project →
VeriLLM project artwork15
HardDeep Learning

VeriLLM

Wrap cached GPT inference in Merkle commitments and spot checks, then simulate a decentralized committee with rewards and slashing.

4.8h57 stepsPyTorch
Start project →
MLP in JAX from Scratch project artwork16
EasyDeep Learning

MLP in JAX from Scratch

Implement initialization, forward passes, loss, autodiff, and pure functional SGD updates in JAX.

1.8h21 stepsJAX
Start project →
Build Your Own teenygrad project artwork17
HardDeep Learning

Build Your Own teenygrad

Construct a lazy buffer, reverse-mode autodiff engine, tensor API, neural primitives, and train a small MLP.

4.8h58 stepsNumPy
Start project →
Federated Averaging project artwork18
MediumFederated Learning

Federated Averaging

Implement client partitioning, local SGD, weighted aggregation, partial participation, and non-IID experiments.

2.2h26 stepsPyTorch
Start project →
DiLoCo Distributed Training project artwork19
HardDistributed Training

DiLoCo Distributed Training

Train workers locally, aggregate pseudo-gradients with an outer optimizer, and quantify communication savings.

2.5h30 stepsPyTorch
Start project →
Memory-Constrained Trainer project artwork20
HardDistributed Training

Memory-Constrained Trainer

Implement accumulation, checkpointing, mixed precision, all-reduce, and ZeRO-style optimizer sharding.

3.3h40 stepsNumPy
Start project →
Trainable MoE in CUDA project artwork21
HardGPU Programming

Trainable MoE in CUDA

Build CUDA kernels for a complete sparse mixture-of-experts forward, backward, and training loop.

4.3h52 stepsCUDA
Start project →
Multimodal Image Generator project artwork22
HardGenerative AI

Multimodal Image Generator

Train a VQ-VAE image tokenizer and an autoregressive text-conditioned transformer with guided sampling.

5.3h64 stepsJAX
Start project →
LoRA Fine-Tune a Chat Model project artwork23
EasyFine-tuning

LoRA Fine-Tune a Chat Model

Load a 4-bit Qwen model, attach LoRA adapters, format instructions, run SFT, and generate with the tuned model.

1.7h20 stepsUnsloth
Start project →
A/B Testing & Causal Inference project artwork24
MediumMachine Learning

A/B Testing & Causal Inference

Build proportion tests, sample sizing, multiple-testing corrections, difference-in-differences, and synthetic control.

1.8h22 stepsPython
Start project →
Market-Making Simulator project artwork25
MediumOptimization

Market-Making Simulator

Build expected-value games and a quoting engine that manages inventory, adverse selection, and P&L.

1.2h14 stepsPython
Start project →
Tic-Tac-Toe: Minimax to DQN project artwork26
HardReinforcement Learning

Tic-Tac-Toe: Minimax to DQN

Build the game engine, minimax, tabular self-play, and a DQN agent, then compare value and policy learners.

7.7h92 stepsPyTorch
Start project →