Skip to content
MintFlow Articles

What is a large language model (LLM)? How LLMs work, in plain English

How LLMs turn next-word prediction into answers, how they're trained, what tokens and parameters mean, the models you can use in late 2026 and where they still go wrong

On this page
  1. What is a large language model?
  2. Is ChatGPT an LLM?
  3. How does a large language model work?
  4. 1. Your text is split into tokens
  5. 2. Tokens become numbers
  6. 3. Attention works out how the words relate
  7. 4. It predicts the next token, then repeats
  8. Mixture of experts: giant models that use a fraction of themselves
  9. How are large language models trained?
  10. Pretraining: guessing the next word, trillions of times
  11. Post-training: from autocomplete to assistant
  12. Reasoning training: thinking before answering
  13. Key LLM terms, explained
  14. A short history of large language models
  15. Which large language models can you use today?
  16. Closed models from the big labs
  17. Open-weight models you can download
  18. What are LLMs good at?
  19. Where do large language models go wrong?
  20. Do LLMs actually understand what they say?
  21. LLM vs generative AI vs AI agent
  22. How can you try a large language model?
  23. Frequently asked questions

A large language model (LLM) is an AI system trained on huge amounts of text to do one thing very well: predict the next token, meaning a word or piece of a word, given everything that came before it. Repeat that prediction across trillions of words during training and the model picks up grammar, facts, writing styles and a working ability to reason, which is why one model can answer questions, write, summarize, translate and code.

ChatGPT, Claude and Gemini are apps built on LLMs. As of 29 November 2026, the newest are OpenAI's GPT-6.2 Astra and Sol, Anthropic's Claude Fable 5.2 and Opus 5.5, and Google's Gemini 4 family. Below: how LLMs work and are trained, the key terms, the models you can use now and where they still go wrong.

What is a large language model?

A language model is a program that estimates which word is likely to come next. The suggestions above your phone's keyboard are a tiny version of the idea. An LLM does the same thing at enormous scale; IBM calls them "giant statistical prediction machines".

Two things make a model "large":

  • Parameters. These are the numbers inside the model that get adjusted during training, like billions of tiny dials. OpenAI's GPT-2 had 1.5 billion in 2019 and GPT-3 had 175 billion in 2020. The biggest open models now have trillions: 2.8 trillion for Moonshot AI's Kimi K3, 2.4 trillion for Alibaba's Qwen3.8-Max and 1.6 trillion for DeepSeek V4-Pro.
  • Training data. GPT-2 learned from about 40 GB of text from roughly 8 million web pages. DeepSeek's model card says V4 was pretrained on more than 32 trillion tokens, which The Register rounds to 33 trillion.

You won't find those numbers for the most famous models. Stanford's 2026 AI Index found that the most capable models tend to disclose the least, and MIT Technology Review's summary of the report notes that OpenAI, Anthropic and Google no longer publish parameter counts, dataset sizes or training code.

The "language" part is also a little out of date: Gemini 4 models accept text, images, audio, video and PDFs, and current Claude models read images as well as text.

Is ChatGPT an LLM?

Not quite. ChatGPT is the app, and the LLM is the engine inside it. Since early October 2026, GPT-6 Luna has run ChatGPT's chat on the Free and Go plans, and GPT-6 Sol on paid plans, where OpenAI's release notes say a version of GPT-6.2 Sol began taking over on 23 November. The app wraps the model in the chat window, web search, file uploads, memory and safety filters. Claude and the Gemini app work the same way.

How does a large language model work?

Every reply an LLM writes comes out of the same four steps.

1. Your text is split into tokens

The model doesn't read letters or whole words. It reads tokens: common words, chunks of longer words, punctuation and spaces. OpenAI's rule of thumb for English is that a token is about four characters, so 100 tokens is roughly 75 words. Other languages and other companies' tokenizers split text differently; Anthropic says the tokenizer it introduced with Claude Opus 4.7 produces about 30% more tokens for the same text than the one before.

Tokens are the unit for almost everything: how much a model can read at once, how long it takes to reply and what developers pay. Claude Opus 5.5, for example, costs $4 per million input tokens and $20 per million output tokens on Anthropic's API.

2. Tokens become numbers

Each token is converted into a long list of numbers called an embedding. You can picture it as a position on a huge map of meaning, where related words sit near each other. Everything after this point is math on those numbers.

3. Attention works out how the words relate

This is the idea that made modern LLMs possible. In June 2017, eight researchers working at Google published "Attention Is All You Need", which described the transformer. Older models read text one word at a time; the transformer relies entirely on a mechanism called self-attention.

Self-attention lets every token look at every other token and weigh how much each one matters to its meaning. Google's explainer uses a sentence about an animal that didn't cross a street because "it" was too tired: attention ties "it" to the animal. Change "tired" to "wide" and "it" points to the street. Models stack many layers of this, and deeper layers capture more abstract patterns.

