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
1e2a0405
Commit
1e2a0405
authored
Apr 05, 2023
by
Jared Casper
Browse files
Add assert in BertModel that untie_embeddings_and_output_weights is False
parent
c43d19ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
megatron/model/bert_model.py
megatron/model/bert_model.py
+3
-0
No files found.
megatron/model/bert_model.py
View file @
1e2a0405
...
...
@@ -132,6 +132,9 @@ class BertModel(MegatronModule):
super
(
BertModel
,
self
).
__init__
()
args
=
get_args
()
# TODO this option is not yet implemented in BERT
assert
args
.
untie_embeddings_and_output_weights
is
False
self
.
fp16_lm_cross_entropy
=
args
.
fp16_lm_cross_entropy
self
.
add_binary_head
=
add_binary_head
self
.
parallel_output
=
parallel_output
...
...
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