indexLanguage & Foundation Models#llms#transformers

LLMs

A large language model is a transformer trained on one deceptively simple objective — predict the next token — at enormous scale. Everything people find magical or maddening about LLMs (in-context learning, hallucination, sensitivity to phrasing) falls out of that objective and the architecture around it. This branch builds the mental model from the inside out.

An LLM is a next-token predictor. It is astonishingly capable and it has no built-in notion of truth — both facts come from the same training objective.

Mental model

A language model factorizes sequence probability into repeated next-token predictions. A decoder transformer converts the current prefix into logits; decoding commits one token; the new prefix becomes the next input. Training, post-training, context construction, and serving each change a different part of that system.

Roadmap: architecture to behavior

Training & adaptation

Generation & context

Behavior & deployment

Connects to: Model Architectures · Training and Adaptation · Inference Systems

Core sources