Universal Grouped-Query Attention for Faster Inference

Llama 3 integrates Grouped-Query Attention (GQA) across all its model sizes (8B and 70B), a significant upgrade from Llama 2, where GQA was only applied to larger variants. This architectural enhancement drastically reduces KV cache memory usage and improves inference efficiency, enabling faster processing and longer context windows.

Sources

Open the full topic