Language Model (LM)
A model that learns patterns in language and predicts likely token sequences.
Which word sounds likely after “Please return the”?
A fictional library language model might favor “book” over “telescope” after this prefix. A library that lends telescopes could still have a perfectly good reason to finish the sentence the other way.
Sequence likelihood
A model estimates how plausible tokens are in a context. In an autoregressive model the next token is conditioned on preceding tokens, and longer continuations are built from successive predictions.
A claim about the world
A likely continuation cannot tell you what this visitor actually borrowed. The loan record supplies that evidence. A language model can turn a verified record into a readable reminder.
What does training teach?
Predictive training rewards the model for capturing regularities in the training text. These include syntax, associations and some factual patterns. The learned distribution depends on the corpus and objective. A masked-language model, for example, learns to predict masked content using surrounding context.

How would you compare two models?
Evaluate them on the same task and data. Token-level likelihood measures need care when tokenizers differ. For a reminder service, also check whether the final message names the right item and preserves the due date from the record.
Follow the idea
Tokenization · See the units on which predictions operate.
Large Language Model (LLM) · Connect language modeling to systems trained at larger scale.
Source · Hugging Face guide to causal language modeling
Return to Language Model (LM) in the A–Z glossary