#memory
3 posts · All tags
- I have a big slab of DRAM at homemmmllm, part 1. SGLang shipped a unified radix cache for managing a big slab of GPU memory. I have a big slab of DRAM at home: a Mac mini whose CPU, GPU and Neural Engine all share it. So I built an LLM server around it, for fun.
- A bunch of matmuls fighting over 273 GB/smmmllm, part 2. Every token is a pile of matrix multiplications fighting over one memory bus. The loops an LLM server runs, why decode needs bandwidth and prefill needs math, what attention leaves behind in each 2 MiB block, and how the Neural Engine borrows the GPU's weights.
- Sharing and running ahead: a prefix cache on an async GPUmmmllm, part 3. Reusing a prompt's memory across requests, why a hybrid model's state must be copied, and how the counters stay right while the CPU runs a step ahead of the GPU.