What does each ZeRO stage communicate?

MediumConcept15 minRERSMLEPro outline

The question

Explain what ZeRO stages 1, 2 and 3 shard, and how communication changes compared with plain data parallel training.

What the interviewer is looking for

  • Stage 1 shards optimizer states
  • Stage 2 adds gradients via reduce-scatter
  • Stage 3 adds parameters with all-gathers in forward and backward
  • Gives the rough volume compared with all-reduce

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Baidu ERNIE question type: DeepSpeed communication at each ZeRO stage.

Reported in: nowcoder.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Baidu ERNIE question.