Exchange
One request, step by step
1 file1 KB
A look inside
The first lines of what-happens-when-you-press-send.md. The whole file is in your library once you get it.
# One request, step by step A free card from MenFem's Inference 101, lesson 1: What happens when you press send. The lesson, with the picture and the examples: https://menfem.com/courses/inference-101/what-happens-when-you-press-send This is what you keep: the trip on one card, and the rule for a reply that feels slow. 1. Your words are cut into tokens: short pieces of text. You are billed by the token. 2. The request goes to a GPU in a data centre, where the model sits in memory. 3. Reading your prompt (prefill) happens all at once. A long prompt means a longer wait for the first word. 4. Writing the answer (decode) happens one token at a time, and each token means reading the whole model from memory. 5. The answer streams back as it is written, so you read while it writes. **The rule:** A long prompt slows the first word. A long answer slows the last. Cut whichever you do not need. ## Used once From the lesson, on a made-up shop: "Your bill counts the product name "Harris Tweed" as more than one token." Answer: Into tokens. Tokens are pieces of words, not whole words. Two words are at least two tokens, and a rarer word can be cut into several pieces. ## 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
- what-happens-when-you-press-send.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 1 (What happens when you press send), 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.