Skip to content

Tokens Counted

You'll find out what a token is, count them in your own writing, then overfill a model's memory until it forgets the start of the conversation.

About

Models don't read words, they read tokens, and the context window is a fixed number of them. Nobody tells beginners that the window is the model's whole memory. Once you overfill it, the start of the conversation is simply gone, and the model will cheerfully carry on as if it remembered. An evening with a tokenizer tool and a long text makes this concrete. In English a token is roughly three quarters of a word, so a printed page is around 500 tokens, and a small local model often has a window of 4,000 to 32,000 tokens, which is less than it sounds.

At a glance

Per requirement
15 XP
Completion bonus
75 XP
Requirements
5
Takes
One evening
Skill level
Novice (never tried it)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
On your own

Requirements

  1. 1
    Count the tokens in three pieces of your own writing. Use the tokenizer that ships with your runner or a free tokenizer web page. Paste in a text message, an email and a page of something longer. Note the word count next to the token count for each. Take a screenshot of the three pairs. Photo
  2. 2
    Find five words or strings that split into surprising tokens. Try your own name, a long URL, a word in another language, a number with many digits and a line of code. Some will cost five or six tokens for one word. Take a screenshot of the splits with the token boundaries highlighted. Photo
  3. 3
    Find the context window your runner actually uses and work out how many pages fit. Look up the context length of the model you run locally, then check what your runner has set, because the two are often different. Some runners default to a few thousand tokens no matter what the model can take, and that smaller number is the one that counts. Divide it by about 500 to get pages. Write both numbers on a card with the model's name and take a photo. Photo
  4. 4
    Hide a fact early, overfill the window, and watch the model lose it. Tell the model a made-up fact in the first message, such as the password is heron. Then paste in enough text to go past the window, which a long public domain book chapter will do, and ask for the password. Film the question and the wrong or missing answer. If your runner refuses the paste instead of quietly trimming it, film the refusal, since that's the window too. Video
  5. 5
    Repeat the test under the limit and show the difference. Start fresh, give the same fact, paste in half as much text so you stay inside the window, and ask again. This time it should answer. Take a screenshot of both results side by side, and write one line in your post about what this means for pasting long documents into a chat. Photo