Skip to content

What Is a Large Language Model – LLM Basics Explained

Large language models power ChatGPT, Claude and Gemini. How they turn text into tokens and predictions, what the numbers on a model card mean, and where they fail.

What Makes a Language Model “Large”

You typed one sentence into a chatbot and a paragraph came back. A large language model produced it. By the end of this page you will know what the “large” counts, how the paragraph was built one piece at a time, and which numbers on a model card are worth your attention.

A large language model (LLM) is a neural network trained on enormous amounts of text to predict what comes next in a sequence. “Large” counts two things: the number of parameters and the amount of text the model learned from. MIT Technology Review describes parameters as the dials and levers that control how a model behaves, and notes that OpenAI’s GPT-3, released in 2020, had 175 billion of them.

For closed models, the current count is a guess. The same article says some estimates put GPT-4.5 above 10 trillion parameters, and that Gemini 3 may have at least a trillion, with some thinking closer to seven, “but the company isn’t saying.” Open-weight models publish the number. The Kimi K3 model card lists 2.8 trillion total parameters, with 104 billion active for any one token.

Bigger is not automatically better, because data counts too. The Chinchilla paper trained a 70-billion-parameter model with the same compute budget as the 280-billion-parameter Gopher but four times more data, and reported that it uniformly outperformed Gopher, GPT-3 (175B), Jurassic-1 (178B) and Megatron-Turing NLG (530B) on a large range of tasks. Its advice: when you double the model size, double the training tokens too. Meta’s Llama 3 went the data-heavy way and was pretrained on over 15 trillion tokens.

How a Large Language Model Processes Text

Every LLM runs the same loop. Your input is split into tokens, chunks that may be a whole word, part of a word or a single character. Each token becomes an embedding, a list of numbers that places it in a space where related meanings sit close together. Layers of self-attention then let every token weigh every other token in the context. The last layer scores every possible next token, the model picks one, appends it to the text, and runs the loop again. A 300-word answer is several hundred passes through the same machine. If you want to adapt that model to a particular task, the guide to fine-tuning large language models takes the next step. For more on this topic, see natural language processing.

The pick is not always the top-scoring token. Sampling is a setting you can change: the DeepSeek-V4-Pro card recommends a temperature of 1.0, with top_p 0.95 for agent tasks and 1.0 otherwise, which is one reason the same prompt can return different wording on different runs.

Worked example: tokens, words and money. Anthropic’s model documentation says 1 million tokens is roughly 555,000 words on its current tokenizer, while earlier models fit about 750,000 words. That is 1.8 tokens per word against 1.3 (1,000,000 divided by 555,000, and by 750,000). A 1,500-word report therefore costs about 2,000 tokens on the older tokenizer and about 2,700 on the newer one. Same text, different bill, because each model family cuts text differently. Try this yourself: paste a few hundred words into your provider’s token counter, divide tokens by words, and use your own ratio when you budget.

The Transformer Architecture

Nearly every major LLM descends from one paper. “Attention Is All You Need” (arXiv, June 2017) described the Transformer as “based solely on attention mechanisms,” with no recurrence or convolutions. Earlier models read text in order, one word after another. A transformer sees the whole input at once while training and while reading your prompt, which is what made training on very large text collections practical. Writing the reply is still one token at a time.

The design has not stood still. Three variations appear on current model cards. In a mixture of experts, the model holds many specialist sub-networks and routes each token to a few of them: Kimi K3 uses 104B of its 2.8T parameters per token (under 4%), and gpt-oss-120b uses 5.1B of 117B. Hybrid attention combines different attention types: the GLM-5.3-Flash card describes sparse plus linear attention, a first for the GLM series. And sliding windows limit some layers to nearby text: the Gemma 4 31B card lists a 1,024-token window with global layers for long range.

The practical result is that a parameter count alone no longer tells you what a model costs to run. Total parameters set the memory, and active parameters set the speed. Weight memory in gigabytes is parameters in billions times bits per parameter divided by 8, so a 7-billion-parameter model needs 14GB at 16 bits and about 3.5GB at 4 bits. The open-weight model guide applies that arithmetic to eleven current models.

Major Large Language Models in October 2026

The lineup has moved on since March, when this page listed the GPT-5 series, Claude Opus 4.6 and Gemini 3. This table comes from each vendor’s own documentation, read on October 15, 2026. Prices are list prices per million tokens, input then output. The last column is one request of 2,000 input and 500 output tokens: 2,000 times the input price divided by 1,000,000, plus 500 times the output price divided by 1,000,000.

