T0 Big tech Baidu Internship
Baidu AI Infra internship (2)
Real Baidu AI Infra internship interview questions covering inference and operator optimization
Inference optimization Operator optimization
C++ basics
- Role and use cases of the static keyword
- Different uses of the const keyword
- Memory layout of a C++ program (stack, heap, global area, code area, etc.)
- Introduce C++’s four smart pointers and when each applies
- Explain differences among C++’s four cast operators
- How do you inspect symbol information in a dynamic library (.so)?
- Can a destructor take parameters? Can it have a return value?
- Explain C++ polymorphism, focusing on runtime polymorphism and the vtable
- Can destructors and constructors be declared virtual? Explain why for each
- Explain RAII (Resource Acquisition Is Initialization) and its uses
- What does std::move do? Difference between lvalues and rvalues
Python basics
- Python’s memory-management mechanism
- Principle and usage of decorators
- When importing a module, what does the interpreter do?
Git
- Difference between git merge and git rebase
- How do you undo a commit that is already made?
Deep learning
- Describe the overall Transformer architecture
- List other large-model architectures and compare them with Transformer
- Introduce ResNet’s core idea and the role of residual connections
Other
- Basic principles of Docker containers
- Your understanding of the TVM compilation framework
- Basic methods and use cases of network quantization
Coding
- Implement Queue using Stacks (LeetCode 232)