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
ee5cd2ec
Commit
ee5cd2ec
authored
Mar 19, 2025
by
silencealiang
Browse files
Update cross_entropy.py
parent
491133b9
Pipeline
#2553
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
megatron/core/tensor_parallel/cross_entropy.py
megatron/core/tensor_parallel/cross_entropy.py
+1
-1
No files found.
megatron/core/tensor_parallel/cross_entropy.py
View file @
ee5cd2ec
...
...
@@ -120,8 +120,8 @@ class VocabParallelCrossEntropy:
class
_VocabParallelCrossEntropy
(
torch
.
autograd
.
Function
):
@
torch
.
compile
(
mode
=
'max-autotune-no-cudagraphs'
)
@
staticmethod
@
torch
.
compile
(
mode
=
'max-autotune-no-cudagraphs'
)
def
forward
(
ctx
,
vocab_parallel_logits
,
target
,
label_smoothing
=
0.0
):
"""Vocab parallel cross entropy forward function."""
...
...
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