Skip to content
AI13 min read

LLM meaning: what does LLM stand for in AI? Large language models explained

LLM stands for large language model. Here is what each word means, how LLMs actually work, a short Python demo of next-token prediction you can run yourself, and the limits worth knowing before you trust one.

By

Editor

Published

Updated

Cover image for “What does LLM stand for?”: Large language models, explained, illustrated with a sentence with predicted next words.

The short answer

LLM stands for large language model. It is an AI system trained on huge amounts of text to predict the next token, meaning a word or piece of a word, in a sequence. By repeating that prediction many times, an LLM can answer questions, write, summarize, translate and code. ChatGPT, Claude and Gemini all run on LLMs. In law, LL.M. means Master of Laws.

LLM stands for large language model. You keep seeing the acronym in news stories, job ads and product pages, usually with no explanation, and most definitions either stop there or jump straight into math. You finish reading knowing the words but not what is actually happening inside the thing.

This guide fixes that. You will get a word-by-word breakdown, example models, the other meanings of LLM, a plain explanation of how LLMs work, a tiny Python demo of next-token prediction that we ran ourselves, and the limits you should know before you rely on one.

What does LLM stand for?

LLM meaning, in one line: LLM stands for large language model, an AI system trained on huge amounts of text to predict and generate language. That is the meaning in AI, in machine learning and in tech news. "LLMs" is simply the plural. The one common exception is law, where LL.M. is a Master of Laws degree.

In AI and tech, the letters always mean the same thing: large language model. It is a type of AI model trained on enormous amounts of text so that it can predict, and therefore generate, language. When people say "LLMs" in the plural, they mean the whole category: the models behind ChatGPT, Claude, Gemini and many others.

LLM, word by word
LetterWordWhat it means in practice
LLargeTrained on a huge amount of text and built with billions of adjustable numbers called parameters
LLanguageWorks with text: reading it, predicting it and writing it, including code, which is also text
MModelA mathematical function learned from data. Text goes in, a prediction of what comes next comes out

You will also see "language learning model" online. That is a common mix-up rather than a real term. The name used by researchers, Google's own machine learning course (opens in a new tab) and every major AI company is large language model.

LLM full form in machine learning

In machine learning, the full form of LLM is large language model. Google's crash course explains the two halves: a language model estimates how likely a token, or a sequence of tokens, is to appear in a longer sequence, and a large one does that with far more parameters and training text. The easiest way to make the term concrete is to look at real ones. Model names change every few months, so treat this table as a snapshot of what each vendor's documentation listed as of November 2026.

Example LLMs from three major vendors
CompanyLLM familyCurrent models listed in the docsWhere you meet it
OpenAIGPTGPT-6.2 Astra (flagship for complex reasoning and coding), GPT-6.2 Sol (balance of intelligence and cost), GPT-6.1 Terra (fast and efficient), GPT-6 Luna (most cost-efficient, for high-volume tasks)ChatGPT and the OpenAI API
AnthropicClaudeClaude Fable 5.2, Claude Opus 5.5, Claude Sonnet 5.5, Claude Haiku 5.5The Claude apps and the Claude API
GoogleGeminiGemini 4 Argon (flagship reasoning model), Gemini 3.8 Flash, Gemini 3.5 Flash-LiteThe Gemini app, Google products and the Gemini API

Sources: OpenAI's models page (opens in a new tab), Anthropic's models overview (opens in a new tab) and Google's Gemini API models page (opens in a new tab). Note the difference between an app (ChatGPT, the Claude apps, the Gemini app) and the models that power it. Each vendor offers a ladder from a large, most capable model down to small, fast, cheap ones, and many open-weight LLMs also exist that you can download and run on your own hardware, as our guide to the best local LLMs shows.

Other meanings of LLM

Search results for "LLM meaning" mix several intents, so here is how to tell them apart. Outside AI, the most common meaning is a law degree: LL.M. stands for Master of Laws, from the Latin Legum Magister, as Dictionary.com (opens in a new tab) records alongside the AI sense. It is a postgraduate degree. Pepperdine Caruso School of Law (opens in a new tab) explains that LLM programs require a JD or a first degree in law before you can apply, that most take a year to complete full time, and that an LLM on its own does not qualify someone to practice law. If you saw the letters on a university or law firm page, this is the meaning.

What about LLM in a text message? Some slang sites list texting meanings, but major dictionaries do not: both Dictionary.com and the Oxford Learner's Dictionaries (opens in a new tab) give only the AI model and the law degree. In practice, read it from context. A message about chatbots, coding or work tools means large language model; one about law school or a legal career means the degree. If neither fits, ask.

