What an AI model is
8 minAfter this lesson you can explain prediction, training, inference, tokens and parameters in one plain sentence each, and point to what each one changes on a screen.
Lesson video
Tastebud · 8:06 · Captions on screen
A model writes one likely next word at a time, using patterns it learned once, before launch.
- Why. Training tuned its numbers to predict what comes next. Each Send runs them with no answers to check, so a made-up detail reads as sure as a true one.
- Real example. Start an email to your landlord and Smart Compose offers the next words as you type. Tab takes them. It's a next-word guess, learned from billions of common phrases. (Gmail, Nov 2026)
- When to break it. When facts matter, give the model something to read. With web search on, ChatGPT still predicts word by word, but from pages it just found, with citations you can open.
- Common mistake. Treating a reply as a looked-up fact. ChatGPT's rent message can add a date you never gave, sounding as sure. With no easy edit, it goes to the landlord.
Our take. On its own, a model looks nothing up. Design its replies like search results and people trust the made-up parts, so give each reply Try again, easy editing and a line on what the model can't know.
- The model maker does it, before your product exists
- Reads a huge amount of text (Llama 3.1: over 15 trillion tokens)
- Runs on thousands of chips (over 16,000 for Llama 3.1 405B)
- Sets the parameters, which then stay fixed
- Your product runs it, for every message
- Reads one person's text and writes one reply
- Uses the parameters and changes none of them
- Carries your user's wait and the cost of each reply
A chat in ChatGPT is inference, so it leaves the model exactly as it was.
Tokens are the unit for limits and prices
Models read and write in tokens: chunks of text, often a short word or part of a longer one. In English, a token is about three quarters of a word. Limits on what a model reads and writes, and prices, are counted in tokens.
The same greeting takes more tokens in Hindi
- English, GPT-4o: 24 tokens. 'Hello, my name is GPT-4o. I'm a new type of language model, it's nice to meet you!'
- Hindi, GPT-4o: 31 tokens. The same greeting in Hindi, split by the tokenizer GPT-4o uses.
- Hindi, older tokenizer: 90 tokens. Before GPT-4o, the Hindi greeting took 90 tokens and the English one 27.
Parameters are the numbers training sets
Parameters are the numbers inside a model that training adjusts, and together they hold what it learned. Meta's Llama 3.1 comes in 8, 70 and 405 billion. More parameters often means better answers on hard tasks, and usually slower, costlier replies.
Pick the smallest model that does the job well
- Suggest the next word. A short, narrow job where speed matters most. The iPhone keyboard runs its model on the phone itself.
- Draft the rent message. A short everyday message, which a mid-sized model usually writes well and fast.
- Plan a move across cities. A long answer with many steps to get right. This is where a larger model tends to earn its slower replies.
Write each term as what it changes on screen
Users never see the word inference. They see what it causes, like a waiting state or a limit message. Each branch names the term behind what they see.
Users meet each term as something on screen
- Answers that vary. Prediction. Each reply is written fresh, so wording changes and details can be wrong. Offer Try again and make the reply easy to edit.
- Gaps in recent news. Training. The model only has what was in its training text, which stops at a date. Help text should say so.
- The waiting state. Inference. Every Send runs the model, which takes time. Stream the reply as it's written and offer a Stop button.
- Limit messages. Tokens. Files and chats that run past the limit need a plain message and a way forward.
- Speed and price. Parameters. Bigger models are usually slower and cost more per reply, which shapes wait times and limits.
Try it
Guess the next word
Each line is part of a rent message. Pick the word you think comes next, then see a small model's top guesses and their odds.
Probabilities recorded from SmolLM2-135M on 26 Nov 2026
Quick check
A user writes in: "I asked the same thing twice and got two different answers. Is it broken?" Which reply from support is accurate and useful?
Watch next
Watch it for The model giving every possible next word a score and then picking one, and how training tunes the parameters behind those scores.
Watch it for What happens to a message each time someone presses Send, and why the reply takes time to arrive.
Case study: Gmail Smart Compose, suggestions faster than a keystroke
Connects to: 2.3 Visualising with AI · 4.3 Context, memory and retrieval · 10.2 Loading and waiting · 6.3 AI business models
Sources · checked Nov 2026
- Gmail Help: Use Smart ComposeSmart Compose suggests as you type, Tab accepts, it is powered by machine learning on billions of common phrases, and the Writing suggestions on/off setting
- OpenAI Help: Does ChatGPT tell the truth?Replies come from patterns in training data, models are trained on data up to a certain point, and ChatGPT can sound confident when wrong
- OpenAI Help: Searching the web with ChatGPTWith web search, ChatGPT answers from current pages and adds citations you can open (the breakIt line)
- OpenAI Community: OpenAI Support reply on the Try again icon (27 Feb 2026)ChatGPT's control for a fresh reply is labelled Try again (it replaced Regenerate)
- OpenAI Help: What are tokens and how to count them?A token is about three quarters of an English word, context windows and output limits are counted in tokens, and input and output tokens are priced separately
- OpenAI: Hello GPT-4o (13 May 2024), language tokenization sectionThe same greeting takes 24 tokens in English and 31 in Hindi with GPT-4o's tokenizer, and took 27 and 90 with the one before
- Meta AI: Introducing Llama 3.1 (23 Jul 2024)Llama 3.1 sizes of 8B, 70B and 405B parameters, 405B trained on over 15 trillion tokens using over 16,000 H100 GPUs
- Apple Newsroom: iOS 17 makes iPhone more personal and intuitive (5 Jun 2023)The iPhone keyboard predicts words with a transformer language model that runs on the device