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
66f7336c
Commit
66f7336c
authored
Mar 25, 2025
by
dongcl
Browse files
bug fix
parent
65f7a409
Pipeline
#2576
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/core/models/gpt/gpt_model.py
megatron/core/models/gpt/gpt_model.py
+1
-1
No files found.
megatron/core/models/gpt/gpt_model.py
View file @
66f7336c
...
@@ -174,7 +174,7 @@ class GPTModel(LanguageModule):
...
@@ -174,7 +174,7 @@ class GPTModel(LanguageModule):
# add mtp
# add mtp
self
.
mtp_spec
:
ModuleSpec
=
mtp_spec
self
.
mtp_spec
:
ModuleSpec
=
mtp_spec
self
.
num_nextn_predict_layers
=
num_nextn_predict_layers
self
.
num_nextn_predict_layers
=
num_nextn_predict_layers
self
.
share_mtp_embedding_and_output_weight
=
share_mtp_embedding_and_output_weight
self
.
share_mtp_embedding_and_output_weight
=
share_mtp_embedding_and_output_weight
and
self
.
num_nextn_predict_layers
>
0
self
.
recompute_mtp_norm
=
recompute_mtp_norm
self
.
recompute_mtp_norm
=
recompute_mtp_norm
self
.
recompute_mtp_layer
=
recompute_mtp_layer
self
.
recompute_mtp_layer
=
recompute_mtp_layer
self
.
mtp_loss_scale
=
mtp_loss_scale
self
.
mtp_loss_scale
=
mtp_loss_scale
...
...
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