Skip to content

EasyConceptML basics refresher

What is a loss function and what loss do language models use?

What a good answer covers

A loss measures how wrong predictions are so gradients can update weights. Language models are trained with cross-entropy on next-token prediction: the negative log-probability assigned to the true next token.

More on ML basics refresher

Flashcards for this topic