What is a large language model? A plain definition

Start with the second half of the name. Google's Machine Learning Crash Course defines it like this:

A language model estimates the probability of a token or sequence of tokens occurring within a longer sequence of tokens.
Google Machine Learning Crash Course, Introduction to Large Language Models

In everyday terms, a language model is a very sophisticated autocomplete. Given "The capital of France is", it estimates that "Paris" is far more likely to come next than "purple". A large language model does the same thing at enormous scale: it was trained on a vast amount of text, it has billions of parameters, and it can look at a long stretch of context at once. Google's course describes LLMs as models that predict a token or sequence of tokens, sometimes many paragraphs worth.

The surprising part is how much falls out of that one skill. To predict the next word well across billions of examples, a model has to pick up grammar, facts, writing styles, reasoning patterns and the structure of code. That is why the same model can draft an email, explain a contract clause and fix a bug.

How do LLMs work? The five steps

Every time you send a message to an LLM, the same basic cycle runs. Here it is without the math.

Five steps of how a large language model works: split text into tokens, turn tokens into embeddings, weigh context with attention, predict the next token, then pick one and repeat until done.
The five-step cycle behind every LLM answer.
  1. Your text is split into tokens. A token can be a whole word, part of a word or a single character. The model never sees letters, only token IDs.
  2. Each token becomes a list of numbers. These numbers, called embeddings, place tokens with similar meanings near each other, so "cat" and "kitten" end up closer than "cat" and "carburetor".
  3. The model weighs the context. Layers of a neural network called a Transformer work out how each token relates to every other token in your message, using a mechanism called attention.
  4. It predicts the next token. The output is a probability for every token in its vocabulary: for example, 92 percent "Paris", 1 percent "Lyon", and tiny amounts for everything else.
  5. It picks one and repeats. The chosen token is added to the text, and the whole cycle runs again for the next one, until the model produces a stop signal or hits a length limit.

That last step is why answers appear word by word on screen. The model is not retrieving a stored answer; it is generating one token at a time, each based on everything that came before.

Tokens: the unit LLMs read and write

Tokens matter because they are how LLMs measure everything: how much text they can read at once and, for paid APIs, what you are billed for. OpenAI's guide to tokens (opens in a new tab) gives these rules of thumb for English text:

  • 1 token is about 4 characters.
  • 1 token is about three-quarters of a word.
  • 100 tokens are about 75 words.

OpenAI calls these estimates, not exact counts. Other languages can split very differently, and even capitalization and a leading space change how a word is tokenized. If you want to see real splits, OpenAI points to its online Tokenizer tool and its open-source tiktoken library.

Transformers and attention: how LLMs use context

Older language models read text one piece at a time and struggled to connect words far apart. The breakthrough came in 2017, when a team of eight researchers published "Attention Is All You Need" (opens in a new tab). It introduced the Transformer, an architecture "based solely on attention mechanisms" that drops the step-by-step processing of earlier designs. Google's crash course now calls Transformers the state-of-the-art architecture for a wide variety of language model applications.

How much does each other token of input affect the interpretation of this token?
Google Machine Learning Crash Course, LLMs: What's a large language model?

That question is what self-attention (opens in a new tab) answers, for every token, in every layer. It is how a model works out that "it" in "The trophy didn't fit in the suitcase because it was too big" refers to the trophy, not the suitcase. Because attention looks at the whole context at once rather than word by word, distant words can still shape the meaning of each other.

See next-token prediction in about 20 lines of Python

The easiest way to understand the core idea is to build the world's smallest language model. The script below uses only Python's standard library. It counts which word follows which in a tiny training text, turns those counts into probabilities, and generates text by repeatedly picking the most likely next word. This is a bigram model, the simplest kind of n-gram model (opens in a new tab) that Google's course uses to introduce the topic.

toy_lm.py: a word-level bigram language model (tested with Python 3.13)
from collections import Counter, defaultdict

# A tiny training corpus. Real LLMs train on trillions of tokens.
corpus = (
    "the cat sat on the mat . "
    "the cat ate the fish . "
    "the dog sat on the rug . "
    "the dog chased the cat ."
)

# 1. Tokenize: here, one token per word.
tokens = corpus.split()

# 2. Train: count which token follows which (a bigram model).
follows = defaultdict(Counter)
for current, nxt in zip(tokens, tokens[1:]):
    follows[current][nxt] += 1

# 3. Predict: turn counts into probabilities for the next token.
def next_token_probs(token):
    counts = follows[token]
    total = sum(counts.values())
    return {t: round(c / total, 2) for t, c in counts.most_common()}

