MQA's Evolution: Paving the Way for Grouped-Query Attention (GQA)

MQA served as a crucial stepping stone for Grouped-Query Attention (GQA), which acts as a hybrid between MQA and traditional Multi-Head Attention (MHA). GQA uses an intermediate number of KV heads, balancing MHA's quality with MQA's efficiency, and is now widely adopted in models like LLaMA, Mistral, and Gemma.

Sources

Open the full topic