ProviderModelContextPrice per 1M tokens (in / out)One request
OpenAIGPT-6 Astra1.05M$10 / $50$0.045
OpenAIGPT-6.1 Sol1.05M$2 / $10$0.009
OpenAIGPT-6 Luna1.05M$0.10 / $0.50$0.00045
AnthropicClaude Fable 5.11M$10 / $50$0.045
AnthropicClaude Opus 5.51M$4 / $20$0.018
AnthropicClaude Sonnet 5.51M$2 / $10$0.009
AnthropicClaude Haiku 5.51Mfrom $0.10 / from $0.50$0.00045
GoogleGemini 4 Argon1,048,576$2 / $10 through Nov 30, 2026, then $4 / $20$0.009, then $0.018

Two things stand out. First, the spread inside one vendor is enormous: the same request costs $0.045 on GPT-6 Astra and $0.00045 on GPT-6 Luna, a factor of 100. Anthropic’s documentation frames its own tiers the same way, with Haiku 5.5 for high-volume, latency-sensitive work such as classification, extraction and routing, and Fable 5.1 for demanding reasoning and long agentic jobs. Match the tier to the task. Second, context windows have converged near one million tokens, and both OpenAI and Anthropic list 128K tokens of maximum output.

The table deliberately leaves out benchmark rankings. Labs report scores on their own test setups, and the same benchmark name can mean different versions on different cards, so a ranking built from them would look more precise than it is. Model names also expire: Anthropic’s page commits to keeping its current models available until at least September 1, 2027 for Fable 5.1 and October 7, 2027 for Haiku 5.5, which is the kind of date to look for before you build on a model. Open-weight families (Kimi K3, DeepSeek-V4, Qwen3.8, GLM-5.3) sit alongside these, free to download but not free to run.

Limitations Worth Knowing

An LLM does not understand meaning the way people do. It models patterns in text, and it is very good at them. Its worst habit is hallucination: confident statements that are wrong. A September 2025 paper by Kalai, Nachum, Vempala and Zhang argues that “training and evaluation procedures reward guessing over acknowledging uncertainty.” A model scored like a test-taker learns that a guess beats a blank. Anthropic’s guidance for reducing the problem is concrete: tell the model it may say “I don’t know,” ask it to quote the source text before answering, and have it find a supporting quote for each claim, retracting any it cannot support. Even then, the page says, these techniques do not eliminate hallucinations entirely. AWS puts it more briefly: “LLMs are not infallible.”

A large context window is not the same as reliable reading. On a long-context retrieval test (MRCR v2, eight needles, 128K tokens), the Gemma 4 31B card reports 66.4%, so a window of a million tokens does not guarantee that every fact in it is found.

Language coverage also means different things on different cards. The Mistral Large 3 card names eleven languages, while the Gemma 4 card says it was pre-trained on more than 140 languages and offers out-of-the-box support for 35 or more. Before you rely on a model in a language that is not English, test it in that language.

When you read a model card, remember three numbers. Total parameters tell you the memory, tokens tell you the cost, and the context window tells you how much the model can read at once. None of them tells you the answer is right, so check the ones that matter.

GPT-3
175B
parameters, as published
Kimi K3
2.8T
parameters, 104B active per token
Llama 3
15T+
training tokens

Frequently Asked Questions

How much does it cost to train a large language model?

Every figure here is an estimate, but Epoch AI’s June 2024 analysis gives the shape of the bill: hardware is 47% to 67% of development cost, research and engineering staff 29% to 49%, and energy 2% to 6%. It found the cost of the final training run growing about 2.4 times per year since 2016 and projected that the largest runs would pass a billion dollars by 2027. Fine-tuning an existing open model costs far less than training one from scratch.

Can a large language model run on a personal computer?

Yes, if the weights fit in your graphics memory. A 7-billion-parameter model needs about 14GB at 16 bits and 3.5GB at 4 bits. OpenAI says gpt-oss-20b runs within 16GB, and Qwen3.8-27B needs roughly 13.5GB at 4 bits by the same arithmetic. A trillion-parameter model such as Kimi K3 needs about 1.4TB for weights even at 4 bits, which is server territory.

Why do large language models sometimes give wrong answers?

They generate the most plausible continuation, and nothing in that loop checks a fact. Researchers argue that standard training and scoring also reward guessing over admitting uncertainty. You can reduce wrong answers by giving the model your source text, allowing it to say it does not know, and asking for quotes, but you cannot remove them.

Is ChatGPT a large language model?

ChatGPT is a chat product. The large language models are the engines behind products like it. OpenAI’s API documentation lists model names such as GPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna, and Anthropic separates the Claude model family from the claude.ai app in the same way. When people say “the model,” they mean the engine, not the app.

Leave a comment