4. It predicts the next token, then repeats

At the end of all those layers, the model gives a probability to every token it knows. One token gets picked and added to the text, then the whole process runs again for the next one, and the next, until the answer is finished. That's why chatbots appear to type: they really are producing one token at a time.

The model doesn't always pick the single most likely token. A setting called temperature controls how adventurous the choice is: higher values give more varied wording, lower values stick to the safest phrasing. That built-in randomness is why the same question can get two different answers, and Anthropic notes that even at a temperature of 0, identical prompts can still produce different outputs.

Mixture of experts: giant models that use a fraction of themselves

Many of the largest models split their parameters into specialist sub-networks, called experts, and run only a few for each token. DeepSeek V4-Pro has 1.6 trillion parameters but uses 49 billion per token, and Qwen3.8-Max uses about 95 billion of its 2.4 trillion. That keeps the cost of each token closer to that of a much smaller model.

How are large language models trained?

Pretraining: guessing the next word, trillions of times

First, the model reads enormous amounts of text, such as web pages, books and code, and tries to predict each next token. Every wrong guess nudges its parameters slightly. Nobody labels the data by hand, because the text itself is the answer key, which is why this is called self-supervised learning.

Pretraining takes most of the computing power: Google's course describes months of compute and electricity. The result is a base model that knows a lot but behaves like a well-read autocomplete. Anthropic's glossary is plain about the gap: a freshly pretrained model isn't naturally good at answering questions or following instructions.

Post-training: from autocomplete to assistant

  • Supervised fine-tuning. People write example conversations that show good answers, and the model is trained on them.
  • Reinforcement learning from human feedback (RLHF). People rank several answers to the same prompt, a reward model learns what they prefer, and the LLM is tuned to score well on it. OpenAI's InstructGPT work in January 2022 showed how much this matters: labelers preferred a 1.3 billion parameter InstructGPT model over the 175 billion parameter GPT-3. ChatGPT, launched on 30 November 2022, was trained in a similar way from a GPT-3.5 series model.
  • AI feedback. Anthropic's Constitutional AI method, published in December 2022, replaces much of the human ranking with a model that judges answers against a written set of principles.

Reasoning training: thinking before answering

The newest step teaches models to work through a problem before they reply. OpenAI's o1, announced on 12 September 2024, was trained with reinforcement learning to produce a chain of thought first, and OpenAI reported that it improved with more time spent thinking. In January 2025, DeepSeek's R1 paper showed reasoning could be encouraged through reinforcement learning alone.

Thinking is now standard: Anthropic says all its current Claude models decide for themselves how much to think. The trade-off is time and tokens. A model that thinks longer tends to answer hard questions better, but it's slower and costs more.

Key LLM terms, explained

Term What it means
Token The unit of text a model reads and writes, about three quarters of an English word on average
Parameters The learned numbers inside a model; more of them usually means more capable but costlier to run
Context window How much text the model can consider at once, including your conversation and files. Current Claude models take 1 million tokens, which Anthropic puts at roughly 555,000 words
Knowledge cutoff The point where its training data ends. Anthropic lists June 2026 for its current models; OpenAI lists 18 May 2026 for GPT-6.2 Astra
Fine-tuning Extra training on a smaller, focused dataset to specialize a model or change how it behaves
Reasoning model A model trained to think through a problem before it answers
Multimodal Able to take in images, audio or video as well as text
Open-weight The trained parameters are published, so anyone can download and run the model
Hallucination A fluent, confident answer that's false

A short history of large language models

Date Milestone
June 2017 "Attention Is All You Need" introduces the transformer
February 2019 OpenAI announces GPT-2 (1.5 billion parameters) and releases it in stages
May 2020 GPT-3 (175 billion parameters) picks up new tasks from a few examples in the prompt
January 2022 OpenAI's InstructGPT shows RLHF makes models far better at following instructions
30 November 2022 ChatGPT launches
March 2023 GPT-4 arrives, described by OpenAI as a transformer pre-trained to predict the next token
12 September 2024 OpenAI's o1 is trained to reason before it answers
January 2025 DeepSeek-R1 shows reasoning can be trained with reinforcement learning alone
5 August 2025 OpenAI releases gpt-oss, its first open-weight language models since GPT-2
April 2026 DeepSeek previews V4, a 1.6 trillion parameter open-weight model (24 April)
September 2026 OpenAI launches GPT-6 Astra (3 September); Anthropic releases Claude Opus 5.5 (22 September)
November 2026 Claude Fable 5.2 (9 November), GPT-6.2 Astra and Sol (17 November) and Gemini 4 Neon (18 November)

Which large language models can you use today?

Closed models from the big labs

These power the big chat apps. You can use them in those apps or pay per token through each company's API, but you can't download them.

