-
Notifications
You must be signed in to change notification settings - Fork 656
[ascend]suppot ep #3696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[ascend]suppot ep #3696
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
93dccc7
[ascend]suppot deepseek eager_mode
yao-fengchen 70cb6ab
fix flash_mla_available on ascend
yao-fengchen 1bb548b
modify for dp_ep
yao-fengchen 5f47d92
backup code
yao-fengchen cdeb30c
run tp ep
yao-fengchen c91aea8
format code
yao-fengchen 0879001
add dp tp
yao-fengchen f17f231
move DlinferDistContext into dlinfer
yao-fengchen 760c0db
fix get_max_tokens_across_dp in tp case
yao-fengchen 73ebda1
format code
yao-fengchen 86d00eb
fix grpah_mode dp
yao-fengchen a376b4b
merge main
yao-fengchen 35a60da
add mlpmetada
yao-fengchen 8980ba9
good eager mode
yao-fengchen a4f003b
good graph mode
yao-fengchen 74997d3
good dp*tp+ep feature
yao-fengchen 4004466
fix tp err
yao-fengchen 1166d22
update pad_size
yao-fengchen fec438f
optimize ep moe
yao-fengchen d7177a1
opt ep moe
yao-fengchen 1d3325e
fix ascend dptp
yao-fengchen b1f94e4
refactor code
yao-fengchen 2f77108
refactor code
yao-fengchen 07eaf3f
remove useless code
yao-fengchen 41613f2
Merge remote-tracking branch 'origin/main' into support_ds_eager
yao-fengchen 700db7d
update code
yao-fengchen 6a957ff
update code
yao-fengchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| # Copyright (c) OpenMMLab. All rights reserved. | ||
| from typing import Tuple | ||
|
|
||
| import dlinfer.ops as ext_ops | ||
| from dlinfer.utils.type_annotation import MoeMetadata as DlinferMoeMetadata | ||
| from torch import Tensor | ||
|
|
||
|
|
||
| def moe_gating_topk_softmax(router_logits: Tensor, topk: int): | ||
| routing_weights, selected_experts = ext_ops.moe_gating_topk_softmax(router_logits, topk) | ||
| def moe_gating_topk_softmax(router_logits: Tensor, topk: int, | ||
| moe_metadata: DlinferMoeMetadata) -> Tuple[Tensor, Tensor]: | ||
| routing_weights, selected_experts = ext_ops.moe_gating_topk_softmax(router_logits, topk, moe_metadata) | ||
| return routing_weights, selected_experts |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.