40/42
Part 6 of 6 · Follow-upsLearn and do
Multi-query and grouped-query attention shrink the KV cache
The last follow-up is about generating text, one token at a time.
Grouped-query attention with 8 query heads and 2 key/value heads. How many query heads share each key/value head?
Pick an answer above to see the rest
H = 32 and d = 128. Grouped-query attention keeps 8 key/value heads. How much smaller is its cache than multi-head's?
Pick an answer above to see the rest
Which call turns the KV head numbers [0, 1] into [0, 0, 0, 0, 1, 1, 1, 1]?
Pick an answer above to see the rest