Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
716da5d8
Commit
716da5d8
authored
Apr 05, 2023
by
MaximumEntropy
Browse files
Fix mpu init
Signed-off-by:
MaximumEntropy
<
sandeep.subramanian.1@umontreal.ca
>
parent
0f6bfdeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
megatron/initialize.py
megatron/initialize.py
+1
-2
No files found.
megatron/initialize.py
View file @
716da5d8
...
...
@@ -185,8 +185,7 @@ def _initialize_distributed():
mpu
.
initialize_model_parallel
(
args
.
tensor_model_parallel_size
,
args
.
pipeline_model_parallel_size
,
args
.
virtual_pipeline_model_parallel_size
,
args
.
pipeline_model_parallel_split_rank
,
args
.
untie_embeddings_and_output_weights
)
args
.
pipeline_model_parallel_split_rank
)
if
args
.
rank
==
0
:
print
(
f
'> initialized tensor model parallel with size '
f
'
{
mpu
.
get_tensor_model_parallel_world_size
()
}
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment