Asked about Getting the most from the hardware

Is LLM inference compute-bound or memory-bound?

An answer that works

Generating one token at a time is typically memory-bound, since each step reads all the weights to do comparatively little arithmetic. Batching many requests together is the main way to make it efficient.

Reading an answer is not being able to give one. The section that teaches this is Getting the most from the hardware, 4 hours of GPUs & accelerators.

Learn this properly