print("after 'the':", next_token_probs("the"))
print("after 'sat':", next_token_probs("sat"))

# 4. Generate: repeatedly append the most likely next token.
text = ["the", "dog"]
for _ in range(5):
    probs = next_token_probs(text[-1])
    text.append(max(probs, key=probs.get))
print("generated:", " ".join(text))

Running it with python3 toy_lm.py prints exactly this:

Output
after 'the': {'cat': 0.38, 'dog': 0.25, 'mat': 0.12, 'fish': 0.12, 'rug': 0.12}
after 'sat': {'on': 1.0}
generated: the dog sat on the cat sat

Three things are worth noticing, because they map directly onto real LLMs:

  • Training is counting patterns. "the" was followed by "cat" 3 times out of 8 in the training text, so the model gives "cat" a 0.38 probability. Real LLMs learn far richer patterns with billions of parameters instead of a lookup table, but the goal is the same: assign high probability to likely continuations.
  • Generation is prediction on repeat. The model only ever answers one question, "what comes next?", and builds a sentence by asking it again and again.
  • Too little context produces nonsense. "the dog sat on the cat sat" is locally plausible, because every pair of words appeared in training, but the whole sentence is wrong. This model only looks one word back. Google's course makes the same point about n-grams: a 3-gram's only context is the previous two words. Attention exists to fix exactly this, by letting the model consider thousands of tokens at once.

How LLMs are trained

Turning a next-token predictor into a helpful assistant usually takes more than one stage. The details differ between companies, but the broad shape is well documented.

The main stages of training an LLM
StageWhat happensWhat it gives the model
PretrainingThe model reads a huge text corpus and learns by predicting tokens that come next or that have been hidden, adjusting its parameters after each errorGrammar, broad knowledge, writing styles, coding patterns
Instruction tuningFurther training on examples of instructions paired with good responsesThe habit of answering requests instead of just continuing text
Learning from human feedbackPeople compare or rank model answers, and the model is trained to prefer the better onesAnswers that are more helpful, more on-topic and less harmful

OpenAI's 2020 GPT-3 paper (opens in a new tab) showed how far pretraining alone could go: the model could pick up new tasks from a few examples written into the prompt, "without any gradient updates or fine-tuning". But raw pretrained models are awkward to use, because they continue text rather than follow instructions.

The fix came from the InstructGPT paper (opens in a new tab) in 2022, which opens with a line that still matters: "Making language models bigger does not inherently make them better at following a user's intent." Using reinforcement learning from human feedback (RLHF), the team found that people preferred outputs from a 1.3 billion parameter InstructGPT model over the 175 billion parameter GPT-3. Training method, not just size, decides how useful a model feels.

What makes an LLM "large"?

"Large" refers to two things: the amount of training data and the number of parameters, the adjustable numbers inside the network that store what the model learned. When GPT-3 (opens in a new tab) launched in 2020, its 175 billion parameters were 10 times more than any previous non-sparse language model. Google's crash course now describes Transformers with hundreds of billions or even trillions (opens in a new tab) of parameters, and notes that larger models tend to outperform smaller ones but need more computing resources to run.

Bigger is not automatically better for your task, though. Smaller models are faster and much cheaper, and for narrow jobs such as classification or extraction they are often good enough. Our guide to small language models vs LLMs walks through when to use each, with the cost math.

What LLMs can do

Because almost everything people do at a computer involves text, LLMs turn up in a wide range of tasks:

  • Writing and editing: drafts, rewrites, summaries and translations.
  • Answering questions: explaining concepts, especially when you paste in the document the answer should come from.
  • Coding: writing, explaining and debugging code, which is just another kind of text.
  • Extracting structure: pulling names, dates and amounts out of emails, invoices or contracts.
  • Acting as the brain of an agent: deciding which tools to call to finish a multi-step task, as our guide to building an AI agent shows.

How much an LLM can work with at once is set by its context window. Anthropic's docs describe it as all the text a model can reference when generating a response, a "working memory" (opens in a new tab) that is separate from what it learned in training. At the time of writing, Anthropic lists a 1 million token context window for its current Claude models, very roughly 750,000 English words by OpenAI's rule of thumb. To give a model access to live data or tools beyond that window, developers connect it to outside systems, for example through the Model Context Protocol.

The limits of LLMs: what they get wrong

