You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] why are overlap and contiguous grads meaningless in stage 1 and are ignored #2295
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
@woolpeeker, thanks for the question. This is just an implementation restriction but not a fundamental one.
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?
Activity
[-]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[/+]tjruwase commentedon Dec 12, 2022
@woolpeeker, thanks for the question. This is just an implementation restriction but not a fundamental one.
xiaopqr commentedon Jan 6, 2023
What should we do if we want to realize the overlapping of communication and computing in Zero1?
tjruwase commentedon Jan 6, 2023
@woolpeeker, would zero stage 2 not work since it provides both features?
ShenglongZ commentedon Mar 7, 2023
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?

mayank31398 commentedon Aug 28, 2023
@tjruwase are there any plans to support overlap for ZeRO-1?
It would be nice if this support is present.
li-plus commentedon Jan 5, 2024
I removed the restrictions of
overlap_commandcontiguous_gradientsin ZeRO1 in #4887. Everything works fine for me. Didn't get reviewed yet.Release overlap_comm & contiguous_gradients restrictions for ZeRO 1 (#…
Release overlap_comm & contiguous_gradients restrictions for ZeRO 1 (d…
Release overlap_comm & contiguous_gradients restrictions for ZeRO 1 (…
Release overlap_comm & contiguous_gradients restrictions for ZeRO 1 (…