Skip to main content
T0 Big tech ByteDance Internship Rounds 1-3

ByteDance AI Infra internship rounds 1-3

ByteDance AI Infra internship rounds 1-3 interview questions covering inference optimization, training optimization, and operator optimization

Inference optimization Training optimization Operator optimization

First round

Project experience

  1. Introduce your work related to Efficient Transformer.

Fundamentals

  1. What three parts make up each CPU cache line, and what does each do?
  2. Why design multi-level caches?
  3. After a cache miss, what does the hardware do?
  4. What performance costs does the page table introduce, and how do you mitigate them?
  5. What benefits does the page table bring?
  6. How does C++ function overloading work, and how does the compiler implement it?
  7. What are atomic operations in C++, and why were they introduced?

Coding

  1. Board connectivity: decide whether the first row connects to the last row.

Second round

Project experience

  1. Dig deeper into Efficient Transformer research.

Fundamentals

  1. How do you implement a Sparse Attention Python kernel?
  2. What common parallel strategies appear in distributed large-model training?
  3. When training or inference uses too much GPU memory, what options do you have? (for example sparsification, gradient checkpointing, quantized inference, mixed precision, distillation)
  4. How do you write GPU parallel compute code?

Coding

  1. Given a full Graph class definition, implement topological sort.

Third round

Project experience

  1. What is novel about the Sparse Attention mechanism you proposed?
  2. How well do Efficient Attention, MoE, and distributed training work in industrial settings?

Fundamentals

  1. In C++ polymorphism, when are vtable function addresses fixed? When is an object’s vptr assigned?
  2. How do you free memory already allocated by a vector in C++?
  3. Design a data structure that supports all stack operations and can return the current minimum in O(1).

Coding

  1. Next permutation (LeetCode 31).