One input at a time
A loss depends on millions of parameters at once, but the derivative machinery only knows how to handle one. So freeze all but one and differentiate normally. That is a partial derivative, written , and it answers a deliberately narrow question: how does respond to this coordinate alone, with everything else held still?
Collect all of them into a vector and you have the gradient:
Definition: The gradient of a scalar function is the vector of its partial derivatives. It has exactly as many entries as the function has inputs, which is why a gradient in a language model is the same size as the model.

