General question bank Round 1
AI Infra first-round interview
Real AI Infra first-round interview questions covering operator optimization and related topics
Operator optimization
- Explain the basic idea of the Roofline model. How do you use it to tell whether an operator has hit a compute bottleneck?
- When you double the number of GPUs used for training or inference, which parts of the system are most likely to become bottlenecks? Analyze why, and outline how you would optimize or mitigate them.
- Is GEMM always a compute-bound operator? If you need to optimize it, what is the overall approach?
- During performance tuning, how do you find and verify bottlenecks? Which methods or tools do you usually use?
- Explain your understanding of FlashAttention.
- In C++, if an out-of-bounds array write corrupts other data structures and you still have a coredump, how do you investigate?
- Coding: hand-write an Attention module that includes GQA (Grouped Query Attention).