forked from NVIDIA/Megatron-LM
-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alias core.parallel_state as mpu and use it throughout code. RIP mpu.
- Loading branch information
1 parent
c2ea914
commit 5942af9
Showing
63 changed files
with
273 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
from .parallel_state import ( | ||
initialize_model_parallel, | ||
get_tensor_model_parallel_world_size, | ||
get_tensor_model_parallel_rank, | ||
get_pipeline_model_parallel_world_size, | ||
get_pipeline_model_parallel_rank, | ||
get_virtual_pipeline_model_parallel_rank, set_virtual_pipeline_model_parallel_rank, | ||
get_data_parallel_world_size, | ||
get_data_parallel_rank, | ||
get_global_memory_buffer, | ||
get_num_layers, | ||
) | ||
from megatron.core import tensor_parallel | ||
import megatron.core.parallel_state | ||
import megatron.core.tensor_parallel | ||
import megatron.core.utils | ||
|
||
# Alias parallel_state as mpu, its legacy name | ||
mpu = parallel_state | ||
|
||
__all__ = [ | ||
"parallel_state", | ||
"tensor_parallel", | ||
"utils", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.