Explainer
What is an LLM?
What does “large language model” actually mean?
Each word in the name does work. “Language” means the model works with text: it reads text in and writes text out. “Model” means it is a mathematical system that has learned patterns from examples rather than following hand-written rules. “Large” refers to both the amount of training text (often trillions of words' worth) and the size of the model itself, measured in parameters.
At its core, an LLM does one thing: given some text, it estimates which small chunk of text, called a token, is most likely to come next. It picks one, adds it to the text, and repeats. A full answer is just that loop running hundreds or thousands of times.
That sounds too simple to produce useful answers, but predicting the next word well is hard. To guess the end of “The capital of Japan is…” or the next line of a Python function, a model has to absorb facts, grammar, and a lot of structure about how ideas connect.
How is an LLM trained?
Training usually happens in two broad stages. The first is pretraining. The model reads an enormous collection of text, such as web pages, books, articles, and code. For each passage, it guesses the next token, checks the real answer, and nudges its internal numbers slightly toward a better guess. Repeat that across trillions of tokens and the model becomes a very capable autocomplete engine.
A pretrained model knows a lot, but it is not yet a good assistant. Ask it a question and it may continue with three more questions, because that is what text on the internet often does. The second stage, post-training, fixes this. In instruction tuning, the model is trained on examples of requests paired with good responses written or checked by people.
Many labs then add reinforcement learning from human feedback (RLHF). People compare pairs of model answers and pick the better one. Those preferences train a scoring model, and the LLM is tuned to produce answers that score well. OpenAI's 2022 InstructGPT paper showed that a 1.3-billion-parameter model tuned this way was preferred by human raters over the far larger 175-billion-parameter GPT-3. Labs now use several variations of this idea, including AI-generated feedback and reinforcement learning on tasks with checkable answers, such as maths and code.
What is a transformer, in plain English?
Almost every modern LLM uses an architecture called the transformer, introduced by Google researchers in the 2017 paper “Attention Is All You Need.” Before transformers, language models mostly read text one word at a time, which made them slow to train and forgetful over long passages.
The key idea in a transformer is attention. For every token, the model looks at all the other tokens in the text and decides which ones matter most for understanding it. In “The trophy didn't fit in the suitcase because it was too big,” attention helps the model link “it” to “trophy” rather than “suitcase.”
A transformer stacks many layers of attention. Early layers tend to pick up simple patterns like word pairings; later layers capture more abstract relationships. Because attention can process all tokens in parallel, transformers train efficiently on modern chips, which is a big reason models could grow so large.
What are parameters in an LLM?
Parameters are the adjustable numbers inside the model, sometimes called weights. During training, each one is tweaked a tiny amount after every guess. Together they store everything the model has learned, but not as a readable database. No single parameter holds “Paris is the capital of France”; that knowledge is spread across many of them.
Parameter counts are a rough measure of capacity. GPT-3, released in 2020, had 175 billion parameters. Today's models range from around a billion parameters, small enough to run on a phone or laptop, to hundreds of billions or more. Many providers no longer publish exact counts for their largest models.
More parameters is not automatically better. Training data quality, the amount of training, and post-training all matter a great deal. A well-trained smaller model can beat a poorly trained larger one, and smaller models are cheaper and faster to run.
What are LLMs good at, and where do they fail?
LLMs are strongest at tasks where the answer is mostly in the language itself: drafting, rewriting, summarizing a document you provide, translating, explaining a concept, brainstorming, classifying text, and writing or explaining common code.
They are weakest where they must recall exact, obscure, or recent facts from memory. A model's knowledge stops at its training cutoff, and it does not know what it does not know. When it lacks information, it can produce a fluent, confident, wrong answer. This is called hallucination.
Other common weak spots include exact counting (letters in a word, words in a paragraph), long chains of arithmetic without a calculator, and citations, which may be invented. Tools help a lot here: connecting a model to web search, a code runner, or your own documents through retrieval-augmented generation (RAG) covers many of these gaps.
LLM vs chatbot vs AI: what is the difference?
AI (artificial intelligence) is the broad field of making computers do tasks that normally need human judgment. It includes image recognition, recommendation systems, robotics, and much more. LLMs are one family within AI, focused on language.
A chatbot is a product: the app or interface you type into. ChatGPT, Claude, and Gemini are chatbots built on top of LLMs. The product adds a conversation interface, a system prompt with instructions, safety filters, memory features, and often tools such as web search or file upload.
So when people say “ChatGPT,” they usually mean the chatbot, and the LLM is the engine underneath. An AI agent goes one step further: it uses an LLM to plan and take multi-step actions with tools, such as browsing, editing files, or calling APIs.
What are the best-known LLM families?
Model names and version numbers change every few months, so it is more useful to know the families. As of late 2026, the most widely used include OpenAI's GPT models (behind ChatGPT), Anthropic's Claude models, and Google's Gemini models. These are closed models: you use them through an app or an API, and the weights are not published.
There are also open-weight families, where the trained parameters are released for anyone to download and run. Well-known examples include Meta's Llama, Mistral's models, Alibaba's Qwen, and DeepSeek's models. Open-weight models are popular for running privately, on your own hardware, or for fine-tuning to a specific task.
LLM capabilities: reliable vs. needs checking
| Task | Typical reliability | Why |
|---|---|---|
| Rewriting or editing text you provide | Reliable | All the information is in front of the model |
| Summarizing a document you paste in | Mostly reliable | Can still omit or slightly distort details; spot-check key claims |
| Explaining well-known concepts | Mostly reliable | Widely covered in training data |
| Writing common code | Mostly reliable | Run and test it; subtle bugs are common |
| Recent news or events | Needs checking | Knowledge stops at the training cutoff unless search is connected |
| Exact quotes, statistics, citations | Needs checking | Can be invented with full confidence |
| Counting, long arithmetic | Needs checking | Models see tokens, not letters, and do not calculate like a calculator |
| Medical, legal, financial advice | Needs checking | Useful starting point; errors are costly, so verify with a professional or primary source |
Examples
- Pasting a 20-page report into Claude and asking for a one-paragraph summary with the three biggest risks.
- Asking ChatGPT to rewrite a blunt email so it sounds polite but still firm.
- A developer using an LLM-powered coding assistant to write unit tests for an existing function.
- A support team connecting an LLM to its help-centre articles with RAG so answers quote the official policy.
- Running an open-weight Llama or Qwen model on a laptop to classify thousands of customer reviews without sending data to a cloud provider.
Common questions
Is ChatGPT an LLM?
Strictly speaking, ChatGPT is a chatbot product, and the LLM is the GPT model that powers it. The product wraps the model with a chat interface, instructions, safety systems, and tools like web search. In everyday speech people use the two terms interchangeably, which is fine for most purposes.
Does an LLM understand what it is saying?
It depends on what you mean by understanding. LLMs build rich internal representations of how concepts relate, which lets them reason through many problems. But they have no direct experience of the world and can fail in ways no human would. A practical stance: treat them as very capable pattern engines whose output needs judgment.
Do LLMs learn from my conversations?
A model does not update its parameters while you chat with it. Within one conversation it can use what you said earlier, up to its context window. Separately, some providers may use conversations to train future models depending on your account settings and plan, so check the provider's data controls if this matters to you.
How much does it cost to train an LLM?
Frontier models cost tens to hundreds of millions of dollars to train once you include computing hardware, electricity, data, and staff, and costs have been rising with each generation. Small models can be trained or fine-tuned for far less, and fine-tuning an existing open-weight model can cost only a few dollars to a few thousand.
Can I run an LLM on my own computer?
Yes, if you use an open-weight model. Small models with a few billion parameters run on a modern laptop, especially with a recent GPU or Apple silicon. Free tools download and run them locally. They are less capable than the largest cloud models but keep your data on your own machine.
What is a training cutoff?
The training cutoff is the date after which a model has seen no training data. Anything that happened later is unknown to the model unless it is connected to search or you supply the information. Providers usually publish each model's cutoff in their documentation.
Sources and further reading
Glossary terms
- LLM
An LLM (large language model) is an AI model trained on huge amounts of text to predict the next piece of text in a sequence. That one skill lets it answer questions, write, summarise, translate and code. ChatGPT, Claude and Gemini are apps built on LLMs.
- Token
In AI, a token is the small unit of text a language model reads and writes. A token can be a whole word, part of a word, a punctuation mark or a space. In English, one token averages about four characters, or roughly three-quarters of a word.
- Hallucination
An AI hallucination is when a language model produces information that sounds confident and plausible but is false, invented or unsupported by its sources, such as a fake citation, a wrong date or a quote nobody said. The model is not lying; it is generating likely-sounding text.
- Context window
A context window is the maximum amount of text, measured in tokens, that an AI model can work with in a single request. It covers everything at once: instructions, conversation history, attached documents and the model’s own reply. Anything beyond the limit must be cut or summarised.
Keep reading
- AI model comparison (free tool)
Every major language model side by side: context window, price per million tokens, and whether you can download it.
- What are tokens in AI?
Tokens are the small chunks of text that AI language models read and write, usually a whole short word, part of a longer word, or a punctuation mark. In English, one token averages about four characters or three-quarters of a word. Tokens matter because AI pricing, speed, and context-window limits are all measured in them.
- What is an AI hallucination?
An AI hallucination is when a language model states something false or unsupported as if it were true, such as an invented fact, a fake citation or a quote nobody said. It happens because models generate plausible-sounding text rather than looking facts up. Grounding answers in real sources and verifying important claims are the main defenses.
- What is RAG?
RAG (retrieval-augmented generation) is a technique where an AI system first searches a set of documents for passages relevant to your question, then gives those passages to a language model to write the answer. It lets the model use current, private, or specialized information it was never trained on, and makes answers easier to check against sources.
- What is a context window in AI?
A context window is the maximum amount of text, measured in tokens, that a language model can consider at once. It covers everything in a single request: the system prompt, the conversation so far, any pasted documents or tool results, and the answer the model writes. Anything outside the window is invisible to the model.
- What is an AI agent?
An AI agent is software that uses an AI model to pursue a goal over several steps, deciding for itself which tools to use and what to do next. It runs a loop: plan, take an action such as a search or API call, check the result, and repeat until the task is done or it needs a human.
- LLM vs search engine
An LLM (large language model) writes a new answer word by word from patterns learned in training. A search engine finds existing web pages in its index and ranks them for your query. Use an LLM to explain, summarize, or draft; use search to find current information and primary sources you can check yourself.