T5 Others Nanhu Laboratory Round 1
Nanhu Research Institute AI Infra first round
Nanhu Research Institute AI Infra first-round interview questions covering operator optimization
Operator optimization
The following topics were covered in the Nanhu Research Institute AI Infra first-round interview.
C++/Python fundamentals
- How does Python garbage collection work?
- How does Python GC handle cyclic references (mark-and-sweep)?
- When can function inlining hurt performance?
- How does the
inlinekeyword affect scope? - Besides
inline, what else can trigger inlining (for example template functions)? - What is perfect forwarding, and how is it implemented?
- What do rvalue references mean, and where are they used?
AI frameworks and CUDA
- What are the core features of FasterTransformer?
- Overview of common AI inference/training frameworks
- Common mechanisms for thread synchronization
- Requirements for using CUDA streams (for example overlapping device-side work)
- Common methods for CUDA operator performance tuning
Engineering practice
- Git workflow for multi-person collaboration
Coding
- Implement a smart pointer
- Find the top-K largest elements in an array