Maker Current models Where you use them
OpenAI GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna ChatGPT, Codex, OpenAI API
Anthropic Claude Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 Claude apps, Claude Code, Claude API, AWS, Google Cloud, Microsoft Foundry
Google Gemini 4 Carbon, Neon, Hydrogen and Argon Gemini app, Google AI Studio, Gemini API
SpaceXAI (formerly xAI) Grok 4.7 xAI API, Cursor, Grok Build
  • OpenAI calls GPT-6.2 Astra its most capable model for the hardest projects and GPT-6.2 Sol its go-to model for everyday work, the pick when you want to balance intelligence and cost. Both launched on 17 November, and OpenAI lists 1.05 million token context windows for its four flagship models.
  • Anthropic suggests Opus 5.5 for most work and Fable 5.2 for the hardest reasoning and long agent tasks, all with 1 million token context windows. A sibling, Claude Mythos 5.2, is limited to verified organizations.
  • Google positions Carbon for the heaviest projects and Hydrogen for fast everyday work, with Neon, released on 18 November, in between. All take 1 million tokens.
  • SpaceXAI, formerly xAI, released Grok 4.7 on 21 September 2026 for coding and knowledge work, a month after Grok 4.6. Its API docs call 4.7 the most capable model it has built.

The leaders are closer together than the marketing suggests. MIT Technology Review's summary of Stanford's 2026 AI Index says Anthropic led the Arena ranking in March 2026, with xAI, Google and OpenAI close behind. Rankings flip with almost every release, so choose on price, limits and features. Our comparison of ChatGPT vs Claude vs Gemini goes through every plan.

Open-weight models you can download

Model Maker Size License
Kimi K3 Moonshot AI 2.8T total, 104B active Moonshot's own Kimi K3 License
Qwen3.8-2.4T-A95B (the open release of Qwen3.8-Max) Alibaba 2.4T total, about 95B active Alibaba's own Qwen3.8-Max license
DeepSeek V4-Pro and V4-Flash DeepSeek 1.6T total and 49B active; 284B total and 13B active MIT (preview)
Mistral Large 4 Mistral AI About 1.05T total, 49B to 52B active Mistral Ecosystem Open Weight License
Gemma 4 Google E2B, E4B, 12B, 26B mixture of experts, 31B Apache 2.0
Muse Glimmer Meta 30B Apache 2.0
gpt-oss-120b and gpt-oss-20b OpenAI 117B and 21B total Apache 2.0

Mistral published the Large 4 weights on 29 October 2026. Its documentation lists 52 billion active parameters, while launch coverage gave 49 billion, so the table shows both. Alibaba's smaller Qwen3.8-27B uses the more permissive Apache 2.0 license, but its newest flagship, Qwen4-Max (16 November), keeps its weights closed.

DeepSeek followed V4 with V4.1-Flash on 10 September, a 552 billion parameter model under the MIT license. Some coverage reported that V4-Pro would be retired, but DeepSeek's API change log says it kept serving V4-Pro after 14 September, and the model is still on its pricing page. The V4-Pro weights are still on Hugging Face too.

Open-weight isn't quite open source. You get the trained parameters, but usually not the training data or full recipe, and the license decides what you can do commercially. The trillion-parameter models need data-center hardware; the small ones are the practical choice at home. OpenAI says gpt-oss-20b runs in 16 GB of memory, and our guide to running an LLM locally covers which models fit which machine.

What are LLMs good at?

LLMs are strongest at language work where you can check the result: drafting and rewriting, summarizing long documents, translating, writing and explaining code, pulling structured data out of messy text, and answering questions about material you hand them. They've also become strong at hard reasoning: Stanford's 2026 AI Index reports that frontier models now match or beat human experts on PhD-level science questions and competition math.

Give an LLM tools, such as a browser or a terminal, and let it work in a loop, and it becomes an agent that carries out tasks instead of only describing them. Our explainer on what an AI agent is covers how that works and the extra risks it brings.

Where do large language models go wrong?

  • They make things up. OpenAI's September 2025 research on hallucinations gives two reasons: pretraining teaches a model to predict text without labels for what's true, and common tests reward a confident guess over "I don't know". In its example, a widely used chatbot gave three different wrong titles for one person's PhD dissertation. OpenAI warned at ChatGPT's launch of "plausible-sounding but incorrect or nonsensical answers", and the problem persists.
  • Their knowledge stops at a date. Anything after the training cutoff is missing unless the app searches the web or you paste the information in.
  • They're inconsistent. OpenAI noted at launch that rephrasing a question slightly could change ChatGPT's answer.
  • They reflect their training data. IBM and Google both list bias as a core limitation.
  • Their explanations aren't always honest. Anthropic's 2025 interpretability research found Claude 3.5 Haiku did mental math through parallel internal paths, but described the school carrying method when asked how it did it.
  • They can be hijacked. OWASP ranks prompt injection first in its 2025 Top 10 risks for LLM applications: hidden instructions in a web page or file the model reads can change what it does.
  • They use real energy. Google reported in August 2025 that a median Gemini apps text prompt used 0.24 watt-hours, like watching TV for under nine seconds, though MIT Technology Review notes some tasks use far more. Stanford's AI Index puts AI data center power capacity at 29.6 gigawatts, roughly New York state's peak demand.