Knowing how LLMs work makes their failure modes easy to predict. They are built to produce likely text, which is not the same as true text.

  • Hallucinations. OpenAI defines these as "plausible but false statements generated by language models." Its September 2025 research (opens in a new tab) explains that pretraining has no true or false labels, so "arbitrary low-frequency facts, like a pet's birthday, cannot be predicted from patterns alone." It also argues that common training and evaluation methods reward guessing over admitting uncertainty.
  • A knowledge cutoff. A model only knows what was in its training data. Vendors publish a training or knowledge cutoff date for each model, as Anthropic does in its models overview (opens in a new tab). Anything after that has to be supplied in the prompt or fetched with a tool.
  • Long context is not perfect recall. Anthropic's context window docs note that more context isn't automatically better: as the token count grows, accuracy and recall can degrade, which they call context rot.
  • No actions on their own. An LLM only outputs text. Sending an email or updating a database requires software around it that turns that text into actions, with permissions and checks.
  • Sensitivity to wording. Small changes in how you ask can change the answer. Clear instructions, examples and supplied context help a lot, as our Claude prompt engineering guide explains.

LLM vs AI vs generative AI

These terms nest inside each other. AI is the broad field of making computers do tasks that normally need human intelligence. Generative AI is the part of AI that creates new content, such as text, images, audio or video. LLMs are the generative AI models that specialize in language. So every LLM is generative AI, but an image generator is generative AI without being an LLM. If you have also seen "agentic AI", that describes systems that use models like LLMs to take actions toward a goal; our explainer on agentic AI vs generative AI covers the difference.

The bottom line

LLM stands for large language model: a model trained on huge amounts of text to predict the next token, then used to generate answers one token at a time. That single idea, scaled up with Transformers, billions of parameters and careful training, explains both what LLMs are good at and why they sometimes state false things confidently. Use them for drafting, explaining, extracting and coding, give them the context they need, and check the facts that matter. For more plain-English explainers on models, agents and tools, browse our AI guides.

Common questions

What does LLM stand for in AI?

In AI, LLM stands for large language model. It is a model trained on very large amounts of text to predict the next token in a sequence, which lets it generate and work with language.

Is it large language model or language learning model?

The standard term is large language model. "Language learning model" is a common mix-up, probably because LLMs learn from language, but it is not the name researchers or AI companies use.

Is ChatGPT an LLM?

Not exactly. ChatGPT is an app, and the models underneath it, OpenAI's GPT family, are the LLMs. The same split applies to the Claude and Gemini apps and the Claude and Gemini models behind them.

What is the difference between an LLM and AI?

AI is the whole field. An LLM is one kind of AI model, and one kind of generative AI, specialized in text. Image generators, recommendation systems and self-driving software are AI too, but they are not LLMs.

How many parameters does an LLM have?

It varies widely. GPT-3, released in 2020, had 175 billion parameters, and Google's crash course says today's Transformer models can contain hundreds of billions or even trillions. Smaller models with a few billion parameters can still be useful for narrow tasks.

What does LLM mean in law or in a text?

In law, LL.M. stands for Master of Laws, from the Latin Legum Magister, a postgraduate law degree that has nothing to do with AI. Major dictionaries such as Dictionary.com and Oxford Learner's list no texting or slang meaning, so in a message it almost always means large language model or the law degree, depending on context.

Sources

  1. Introduction to Large Language Models, Google for Developers, Machine Learning Crash Course
  2. LLMs: What's a large language model?, Google for Developers, Machine Learning Crash Course
  3. Attention Is All You Need, arXiv (Vaswani et al.)
  4. Language Models are Few-Shot Learners, arXiv (Brown et al.)
  5. Training language models to follow instructions with human feedback, arXiv (Ouyang et al.)
  6. What are tokens and how to count them?, OpenAI Help Center
  7. Why language models hallucinate, OpenAI
  8. Context windows, Claude Platform Docs
  9. Models overview, Claude Platform Docs
  10. Models, OpenAI API Docs
  11. Gemini models, Google AI for Developers
  12. What is an LLM?, Pepperdine Caruso School of Law
  13. LLM, Dictionary.com
  14. LLM, Oxford Learner's Dictionaries

Revision history

  • : Opened with the direct answer, added sections on the LLM full form in machine learning and other meanings of LLM, refreshed the example models table and rewrote the meta description.
  • : Added a one-line answer to what LLM means and stands for, covering the plural and the law degree.

About A. Farooq

Qualified software engineer with 4+ years of experience in the software industry

A. Farooq is a qualified software engineer with 4+ years of experience in the software industry. A. Farooq edits GeeklyPlug and writes many of its AI and technology guides, from how AI agents are built to which laptop to buy and when. Every article lists its sources and shows when it was last updated; corrections go on the original piece.

llmlarge language modelshow llms workai basics

Keep reading

More from AI, then the rest of the archive.