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
ColossalAI
Commits
7a065dc9
Unverified
Commit
7a065dc9
authored
Jul 25, 2022
by
HELSON
Committed by
GitHub
Jul 25, 2022
Browse files
[hotfix] fix megatron_init in test_gpt2.py (#1357)
parent
644582ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_tensor/model/test_gpt2.py
tests/test_tensor/model/test_gpt2.py
+1
-1
No files found.
tests/test_tensor/model/test_gpt2.py
View file @
7a065dc9
...
@@ -56,7 +56,7 @@ def init_megatron_spec(model, pg: ProcessGroup):
...
@@ -56,7 +56,7 @@ def init_megatron_spec(model, pg: ProcessGroup):
elif
'wte'
in
mn
or
'wpe'
in
mn
:
elif
'wte'
in
mn
or
'wpe'
in
mn
:
assert
'weight'
in
pn
assert
'weight'
in
pn
split_param_col_tp1d
(
param
,
pg
)
split_param_col_tp1d
(
param
,
pg
)
elif
'c_
fc
'
in
mn
or
'c_proj'
in
mn
:
elif
'c_
attn
'
in
mn
or
'c_proj'
in
mn
:
split_param_col_tp1d
(
param
,
pg
)
split_param_col_tp1d
(
param
,
pg
)
# debug_print([0], '\t', param.compute_spec, param.shape)
# debug_print([0], '\t', param.compute_spec, param.shape)
...
...
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