One Decode Step, Counted in Bytes
The vLLM paper works out the KV cache of a 13B OPT model at 800 KB per token: 2 (key and value) x 5,120 (hidden size) x 40 (layers) x 2 bytes (fp16).
A request on that model already has 2,000 tokens cached and is about to generate token 2,001. Counting only KV-cache traffic for this single decode step, how much is read and how much is written?
Sign in to answer questions and track your progress
Sign In