Implement Grouped-Query Attention (GQA)
Company: Datadog
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: hard
Interview Round: Technical Screen
Quick Answer: This question evaluates a candidate's understanding of transformer attention mechanisms, specifically how grouped-query attention balances the memory efficiency of multi-query attention with the quality of full multi-head attention. It tests practical implementation skill with tensor reshaping, head grouping, and causal masking, a common way to probe machine learning engineering depth in system-level model design interviews.