Communication volume for All-Reduce, Reduce-Scatter and All-Gather
MediumConcept20 minSWEMLEPro outline
The question
How much data does each GPU send in a ring All-Reduce, Reduce-Scatter and All-Gather? How does it change between TP=2 and TP=4, and how would you tell that communication is your bottleneck?
What the interviewer is looking for
- Gives about 2(N-1)/N x size for ring All-Reduce
- Gives (N-1)/N x size for Reduce-Scatter and All-Gather
- Explains All-Reduce as Reduce-Scatter plus All-Gather
- Uses profiling to spot comm bottlenecks
- Mentions NVLink versus network bandwidth
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Tencent Hunyuan question type: communication volume for All-Reduce, Reduce-Scatter and All-Gather at TP 2 versus TP 4.
Reported in: mj.mianlingai.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Tencent Hunyuan question.