Exchange
The context-length card
1 file1 KB
A look inside
The first lines of why-long-chats-cost-more.md. The whole file is in your library once you get it.
# The context-length card A free card from MenFem's Inference 101, lesson 3: Why long chats cost more. The lesson, with the picture and the examples: https://menfem.com/courses/inference-101/why-long-chats-cost-more This is what you keep: why length costs money, on one card, and the habit that keeps it down. 1. Every turn sends the whole chat again, and you pay for it again as input. 2. Ten turns can cost several times as much as ten separate questions. 3. The model keeps notes on everything it reads (the KV cache). They grow with the chat and fill the chip's memory. 4. Long chats leave room for fewer users, which is why long context costs more to serve. 5. A repeated start can be cached and charged at a fraction of the input price. **The rule:** Put what never changes first, start fresh when a chat gets long, and send only what the next answer needs. ## Used once From the lesson, on a made-up shop: "A customer's chat runs to 40 messages. The fortieth reply is one line, and costs far more than the first." Answer: Sent in full. To write that one line, the model was sent all 39 messages before it. You paid for all of them again as input. ## Your turn Write one case from your own work here, then go down the card line by line. …and 8 more lines.
What is inside
- why-long-chats-cost-more.md1 KB
How to use it
Open it beside the job and go down the 5 lines in order, then check your answer against the rule at the bottom. It is the card from Inference 101, lesson 3 (Why long chats cost more), with one worked example from the lesson and a space for your own case.
Run before it was listed
Tested 2026-11-29: Generated from the lesson's own keep card and checked line by line against it; used once on the lesson's made-up example, which is printed in the file.