Distributed and Federated Training

2 min
  1. What is the global batch for 8 workers with batch 32 and no accumulation?
  2. What is an all-reduce of gradients for?
  3. Why does the scheduler depend on the number of workers?
  4. What key difference separates DDP and federated learning?
  5. [E] What control validates a distributed run?

Answers. 1. 256. 2. To give the same aggregated gradient to the replicas. 3. The number of updates or the global batch may change. 4. Federated clients are separate, partial and often non-IID. 5. A single-worker comparison on equivalent data and global batch.

Activity — Single-worker equivalence

Compute the global batch for 8 workers, local batch 32 and accumulation 2. Then write a test comparing a single-worker and distributed update on the same data. Success: explained numerical gap, seeds and sampling order recorded.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Modern Deep Dives” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one