Tensor and data parallelism and MoE token dispatch
HardConcept25 minMLEREPro outline
The question
Explain tensor parallelism and data parallelism and what each communicates. Then explain how tokens are dispatched to experts in an MoE layer and how you would implement it efficiently.
What the interviewer is looking for
- Tensor parallel splits matrices with all-reduce or gather
- Data parallel replicates and all-reduces gradients
- MoE dispatch: route, sort by expert, all-to-all, compute, combine
- Capacity and padding choices
- Memory layout for efficient kernels
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Zhipu AI (Z.ai) question type: infra round: tensor and data parallelism, scheduling, KV cache, MoE dispatch in C++.
Reported in: keepkeen.github.io
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Zhipu AI (Z.ai) question.