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
a02a5490
Commit
a02a5490
authored
Mar 10, 2025
by
silencealiang
Browse files
减少cpu侧开销
parent
1310cbf8
Pipeline
#2463
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/transformer/moe/moe_utils.py
megatron/core/transformer/moe/moe_utils.py
+1
-1
No files found.
megatron/core/transformer/moe/moe_utils.py
View file @
a02a5490
...
@@ -312,7 +312,7 @@ def device_limited_topk(
...
@@ -312,7 +312,7 @@ def device_limited_topk(
return
probs
,
top_indices
return
probs
,
top_indices
@
torch
.
compile
(
options
=
{
"triton.cudagraphs"
:
True
,
"triton.cudagraph_trees"
:
False
})
def
topk_softmax_with_capacity
(
def
topk_softmax_with_capacity
(
logits
:
torch
.
Tensor
,
logits
:
torch
.
Tensor
,
topk
:
int
,
topk
:
int
,
...
...
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