Ridge point and the batch size needed to saturate
NumericalBeginner⏱ 15 minLLM Opsrooflineridge pointbatching
Problem
A GPU has peak 990 TFLOP/s in BF16 and 3.35 TB/s of memory bandwidth.
- Compute the ridge point in FLOP/byte.
- For weight-limited decoding at 2 bytes per parameter, what batch size is needed to reach it?
- Repeat for 4-bit weights (). Explain the direction of the change.
Compute the requested quantities and say what they mean. A number without an interpretation is not an answer.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Count the FLOPs of a forward pass | LLM Ops | Numerical | 15 min | ||
| Derive the attention crossover length | LLM Ops | Proof | 15 min | ||
| How many users fit on one GPU | LLM Ops | Numerical | 30 min | ||
| Single-stream decode latency floors | LLM Ops | Numerical | 30 min | ||
| Build a serving capacity calculator run | LLM Ops | Coding | 3 hours |