Large language models
Overview
A large language model (LLM) is a neural network trained to predict the next token in a sequence of text. Trained on a huge corpus and then tuned to follow instructions, that one skill turns into general abilities: answering questions, writing and editing code, summarising, translating, planning, and using tools.
Modern LLMs are decoder-only transformers with billions to trillions of parameters. Frontier models also take images, audio, or video as input, and many can "think" before answering (see reasoning models).
Key concepts
- Token: the unit of text the model reads and writes; roughly 3–4 characters of English. See tokens and context.
- Context window: the maximum tokens (input plus output) the model can attend to at once.
- Parameters / weights: the learned numbers in the network. Open-weight models publish them; closed models are reachable only through an API.
- Pre-training: next-token prediction over a large text corpus; gives broad knowledge.
- Post-training: instruction tuning and reinforcement learning that make the model helpful, safe, and good at tasks. See training and fine-tuning.
- Inference: running the model to generate output, one token at a time.
- Sampling: choosing each next token from the predicted distribution (temperature,
top-p). Providers are removing these controls: Claude API version
2026-10-21rejectstemperature,top_p, andtop_kon every model, and Gemini's newer models drop sampling parameters too (as of 2026-11-03; see Claude and Gemini). Steer output with instructions and schemas instead. - Hallucination: fluent but false output; reduced by grounding (see RAG), tools, and better training, but never fully eliminated.
- Knowledge cutoff: the date after which the model has no training data.
How to use it
- Use an API or chat app for closed models; run open-weight models locally or on a host.
- Give clear instructions and enough context; see prompting.
- Ground answers in documents or tool results when facts matter.
- Measure quality on your own tasks; see evals.
Current state
- 2026-11-15: Frontier families are Claude (Anthropic; Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5), GPT-6 (OpenAI; Astra, 6.1 Sol, 6.1 Terra, Luna), and Gemini (Google; Gemini 4 Carbon, Argon, and Hydrogen). About 1M-token context windows are standard at the top: 1M on all current Claude models, 1.05M on GPT-6, and 1M shared input and output on Gemini 4. Leading open-weight families include Qwen, DeepSeek, Llama, Mistral, Gemma, Kimi, and GLM. See Claude, GPT, Gemini, and open-weight models.
- 2026-11-15: Knowledge cutoffs of current frontier models fall in April to June 2026 (Claude 5.5-generation and Fable 5.2: June 2026; GPT-6 Astra and 6.1 Sol: 2026-04-30; GPT-6.1 Terra: 2026-06-01), so tools such as web search matter for anything newer.
Open questions
- How far will scaling post-training and test-time compute keep improving results?
- How to make models reliably say "I don't know" instead of guessing.
Sources
- Attention Is All You Need
- InstructGPT: training with human feedback
- Claude models overview
- OpenAI API models and pricing: GPT-6 family
- GPT-6.1 Terra (OpenAI API model page)
- Gemini 4 Argon model page
- Migrating to API version 2026-10-21
- Gemini API changelog: Gemini 2.5 Pro and 2.5 Flash deprecated
- Introducing Claude Fable 5.2 and Claude Mythos 5.2
- Gemini 4 Carbon is now available
- Introducing Gemini 4 Hydrogen