An LLM, a large language model, continues text with the most likely next piece. I measured that on my laptop: the model named a first person on a planet no one has visited, and the numbers inside it showed it was guessing.

An LLM is a large language model: a neural network trained on huge amounts of text to predict what comes next. It is not the LL.M. law degree, which shares the letters. ChatGPT, Claude and Gemini are products built around such models. I ran one on my laptop and asked it to continue "The first person to walk on Kepler-442b was". It answered "a 20-year-old woman named Aisha". No one has walked on Kepler-442b. The interesting part is what the model's own numbers said while it wrote that.

What an LLM is

LLM stands for large language model. It is trained on a very large amount of text to do one thing: given everything so far, predict the next token. A token is a word or a piece of a word; I explained how they work in an earlier test. After that first training, the model is trained further to answer questions and follow instructions, which is why it feels like talking to someone.

The closest everyday comparison is the word suggestion on a phone keyboard, or T9 on the old push-button phones. You type a few letters, and the phone offers the word you most likely mean. An LLM does the same at a vastly larger scale, one token at a time, until the answer is finished.

The most common misunderstanding I see is that people treat it as a thinking person. In practice it is much closer to that keyboard suggestion.

Where the keyboard comparison stops working

The mechanism is the same: pick the next piece of text by how likely it is. The scale is not. A phone keyboard looks at the letters you pressed and a word list. An LLM looks at the whole text before the current position, thousands of tokens, and has learned from trillions of tokens. So it continues not just a word but an argument, a block of code or the structure of a whole document. The bare model also does not look facts up anywhere; chat products may add a search step, but the model itself only has what stayed in its parameters after training. What neither of them has is a step that checks whether the continuation is true.

What I measured

I ran Qwen3 with 4 billion parameters on my MacBook Air (Apple M4, 24 GB) through Ollama 0.40.4. Ollama can return the probability of every token the model produces and of the four runners-up. I sent plain text with no chat wrapper, so the model simply continued it, at temperature 0, so the model always took the most likely token. I wrote the method and all the prompts before the first run.

First, four simple prompts and the model's top candidates for the next token:

Prompt Top candidate Next candidates
The cat sat on the mat, 91% matrix 4%, chair 1%
The capital of France is Paris, 69% a blank line "____" 6%, "a" 4%
1, 2, 3, 4, a space, 98%, then 5, 96%
Anna paid Boris 100 dollars for the first, 11% a space 4%, delivery 4%, work 4%

The last row shows how weak the pull of a single prompt can be: after "Anna paid Boris 100 dollars for the" no word gets even one chance in eight. The second row is worth a look too. The second-best continuation of "The capital of France is" is a blank to fill in. The model has seen enough school quizzes to expect one. It gave the same kind of answer for "The author of the novel Pride and Prejudice is": it wrote a blank and then a multiple-choice list starting with "A. Charles Dickens". It is continuing the kind of text it has seen, not answering a question.

Real facts and invented ones

Then I wrote six pairs of prompts in the same form. One prompt in each pair asks about something real, the other about something I invented. The tower, the element, the planet visit, the company, the country and the novel are all made up for this test.

Real Model wrote Invented Model wrote
The Eiffel Tower was completed in the year 1889 The Krovenhal Tower was completed in the year 1200
The chemical symbol for gold is Au The chemical symbol for veltrium is V
The first person to walk on the Moon was Neil Armstrong The first person to walk on Kepler-442b was a 20-year-old woman named Aisha
The CEO of Microsoft is the chief executive officer of Microsoft Corporation The CEO of Brannock Dynamics is a man named John
The capital of Australia is a city that is not a state… Canberra The capital of Velmora is a city called Velmora
The author of the novel Pride and Prejudice is a quiz blank, then options The author of the novel The Glass Orchard of Tamsin Vale is a woman named Tamsin Vale

On all six invented prompts the model gave a concrete answer: a year, a symbol, a name. Not once did it say that the tower, the element, the company or the visit does not exist. On the page, "1200" reads exactly as confidently as "1889".

The real column is not clean either. For Microsoft the model spelled out what CEO means and named no one. For Pride and Prejudice it wrote a quiz, with Jane Austen as option B. A prompt about a real fact does not guarantee the fact; it only makes it likely.

