[QUESTION]Create the pp groups when enable context_parallel_size > 1 and encoder_tensor_parallel_size != tensor_parallel_size
#1087
Replies: 1 comment
-
|
This is a subtle but important point about how parallel group construction changes when context parallelism (CP) is introduced alongside mismatched encoder/decoder tensor parallel sizes. You are correct to question the use of: zip(cycle(e_ranks), d_ranks)because it implicitly assumes a many-to-one or uneven mapping pattern that breaks under CP symmetry constraints. 1. What changes when
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Your question
I have a quesstion about create the
ppgroups when enablecontext_parallel_size > 1andencoder_tensor_parallel_size != tensor_parallel_size.When enabling
context_parallel, the input will be splited symmetrically in order to balance calculation. Usingzip(cycle(e_ranks), d_ranks)is not right.Megatron-LM/megatron/core/parallel_state.py
Line 602 in 4ff9e66
Beta Was this translation helpful? Give feedback.
All reactions