Grouped Query Attention Explained
multi query attention explained, gqa vs mqa, kv cache size reduction, attention heads sharing keys values, llm serving memory optimization
Multi-query and grouped-query attention are two ways of shrinking the KV cache itself, by making multiple attention heads share the same keys and values instead of each head…