PromptForge
AI Glossary

Models & architecture

Large language model (LLM)

Also known as: large language model, language model, llms

Definition

A large language model is a neural network trained on vast amounts of text to predict the next token in a sequence. That single objective, at sufficient scale, produces the ability to write, summarise, translate, reason and code.

Modern LLMs are transformer networks with billions to trillions of parameters. Training has two broad phases: pre-training on a very large text corpus to learn language and world knowledge, then post-training (instruction tuning and preference optimisation) to make the model follow instructions and behave helpfully.

The surprising result of the last several years is how much capability emerges from next-token prediction alone. Nothing in the objective mentions reasoning or translation; those abilities appear as consequences of predicting text well at scale.

The framing also explains the failure modes. A model optimised to produce plausible continuations will produce plausible-sounding falsehoods when it lacks knowledge — which is exactly what hallucination is.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.