Chip Foundry Services Request Assessment

Grouped Query Attention

Grouped-query attention (GQA) has multiple query heads actually share a smaller number of key-and-value head groups, landing at a specific middle point between multi-head attention's one-key-value-pair-per-query-head full approach and multi-query attention's single-shared-key-value-pair-for-all-query-heads most extreme approach. This specific middle-ground design is what lets GQA recover most of multi-query attention's own substantial memory-bandwidth savings during inference, while still retaining noticeably better model output quality than multi-query attention's own most extreme single-shared-KV-pair approach typically achieves on its own.