In this article, we will learn how LLMs use memory, how it gets expensive, and how to fix it.