Index Ai Academy
Glossary · Phase 5 · Transformers

Language-model head

Also written: LM head

The last layer of a language model. It turns the final vector at each position into one score per token in the vocabulary.

Learn it properly

The GPT architecture · A stack of decoder blocks that predicts the next token. About 35 minutes.

Open the lesson Create a free account

Other terms from the same lesson