Inference is a memory problem, too
A first sketch of weights, activations, and the KV cache.
Three buckets
Weights, intermediate activations, and the KV cache all compete for device memory. Serving more concurrent requests changes the balance.
Next experiment
Record memory use while varying sequence length and concurrency, one variable at a time.
Backlinks
Connections will appear here as the garden grows.
Related Notes
Explore the notes garden →