<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>KV Cache on Rik Kisnah - Blog</title><link>https://www.rik-kisnah.ai/tags/kv-cache/</link><description>Recent content in KV Cache on Rik Kisnah - Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 15 Apr 2025 09:00:00 -0700</lastBuildDate><atom:link href="https://www.rik-kisnah.ai/tags/kv-cache/feed.xml" rel="self" type="application/rss+xml"/><item><title>Continuous Batching for Inference</title><link>https://www.rik-kisnah.ai/teach/gpu-ai/continuous-batching-for-inference/</link><pubDate>Tue, 15 Apr 2025 09:00:00 -0700</pubDate><guid>https://www.rik-kisnah.ai/teach/gpu-ai/continuous-batching-for-inference/</guid><description>Generating text is one token at a time, and one token uses a fraction of the GPU. So you serve many conversations at once and swap them in and out as they finish, every single step. This is why a serving engine is not just &amp;lsquo;call the model in a loop&amp;rsquo;.</description></item><item><title>Size the KV Cache</title><link>https://www.rik-kisnah.ai/teach/gpu-ai/size-the-kv-cache/</link><pubDate>Tue, 18 Feb 2025 09:00:00 -0800</pubDate><guid>https://www.rik-kisnah.ai/teach/gpu-ai/size-the-kv-cache/</guid><description>The model has to remember every word said so far, for every user, for every layer. That memory is the KV cache. Six numbers multiplied together tell you how many users one GPU can serve. Do the multiplication before you buy the GPUs.</description></item></channel></rss>