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
01dffdb5
Commit
01dffdb5
authored
Oct 12, 2020
by
Vijay Korthikanti
Browse files
typo fix
parent
0bc75448
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/model/transformer.py
megatron/model/transformer.py
+1
-1
No files found.
megatron/model/transformer.py
View file @
01dffdb5
...
@@ -218,7 +218,7 @@ class ParallelSelfAttention(MegatronModule):
...
@@ -218,7 +218,7 @@ class ParallelSelfAttention(MegatronModule):
if
checkpoint_version
==
0
:
if
checkpoint_version
==
0
:
# [s, b, (3 * np * hn)] --> [s, b, (np * 3 * hn)]
# [s, b, (3 * np * hn)] --> [s, b, (np * 3 * hn)]
mixed_x_layer
=
self
.
_transpose_last_dim
(
mixed_x_layer
,
3
,
True
)
mixed_x_layer
=
self
.
_transpose_last_dim
(
mixed_x_layer
,
3
,
True
)
elif
checkpoint_version
==
1
:
elif
checkpoint_version
==
1
.0
:
# [s, b, (np * hn * 3)] --> [s, b, (np * 3 * hn)]
# [s, b, (np * hn * 3)] --> [s, b, (np * 3 * hn)]
mixed_x_layer
=
self
.
_transpose_last_dim
(
mixed_x_layer
,
3
,
False
)
mixed_x_layer
=
self
.
_transpose_last_dim
(
mixed_x_layer
,
3
,
False
)
...
...
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