An LLM, or large language model, is an AI model trained on a very large body of text to predict what comes next in a sequence of words. Run in a loop, that one skill produces whole answers and drafts. “Large” refers to the number of parameters, the learned values inside the model, which runs to billions. ChatGPT, Claude and Gemini are apps built on LLMs.
This page walks through the mechanism in five steps, then covers how an LLM is trained, how large “large” is, which models are current, and what the mechanism tells you about the text an LLM writes. The explanations draw on documentation from Anthropic, OpenAI, Google and IBM; model names are as of November 18, 2026. LLMs are the text branch of generative AI.
How an LLM works
- Your text is cut into tokens
A token is a piece of a word. OpenAI's rule of thumb for English is about four characters, or three quarters of a word, per token. See AI tokens explained.
- Each token becomes a list of numbers
The list, called an embedding, places the token in a space where related words sit close together. IBM's explainer gives “bark” and “dog” as a pair that training pulls together.
- Attention relates every token to the others
This is the transformer's contribution. In the words of Google's Machine Learning Crash Course, the model asks of each token how much every other token affects its interpretation: which noun “it” points to, for instance.
- The model scores every possible next token
The output is a probability for each candidate. As IBM puts it, the model does not know the final answer in advance.
- One token is chosen, and the loop repeats
The choice has some randomness in it, set by a control called temperature. The chosen token joins the text, and the model predicts again until the reply is complete.
Google's course calls LLMs “essentially autocomplete mechanisms”. That is accurate about the output and may undersell what happens inside. In a 2025 study, Anthropic researchers examining one of their Claude models found that, when writing rhyming verse, it settled on the rhyme word before composing the line that leads to it.
How an LLM is trained
Training comes in two stages. In pretraining, the model reads a very large collection of text and is scored on one task: predict the next word from the words before it. OpenAI's help center gives the example “instead of turning left, she turned ___”. An untrained model fills the blank at random; each error nudges the parameters, and the guesses improve. OpenAI says the finished model holds those adjusted numbers and keeps no copy of the text.
A model that has only been pretrained continues documents. It is, in the words of Anthropic's glossary, not inherently good at answering questions or following instructions. The second stage fixes that. Fine-tuning trains the model further on chosen examples, and reinforcement learning from human feedback has people rank alternative answers so that the model learns to prefer the kind ranked higher. Some current models add a reasoning phase: OpenAI's documentation describes internal reasoning that happens before the model produces its response.
How large is large
No threshold is agreed. Google's glossary says only that an LLM has “a very high number of parameters”. OpenAI's GPT-2 had 1.5 billion in 2019 and GPT-3 had 175 billion in 2020; Google's course now speaks of hundreds of billions or even trillions. OpenAI, Anthropic and Google give no counts on their current model pages. Models at the other end of the scale, compact enough for a laptop, are covered in small language models.
LLM models in 2026
As of November 2026, OpenAI's current text models are GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna. Anthropic's are Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5. Google's include Gemini 4 Argon and Gemini 3.8 Flash. All of these are hosted models, reached through an app or an API. Other LLMs can be downloaded and run on your own hardware, among them Google's Gemma, Meta's Llama and Microsoft's Phi families. AI models compared sets them side by side.
What this explains about the text
- It can be fluent and wrong. The model is trained to produce likely text. OpenAI wrote in 2025 that spelling follows consistent patterns and is learned reliably, while an arbitrary fact such as a birthday cannot be predicted from patterns. Names, dates and quotations are where to check first. See AI hallucinations.
- It favors the expected phrase. Anthropic's glossary says low temperature settings keep a model to “the most probable phrasing”. Stephen Wolfram's 2023 essay describes text made by always taking the top-ranked word as flat and repetitive. A plain request therefore tends to get the common wording, and a distinctive voice has to be supplied or asked for.
- The same prompt gives different drafts. Because a token is sampled at each step, two runs diverge. Anthropic notes that results are not fully repeatable even with temperature at zero. Save a version you like, since asking again will not return it.
- It works from the page in front of it. An LLM knows what was in its training text, up to a cutoff (June 2026 for the current Claude models, May 18, 2026 for GPT-6.2 Astra), and what is in its context window. Your notes, your style sheet and your earlier chapters count only if they are in that window.
Checking a model's work in Strokes
We make Strokes, a desktop writing app for macOS and Windows. Its built-in AI readers, such as an editor, a skeptic or a fact-checker, read the whole document and comment on it; they never change the text. When the Strokes Assistant proposes an edit, it arrives in the text as a suggestion you accept or reject. On the Plus and Pro plans, Local AI runs on your computer, so improving, summarizing and reader reviews work offline.
Frequently asked questions
What does LLM stand for in AI?
Large language model. A language model predicts text: given some words, it estimates which words are likely to come next. Large refers to the number of parameters. Outside AI the same letters are a law degree: Merriam-Webster lists both “large language model” and “master of laws”, from the Latin legum magister. A search for LLM programs will therefore return law schools as well as software.
Does an LLM learn from my conversations?
Not while you are talking to it. The parameters are fixed when training ends, and a chat only fills the context window. What can happen is later use: as of November 2026, the ChatGPT and Claude pricing pages both list training on your content as something individual users can opt out of. Memory features are separate again. They store notes about you and place them in the context of new chats.
Can I run an LLM on my own computer?
Yes, if the maker publishes the model's weights. Google's page for Gemma 4 lists about 4.5 GB of memory to load its E4B version at 4-bit precision, a compressed form made for consumer hardware. GPT, Claude and Gemini models are not distributed this way; they are offered as hosted services. A model on your own machine works without a connection, and your text stays on the machine.
Are all LLMs transformers?
The ones in wide use are. IBM's explainer defines LLMs as built on the transformer architecture, which dates from a 2017 Google paper, and the GPT name itself ends in the word. IBM also notes alternatives under study, including state-space models such as Mamba and language models based on diffusion, the method better known from image generators.





