1. 1. Words are not the unit
  2. 2. Split a sentence yourself
  3. 3. The language tax
  4. 4. Check yourself
  5. 5. What a context window is
  6. 6. Fill the window
  7. 7. Long isn't the same as read
  8. 8. Check yourself
  9. 9. Weights, not a diary
  10. 10. Memory features, honestly
  11. 11. Final check

Lesson 6 of 11 · Part 2 · Play · 3 min Draft

Fill the window

Explore the Memory fun facts and see how much computer memory a long chat really takes.

A full context window has a cost you never see. The Memory fun-facts page shows it.

Here is the idea to hold onto. As the model reads each token, it leaves itself notes about it, so later words can look back without redoing the work. Engineers call these notes the KV cache. They sit in the memory of the chips that run the model, and they grow with every token in the window.

As you read the cards, look for these:

  • How much memory a single token leaves behind in Llama 3 70B, a large open model.
  • What that adds up to for one 128,000-token chat. Compare it with the memory needed just to load the model.
  • The card where a bigger model needs less chat memory than a smaller one. How a model is built changes the size of its notes.

Then take the quiz card and guess how many tokens fit on a nearly full chip.

Open the Memory facts →

Quick check

One question to lock it in. It doesn’t count against you.

As a chat gets longer, what fills up the computer's memory?

Sources