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
c4ea7127
Commit
c4ea7127
authored
Jan 23, 2025
by
wxj
Browse files
Update pretrain_gpt.py 添加全量编译
parent
c1c977c9
Pipeline
#2288
passed with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pretrain_gpt.py
pretrain_gpt.py
+1
-1
No files found.
pretrain_gpt.py
View file @
c4ea7127
...
@@ -128,7 +128,7 @@ def model_provider(pre_process=True, post_process=True) -> Union[GPTModel, megat
...
@@ -128,7 +128,7 @@ def model_provider(pre_process=True, post_process=True) -> Union[GPTModel, megat
rotary_base
=
args
.
rotary_base
,
rotary_base
=
args
.
rotary_base
,
rope_scaling
=
args
.
use_rope_scaling
rope_scaling
=
args
.
use_rope_scaling
)
)
#
model = torch.compile(model,mode='max-autotune-no-cudagraphs')
model
=
torch
.
compile
(
model
,
mode
=
'max-autotune-no-cudagraphs'
)
print_rank_0
(
model
)
print_rank_0
(
model
)
return
model
return
model
...
...
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