10/30
Part 3 of 7 · The batch tradeLearn
Move the batch and watch which limit binds
Try the trade on the shop's GPU.
H100 SXM memory, 80 GB
weights 15.2 GBKV cache 7.3 GBfree 47.4 GBkept back 10 GB
One decode step takes the longer of the two
reading memory
6.73 ms
arithmetic at 50% of peak
1.97 ms
- Step
- 6.7 ms
- Each user
- 148 tok/s
- All users
- 9,504 tok/s
- Fit in memory
- 477
Qwen2.5-7B-Instruct on one H100 SXM. Each step reads the 15.2 GB of weights once for all 64 sequences, plus each sequence's 115 MB cache, so reading memory sets the step at 6.7 ms.
Slide the batch to the right at 2,000 tokens, and the KV cache bar grows until it meets the reserve at 477. Each user's speed falls slowly while the total climbs. Then switch to 32,000 tokens: 29 conversations fill the same memory, and the total tops out near 1,400 tokens a second.