<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Memory on Rik Kisnah - Blog</title><link>https://www.rik-kisnah.ai/tags/memory/</link><description>Recent content in Memory on Rik Kisnah - Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 18 Feb 2025 09:00:00 -0800</lastBuildDate><atom:link href="https://www.rik-kisnah.ai/tags/memory/feed.xml" rel="self" type="application/rss+xml"/><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><item><title>The GPU Memory Hierarchy</title><link>https://www.rik-kisnah.ai/teach/gpu-ai/gpu-memory-hierarchy/</link><pubDate>Tue, 12 Nov 2019 09:00:00 -0800</pubDate><guid>https://www.rik-kisnah.ai/teach/gpu-ai/gpu-memory-hierarchy/</guid><description>Registers, shared memory, HBM, then the CPU across the bus. Each level is bigger and slower than the last by a lot. Most slow GPU code is fast GPU code waiting for the wrong level.</description></item></channel></rss>