LLM Basics

Course

Neural Networks from Scratch

Take the tiny autograd engine from Zero to GPT and build a real, trainable multi-layer perceptron with it — initialization, activations, backprop, gradient checking, every major loss function, batching, and generalization, ending with a 3-class spiral capstone that puts every idea to work at once.

Lesson 1

A Single Neuron

The atomic unit of every neural network: a weighted sum and a squashing function.

Start

Lesson 2

A Layer of Neurons

Several neurons, same inputs, different weights — a vector out instead of a number.

Start

Lesson 3

Stacking into an MLP

Chain layers together and depth starts doing real work.

Start

Lesson 12

Training on a 2D Toy Dataset

Forward pass, loss, backward pass, update — watch a real decision boundary form.

Start

Lesson 13

Mini-Batches: Trading Off Noise and Speed

Every training loop so far looked at the whole dataset before updating. Real ones rarely can.

Start

Lesson 16

Capstone: A Multi-Class Spiral

Softmax, batching, L2, and dropout, all at once, on a problem a straight line can't touch.

Start