deepspeedai / deepspeedai/DeepSpeed

[REQUEST] ZeRO - introduce replicas to keep GBS from getting too large on hundres of gpus

Open
#5,114 4 comments 0 reactions 1 assignee View on GitHub

@samadejacobs is already working on this.

Since Feb 12, 2024.

enhancement
Dominant language
Python
Stars
43.1k
Forks
5k
Avg merge
4d 15h
Merged PRs (30d)
112

Description

Currently the GBS blows up to thousands if MBS is more than 1, which is counter-productive to training. And as clusters become larger and the training needs to happen faster this is becoming more and more of an issue.

e.g. take 512 gpus and MBS=16 - you end up with GBS of 8192 since GBS=MBS*N_GPUs

Possible solutions:

  1. Repurpose Sequence Parallelism as Tensor Parallelism - so that the replica size is smaller
  2. Introduce the concept of replicas - along the lines of ZeRO++ hybrid solution, except instead of taking advantage of local intra-node, it'd keep a replica to user's size - this of course will introduce an additional overhead of syncing replicas, but perhaps it could be mitigated by doing those syncs infrequently?

And surely one could think of other solution.

@tjruwase

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.