← All lab updates

How a transformer is trained: from guessing the next word to an assistant

A model is not programmed, it is trained: billions of tiny corrections to its weights, one guessed word at a time. Then two more rounds turn a text predictor into an assistant. Here is the whole path in plain words, with the few lines of code at its heart, and the point where habits like flattery creep in. Part 3 of our series on how transformers work.