InayofuataMwongozo unaofuata
Umakini wa Maswali mengi
Lugha AI
Lugha AI MWONGOZO
Grouped-Query Attention (GQA) shares key/value heads across groups of query heads.
Sikiliza mwongozo huuInaonyeshwa na AI · ~1 min
The original GQA paper studies this as a tradeoff between multi-head and multi-query attention for decoder inference.
The GQA paper proposes grouping query heads so multiple query heads share key/value heads. MHA has one key/value head per query head; MQA shares a single key/value head across all queries; GQA lies between them. The paper evaluates GQA on language modeling and machine translation tasks and reports quality closer to MHA with inference speed closer to MQA in its experiments. It also reports uptraining existing MHA models using about 5% of original pretraining compute. These claims are limited to the paper’s models, tasks and setup.
Comparing MHA, GQA and MQA head sharing.
Estimating KV-cache size from the number of query heads and key/value groups.
Reading the paper’s reported quality/speed tradeoff on evaluated language-model tasks.
Reviewing the paper’s uptraining recipe for converting an MHA checkpoint to GQA.
Benchmark head-sharing choices on the target model and hardware. The original paper’s quality/speed results do not establish universal serving speedups or negligible quality loss across all systems.
Jarida halali
Hadithi tatu za AI zilizothibitishwa kila asubuhi ya wiki, zimetengenezwa kwa Kiingereza rahisi. Bila malipo daima, hakuna matangazo.
Barua pepe moja kila siku ya wiki. Jiondoe kwa bonyeza moja. Hatutauza au kushiriki anwani yako.
Jijaribu mwenyewe
Maoni ya haraka juu ya kila jibu, na cheti kinachoweza kushirikishwa na kitambulisho kinachoweza kuthibitishwa baada ya kupita kozi.
Changia elimu ya AI bila malipo. AI Understanding ni 501(c)(3) isiyo na faida — hakuna matangazo, hakuna kizuizi cha malipo, daima. Toa mchango
Grouped-Query Attention (GQA) shares key/value heads across groups of query heads. The original GQA paper studies this as a tradeoff between multi-head and multi-query attention for decoder inference.
GQA huweka vichwa tofauti vya hoja lakini huruhusu kila kikundi kishiriki seti moja ya vichwa vya vitufe na thamani, ikipunguza akiba ya KV.
Vichwa vingi humpa kila kichwa KV yake; swala nyingi hushiriki KV moja kwa vichwa vyote; GQA inakaa katikati na vikundi vichache vya KV.
Akiba huonekana wakati wa kizazi, ambapo kusoma kache ya KV ndio gharama kuu ya kumbukumbu-bandwidth.
Vichwa vya hoja 32 vilivyogawanywa na vikundi 8 vya KV vilivyoshirikiwa vinapunguza takriban mara nne kwa vitufe na thamani zilizoakibishwa.
The GQA paper reports quality closer to multi-head attention (MHA) with inference speed closer to multi-query attention (MQA) in its evaluated tasks. This is an empirical result, not a universal guarantee.
Endelea kujifunza
Miongozo zaidi imechaguliwa kwa mada hii
InayofuataMwongozo unaofuata
Umakini wa Maswali mengi
Lugha AI