deepspeedai / deepspeedai/DeepSpeed
[REQUEST] ZeRO - introduce replicas to keep GBS from getting too large on hundres of gpus
Open
@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:
- Repurpose Sequence Parallelism as Tensor Parallelism - so that the replica size is smaller
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.