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
6b50a8c6
Commit
6b50a8c6
authored
Apr 03, 2023
by
Jimmy Zhang
Browse files
assertion check for T5 and untied embeddings
parent
18b26ec6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
megatron/model/language_model.py
megatron/model/language_model.py
+1
-0
No files found.
megatron/model/language_model.py
View file @
6b50a8c6
...
...
@@ -328,6 +328,7 @@ class TransformerLanguageModel(MegatronModule):
post_process
=
True
):
args
=
get_args
()
# TODO: passing share_word_embeddings=False will not work correctly for T5 and embeddings will not be synced. Fix later for T5.
if
args
.
untie_embeddings_and_output_weights
:
assert
not
add_decoder
super
(
TransformerLanguageModel
,
self
).
__init__
(
share_word_embeddings
=
not
args
.
untie_embeddings_and_output_weights
)
self
.
pre_process
=
pre_process
...
...
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