Before the run I decided to compare the probability of the first token of each continuation. That measure turned out weak: the first token was often just "a" or a space, and the invented prompt came out lower in only 3 of the 6 pairs. So after the run I also looked at the first token of the answer itself, the name, the number or the symbol. This second view was not planned in advance, and I report it as such:

Pair Answer token, real Answer token, invented
Australia / Velmora Canberra, 38% V(elmora), 28%
Eiffel / Krovenhal 1(889), 98% 1(200), 68%
gold / veltrium Au, 98% V, 57%
Moon / Kepler-442b Neil, 91% A(isha), 3%
Pride and Prejudice / Tamsin Vale no answer, a quiz T(amsin), 14%
Microsoft / Brannock Dynamics no name John, 7%

Where both sides gave an answer, the invented one always had the lower probability: from 3% to 68% against 38% to 98% for the real ones. In that sense the model was less sure. But the text it produced carries none of that. It took the most likely token each time, and the most likely token of a weak guess still makes a fluent sentence.

That is one of the mechanisms behind what is called hallucination. I measured how often such confident wrong answers appear on a real task in What Is AI Hallucination.

A chat is a text the model continues

A chatbot hides this, but it works the same way. When I sent "What is an LLM?" through Ollama's chat interface, the model read 16 tokens. The question itself is 6. The other 10 are the chat template: markers that say where the user's turn starts and where the assistant's turn should begin. The model is still continuing a text. The text just ends with a marker that says the assistant speaks next.

What makes one LLM different from another

Size. It is counted in parameters, the numbers inside the model that training adjusts. 7B means 7 billion. More parameters usually means better answers and more memory: at 16 bits each parameter takes 2 bytes, so a 7B model needs about 14 GB just for its weights and a 32B model about 64 GB.

Generation. In my benchmark built on BIRD, 1,534 questions where the model turns plain English into a database query (arXiv:2606.29733), I ran five open models myself:

Model Correct answers
Qwen2.5-Coder 32B 54.9%
Qwen2.5-Coder 14B 52.0%
Qwen2.5-Coder 7B 42.6%
Code Llama 13B 26.3%
Code Llama 7B 23.7%

On my text-to-SQL benchmark, Code Llama with 13 billion parameters, released in 2023, finished 16 points behind Qwen2.5-Coder with 7 billion, released in 2024. A newer small model can beat an older bigger one.

Open or closed weights. An open model can be downloaded and run on your own machine, which matters when the data cannot leave it. A closed model is available only through the vendor's service. On November 16, 2026 Alibaba launched Qwen4-Max, a model with 2.4 trillion parameters of which 71 billion work on each token, and kept its weights closed. Smaller Qwen4 models are promised as open, without a date.

How I choose a model

I start with the hardware the model will run on, because it is usually the hard limit. Then I pick the best model that fits in that memory, keeping the generation in mind. Then I test it on my own material, because a leaderboard says how a model does on average and I need to know how it does on my questions.

I also keep one rule from the test above: the model will answer even when it should not. Anything that depends on a fact gets checked by something other than the model's own confidence in the wording.

What to take from this

  1. An LLM predicts the next token. Everything else, answering, translating, writing code, grows out of that.
  2. Fluent is not the same as sure. In my test the wording of a guess and of a fact looked identical; only the probabilities differed.
  3. It does not say what it does not know. On six invented subjects it gave six concrete answers, though with lower probabilities.
  4. Generation can matter more than size. A 2024 model with 7B parameters beat a 2023 model with 13B by 16 points.

What this does not show

One small open model, one run at temperature 0, six pairs of prompts and four single ones. Large commercial chatbots add instructions, search and refusals around the model, so they may decline more often than a bare model continuing text. The probability of a single token is a rough signal, not a reliable lie detector, and the answer-token comparison was chosen after the run. The benchmark covers one task, turning questions into database queries.

Sources

Vladimir Beskorovainyi, Enterprise AI Architect & CTO, author of the Amazon bestseller "Enterprise AI: The KATA Way", founder of Besk Tech (besk.tech)