megatron.core.parallel_state#
Description
Model and data parallel groups.
Functions
Set the groups to none. |
|
Get the data parallel group the caller rank belongs to. |
|
Return my rank for the data parallel group. |
|
Calculate the global rank corresponding to the first local rank in the data parallel group. |
|
Return world size for the data parallel group. |
|
Get the embedding group the caller rank belongs to. |
|
Return the global GlobalMemoryBuffer object |
|
Get the model parallel group the caller rank belongs to. |
|
Return the global rank of the first process in the pipeline for the current tensor parallel group |
|
Get the pipeline model parallel group the caller rank belongs to. |
|
Return the global rank of the last process in the pipeline for the current tensor parallel group |
|
Return the global rank that follows the caller in the pipeline |
|
Return the global rank that preceeds the caller in the pipeline |
|
Return my rank for the pipeline model parallel group. |
|
Return world size for the pipeline model parallel group. |
|
Get the position embedding group the caller rank belongs to. |
|
Get the tensor model parallel group the caller rank belongs to. |
|
Return my rank for the tensor model parallel group. |
|
Calculate the global rank corresponding to the first local rank in the tensor model parallel group. |
|
Return world size for the tensor model parallel group. |
|
Return the virtual pipeline-parallel rank. |
|
Return the virtual pipeline-parallel world size. |
|
|
Initialize model data parallel groups. |
|
Return True if in the first pipeline model-parallel stage, False otherwise. |
|
Return True if in the last pipeline model-parallel stage, False otherwise. |
|
Return True if pipeline stage executes decoder block for a model with both encoder and decoder. |
Return true if pipeline stage executes decoder block and next stage executes encoder block for a model with both encoder and decoder. |
|
|
Return True if pipeline stage executes encoder block for a model with both encoder and decoder. |
|
Return true if current rank is in embedding group, False otherwise. |
Return true if current rank is in position embedding group, False otherwise. |
|
Check if model and data parallel groups are initialized. |
|
Set pipeline model parallel rank. |
|
Set pipeline model parallel split rank. |
|
Set the pipeline model parallel size |
|
Set tensor model parallel rank. |
|
|
Set the tensor model parallel size |
Set the virtual pipeline-parallel rank. |