Understanding KV Cache: Why Chatbots Can Reply So Fast
When you chat with an AI like ChatGPT or Claude, the reply shows up one word at a time. Have you ever wondered how it keeps up that speed, even after...
Ideas, tools & observations
From the notebook
Sliding Window Attention: How AI Models Read Long Text Without Running Out of Memory
When you chat with an AI model like ChatGPT, Claude or Gemma, it feels like the model "remembers" everything you said. You paste a long document, ask a...
LLM Inference Optimization: What Actually Makes Your Model Fast
When you send a prompt to an LLM, three layers shape how fast you get a response: the hardware (GPUs, TPUs, LPUs), the model size and architecture, and...