Tiktok · Onsite
In process3 Rounds TikTok AI Infra Internship Interviews
AI infrastructure engineer · InternshipMaster's degreeApr 2026
Shared by· 4 days ago
First Round
Project Experience
- Introduce the research work on Efficient Transformers and explain the main contributions.
Fundamentals
- What are the three main components of a CPU cache line, and what does each component do?
- Why do modern CPUs use multiple levels of cache?
- What happens at the hardware level when a cache miss occurs?
- What performance overhead does the page table mechanism introduce, and how can it be reduced?
- What are the benefits of using page tables / virtual memory?
- How does function overloading in C++ work, and how does the compiler implement it?
- What are atomic operations in C++, and why are they needed?
Coding
- Board Connectivity: Given a board, determine whether there is a connected path from the first row to the last row.
Second Round
Project Experience
- Deep dive into the research on Efficient Transformers, including the approach, implementation, and key findings.
Fundamentals
- How would a Sparse Attention kernel be implemented in Python?
- What are the common parallelism strategies for distributed training of large models?
- How can high GPU memory usage during model training and inference be reduced? Discuss approaches such as sparsification, gradient checkpointing, quantization, mixed-precision training, and knowledge distillation.
- How would GPU parallel computing code be written and implemented?
Coding
- Given a complete
Graphclass, implement topological sort.
Third Round
Project Experience
- Explain the key innovations behind the proposed Sparse Attention mechanism.
- How effective are techniques such as Efficient Attention, Mixture of Experts (MoE), and distributed training in real-world production systems?
Fundamentals
- In C++ polymorphism, when are the function addresses in a virtual function table (vtable) determined? When is an object's virtual table pointer (vptr) initialized?
- How can the memory allocated by a C++
vectorbe released? - Design a stack that supports all standard stack operations and can also return the current minimum element in O(1) time.
Coding
- Next Permutation — LeetCode 31
0 total reactions. Your reactions: none.
0 comments
Comments
0No comments yet — be the first to share what you know.