Fundamentals · Part 3How LLMs Work
Neural Networks: Weights, Gradient Descent and Backpropagation
How a neural network learns: neurons as weighted sums, loss, gradient descent worked by hand, and backpropagation explained without calculus.
3 articles.
Fundamentals · Part 3How LLMs Work
How a neural network learns: neurons as weighted sums, loss, gradient descent worked by hand, and backpropagation explained without calculus.
Math · Part 7Math for LLMs
The derivative built from the slope of a tiny secant, gradients as the uphill direction, the chain rule and Jacobians, checked with NumPy and PyTorch.
Math · Part 8Math for LLMs
The chain rule as an algorithm: computational graphs, backward passes for matmul, ReLU, GELU and softmax, activation memory, and a 40-line autograd.