
Gradient Descent: The One Loop Behind Every AI, From a Tiny Model to an LLM
Gradient descent is the loop that trains almost every AI model, including large language models. We run it on two tiny examples with real numbers: finding one best number, and teaching a model to pick the right next word. Then we see what changes when the same loop is scaled up to an LLM.

