DeepSpeed ZeRO stages versus Megatron parallelism

HardConcept20 minREMLEPro outline

The question

Explain what each ZeRO stage shards and what it costs in communication, and how Megatron style tensor and pipeline parallelism differ. When would you combine them?

What the interviewer is looking for

  • Stage 1 optimizer state, 2 plus gradients, 3 plus parameters
  • Communication cost grows with stage 3
  • Tensor parallel splits matrices inside layers; pipeline splits layers
  • Explains bubbles and micro-batches
  • Picks a combination for a concrete setup

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported ByteDance Seed question type: LoRA initialisation and rank choice; DeepSpeed ZeRO stages; Megatron.

Reported in: nowcoder.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official ByteDance Seed question.