LLM inference is memory-bounded primarily due to the size of the models and the data they process. Each layer of the model requires storing activations and gradients, which can quickly consume available memory, especially with large inputs.
Additionally, the need for batch processing during inference increases memory requirements. Efficient memory management becomes crucial to avoid out-of-memory errors and maintain performance.