Skip to content

question about how deepspeed overlapping the reduction of the gradients with backward computation #480

Closed

Description

@gongjingcs

deepspeed doesn't use ddp directly. in pytorch, auto grad hook is used for comm & compute overlapping. what about deepspeed? l‘m looking forward to your reply!

Activity

  1. samyam commented on Oct 30, 2020

    @samyam
    Contributor

    @gongjingcs, in DeepSpeed we use similar hooks to overlap comm and compute. We see that overlapping generally helps with larger models with billions of parameters, but not so much with smaller models, so we have support for the overlap in DeepSpeed ZeRO for supporting larger models. You can enable it sing the overlap_comm flag in DeepSpeed Config:

    image

  2. added a commit that references this issue on Apr 11, 2023
  3. self-assigned this
    on Sep 8, 2023
  4. xiexbing commented on Sep 14, 2023

    @xiexbing
    Contributor

    the software issue has been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions