LESSON 34.01 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Cost per token
Watch a GPU's hourly price turn into the price of one token.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 34.01 · COST CALCULATORSTEP 5.86 MS · 5,463 TOKENS/S · 77% EFFICIENT
01
Stage 1 of 6 · Decode step
One decode step reads all 15.01 GB of weights once. A batch of 32 shares that read.
Explain it simply
Each bar is one decode step on the H100. The ochre part reads the weights, and the teal part reads each request's KV cache. The weight read is the same for 1 request or 32. So a batch of 32 writes 5,463 tokens a second, 77% of 32 times one request's speed.
Three bars, one per batch size. At batch 32 a step takes 5.86 ms and the GPU writes 5,463 tokens per second.
prompt tokens, busy GPUsweights, GPUs, pricesoutput tokens, cost per tokenidle, restarts, latency targetdashed box: time the cache saves; dashed lines are labelled
Toy: a help chat, 2.7M requests a day, 8B model, toy prices
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A step reads the weights once and each request's KV cache.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.