Skip to content
mentoor

Topic 1 of 5 · 4 min read

Tokens, context windows and parameters

Goal: Explain tokens, context window and parameters in plain words and use each correctly in a sentence about a real tool.

A token is a small piece of text, the context window is how many tokens a model can hold at once, and parameters are the learned numbers inside the model that set its size. Three words, three different things: a unit, a limit and a size.

Check yourself · 1 of 3

A tool says a file is "too long for the context window." What does that mean?

Choose one answer

Why it matters

These words show up in every price list, every product page and every error message. If you know them, you can tell why a chat suddenly "forgets" your first message, why a long document costs more to process, and why a bigger model is not always the better choice.

The three words

  1. Token. Models do not read letters or whole words. They read tokens: chunks that are often a short word, part of a long word, or a punctuation mark. A common word like "cat" may be one token. A rare word like "unbelievably" may be split into several. Providers count tokens, not words, when they set prices and limits. The OpenAI tokenizer page lets you paste text and see the split.
  2. Context window. This is the model's working memory for one conversation. It holds your messages, the model's replies, any files you attached and the hidden instructions from the app. When the total gets too big, the app must cut something or refuse. The model does not remember anything outside the window unless the tool adds a memory feature.
  3. Parameters. These are the numbers a model adjusts while it learns. People use the count as a rough size: a "7B" model has about seven billion of them. More parameters usually means more ability, but also more cost and slower answers. Parameters are not tokens and not the window. They are fixed once training ends.

Before and after

Before: "ChatGPT has a limit of 10 pages, so I pasted 12 pages and it broke."

After: "The limit is counted in tokens, not pages. My 12-page file plus the chat so far filled the context window, so the tool dropped the start of it."

The second version names the right unit and the right cause, so the fix is clear: shorten the file, split it, or start a fresh chat.

What goes wrong

  • People treat tokens as words. They are close but not equal, and other languages often use more tokens for the same meaning.
  • People think a large context window means perfect recall. A model can still miss or blur details buried in a very long input.
  • People read "more parameters" as "always smarter". A small model tuned for one job can beat a large general one on that job, at a lower cost.
  • People assume the model learns from the chat. Your messages sit in the window for now; they do not change the parameters.

Examples

Check the unit with a tokenizer

Paste a paragraph into a tokenizer tool and look at how it is split. Short common words are usually one token; long or unusual words and names split into several. This shows why a word count only roughly predicts the cost.

Reading a model name

A product page says: "Llama 3.1 8B, 128K context." The "8B" is the parameter count, about eight billion. The "128K context" is the window, about 128 thousand tokens. They describe size and memory, two different things.

Key points

  • A token is a chunk of text, often a short word or part of a longer one, and providers price and limit by tokens, not words.
  • The context window is the total tokens a model can hold in one conversation, including your messages, its replies, files and hidden instructions.
  • Parameters are the learned numbers inside a model, used as a rough measure of its size.
  • A bigger window or a bigger model does not guarantee better answers; it changes cost, speed and limits.
  • Chatting with a model does not change its parameters; your messages only fill the window.

Common mistakes

  • Counting limits in pages or words instead of tokens.
  • Mixing up context window (memory for this chat) with parameters (size of the model).
  • Assuming a long window means the model reads every detail equally well.
  • Believing the model is being trained by your conversation.

Check yourself · 2 of 3

In AI tools, what is a token?

Choose one answer

Check yourself · 3 of 3

A product page lists a model as "70B." What does the 70B describe?

Choose one answer

Practice items, not counted towards your mastery.

Start here