Skip to content

[Question] why are overlap and contiguous grads meaningless in stage 1 and are ignored #2295

Open

Activity

  1. changed the title [-]Question: why are overlap and contiguous grads meaningless in stage 1 and are ignored[/-] [+][Question] why are overlap and contiguous grads meaningless in stage 1 and are ignored[/+] on Sep 7, 2022
  2. added
    user-question
    on Oct 21, 2022
  3. tjruwase commented on Dec 12, 2022

    @tjruwase
    Contributor

    @woolpeeker, thanks for the question. This is just an implementation restriction but not a fundamental one.

  4. xiaopqr commented on Jan 6, 2023

    @xiaopqr

    @woolpeeker, thanks for the question. This is just an implementation restriction but not a fundamental one.

    What should we do if we want to realize the overlapping of communication and computing in Zero1?

  5. tjruwase commented on Jan 6, 2023

    @tjruwase
    Contributor

    @woolpeeker, would zero stage 2 not work since it provides both features?

  6. ShenglongZ commented on Mar 7, 2023

    @ShenglongZ

    @woolpeeker, thanks for the question. This is just an implementation restriction but not a fundamental one.
    image

    I noticed that in the DeepspeedEngine, overlap_comm is forced to be False when partitioning optimizer_states. However, if I set it True, there are no error occurred during training. By profiling with nsight sys, allreduce kernel does overlap with computational kernels as shown.

    I's wondering what is the specific restriction? Is there any walk around?
    image

  7. mayank31398 commented on Aug 28, 2023

    @mayank31398
    Contributor

    @tjruwase are there any plans to support overlap for ZeRO-1?
    It would be nice if this support is present.

  8. li-plus commented on Jan 5, 2024

    @li-plus
    Contributor

    I removed the restrictions of overlap_comm and contiguous_gradients in ZeRO1 in #4887. Everything works fine for me. Didn't get reviewed yet.

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

Metadata

Metadata

Assignees

Labels

traininguser-question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions