19/26
Part 4 of 4 · Prefill, decode and memoryLearn and do

How much memory the cache takes

The cache saves compute, and it costs memory.

Predict

Llama 3 8B keeps a key and a value, in 32 layers, for 8 key/value heads of 128 numbers, at 2 bytes a number. How much cache does one token take?

Pick an answer above to see the rest