Do LLMs actually understand what they say?

Researchers disagree. In 2021, Emily Bender, Timnit Gebru and co-authors published "On the Dangers of Stochastic Parrots", arguing that language models produce text that seems coherent without any intent or meaning behind it.

Anthropic's interpretability work points the other way on some questions. In March 2025, its researchers reported that Claude 3.5 Haiku picks the rhyming word for the next line of a poem before writing it, and that a concept such as "the opposite of small" activates the same internal features in English, French and Chinese.

For everyday use, the practical answer matters more. LLMs can reason through real problems, and they can also be wrong in ways a person who understood the subject wouldn't be. Treat what they write as a fast, well-read first draft, and check anything that matters.

LLM vs generative AI vs AI agent

  • Generative AI is the umbrella term for AI that creates content, including images, video and music as well as text.
  • A large language model is the kind of generative AI built around predicting text, now often with images and audio as inputs.
  • A chatbot is an app around an LLM, such as ChatGPT, Claude or Gemini.
  • An AI agent is an LLM that plans steps and uses tools in a loop to finish a task.
  • A small language model is the same idea at a fraction of the size, from a few billion to a few tens of billions of parameters, small enough to run on your own device, such as Gemma 4's E2B and E4B edge models or gpt-oss-20b.

How can you try a large language model?

  1. Use a free chat app. ChatGPT's Free plan runs GPT-6 Luna, Claude's free plan includes Sonnet and Haiku, and the free Gemini app uses Gemini 4 Hydrogen.
  2. Call an API. Developers pay per million tokens. On Anthropic's price list, Claude Haiku 5.5 starts at $0.10 per million input tokens and $0.50 per million output tokens.
  3. Run one on your own computer. Download an open-weight model and run it with an app such as Ollama or LM Studio.

Frequently asked questions

What does LLM stand for?

LLM stands for large language model. "Large" refers to the billions or trillions of parameters inside the model and the trillions of tokens of text it's trained on.

Is ChatGPT a large language model?

ChatGPT is an app built on LLMs rather than a model itself. Its chat runs on OpenAI's GPT-6 family: GPT-6 Luna on Free and Go, and GPT-6 Sol on paid plans, which a version of GPT-6.2 Sol began replacing on 23 November 2026.

How many parameters does a large language model have?

Anywhere from a few billion to trillions. Gemma 4's smallest model has an effective 2 billion, while Moonshot AI's Kimi K3 has 2.8 trillion. OpenAI, Anthropic and Google don't disclose the size of their flagship models.

Why do large language models make things up?

They're trained to produce likely-sounding text, not checked facts, and OpenAI's research says common tests reward confident guesses over admitting uncertainty. Check important facts against a reliable source.

Are large language models open source?

Some are open-weight, meaning you can download them: Kimi K3, DeepSeek V4, Qwen3.8, Mistral Large 4, Gemma 4, Muse Glimmer and gpt-oss, for example. Training data usually isn't published and licenses vary. GPT-6, Claude and Gemini are closed.

Can an LLM remember me or browse the web?

The model itself only knows its training data and whatever is in its context window. Apps add web search, file access and memory features around it.

Sources

Was this helpful?

Keep reading

Colorful JavaScript code on a dark screen, for choosing the best code editor
AI Coding Tools
AI & Dev Tools

The best code editor in 2026: VS Code, Cursor, Zed, JetBrains and more compared

The best code editors of late 2026 compared: VS Code, Cursor, Zed, JetBrains IDEs, Neovim, Sublime Text, Devin Desktop and Antigravity on price, AI, platforms and fit.

15 min read

A video editing timeline on a dark screen, for picking the best AI video generator
Best AI Tools
AI & Dev Tools

Best AI video generator in 2026: Gemini Omni, Kling, Seedance, Runway and more

The best AI video generators in November 2026, from Google's Gemini Omni to Kling 4.0, Seedance 2.5 and Runway, compared on clip length, audio, price and commercial rights.

16 min read

A hand holding a phone showing the Google search page, for the best AI search engine comparison
Best AI Tools
AI & Dev Tools

The best AI search engine in 2026: Perplexity, Google AI Mode, ChatGPT and five more compared

The best AI search engines of late 2026 compared: Perplexity, Google AI Mode, ChatGPT search, Gemini, Claude, Copilot, Brave and Kagi on price, citation accuracy, ads and privacy.

16 min read