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
35cb3cc1
Commit
35cb3cc1
authored
Jan 16, 2025
by
silencealiang
Browse files
Update jit.py
parent
a0e873f8
Pipeline
#2223
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
megatron/core/jit.py
megatron/core/jit.py
+2
-2
No files found.
megatron/core/jit.py
View file @
35cb3cc1
...
...
@@ -7,7 +7,7 @@ from megatron.core.utils import is_torch_min_version
jit_fuser
=
torch
.
jit
.
script
# nvFuser is deprecated in PyTorch JIT starting from 2.2
if
is_torch_min_version
(
"2.2.0a0"
):
jit_fuser
=
torch
.
compile
jit_fuser
=
torch
.
compile
(
mode
=
'max-autotune-no-cudagraphs'
)
# Decorator to disable Torch Dynamo
# See: https://github.com/NVIDIA/TransformerEngine/issues/308
...
...
@@ -21,4 +21,4 @@ if torch.__version__ >= "2":
)
else
:
# no "recursive" option in pyTorch 2.0 - it acts as if recursive was True
no_torch_dynamo
=
lambda
recursive
=
True
:
torch
.
_dynamo
.
disable
\ No newline at end of file
no_torch_dynamo
=
lambda
recursive
=
True
:
torch
.
_dynamo
.
disable
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