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
0f6bfdeb
Commit
0f6bfdeb
authored
Feb 06, 2023
by
Sandeep Subramanian
Committed by
Jimmy Zhang
Apr 04, 2023
Browse files
Fix output layer init func when untie embeddings is True
parent
a9f6569d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/model/language_model.py
megatron/model/language_model.py
+1
-1
No files found.
megatron/model/language_model.py
View file @
0f6bfdeb
...
@@ -416,7 +416,7 @@ class TransformerLanguageModel(MegatronModule):
...
@@ -416,7 +416,7 @@ class TransformerLanguageModel(MegatronModule):
args
.
hidden_size
,
args
.
hidden_size
,
args
.
padded_vocab_size
,
args
.
padded_vocab_size
,
bias
=
False
,
# Setting bias to False always to keep it consistent with embedding tying that also does not have a bias.
bias
=
False
,
# Setting bias to False always to keep it consistent with embedding tying that also does not have a bias.
init_method
=
output_layer_
init_method
)
init_method
=
self
.
init_method
)
self
.
_output_layer_key
=
'output_layer'
self
.
_output_layer_key
=
'output_layer'
def
set_input_tensor
(
self
,
input_tensor
):
def
set_input_tensor
(
self
,
input_tensor
):
...
...
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