[KMCompiler][Ascend] Add custom ops for vllm-ascend moe_gating_top_k replication - #1159
Open
liuxiao0909c wants to merge 2 commits into
Open
liuxiao0909c wants to merge 2 commits into
liuxiao0909c wants to merge 2 commits into
Conversation
…replication Custom operator interfaces are defined as specified in https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendcopapi/atlasascendc_api_07_0003.html, and all custom operator functions are implemented with reference to the implementation under /usr/local/Ascend/cann-9.1.0/arm64-linux/asc/impl/basic_api/dav_c220. sort32: corresponding to the Sort32<float> in Ascend C API mrgsort: corresponding to the MrgSort<float> in Ascend C API gather_mask_builtin_pattern/gather_mask_custom_pattern: corresponding to the GatherMask in Ascend C API (builtin fixed mode and user-definded mode) pair_reduce_sum_continuous_mask: corresponding to the PairReduceSum in Ascend C API (only continuous mode) duplicate_bitwise_mask: corresponding to the Duplicate in Ascend C API (only bitwise mode for tensor high-dimensional slicing computation)
liuxiao0909c
marked this pull request as ready for review
September 14, 2026 06:22
liuxiao0909c
force-pushed
the
triton_v3.5.x_grouped_topk
branch
from
September 14, 2026 10:58
fafcbba to
31c7197
Compare
liuxiao0909c
force-pushed
the
triton_v3.5.x_grouped_topk
branch
from
September 14, 2026 11:01
31c7197 to
b9e4be4
Compare
Collaborator
|
LGTM |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Custom operator interfaces are defined as specified in https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendcopapi/atlasascendc_api_07_0003.html, and all custom operator functions are implemented with reference to the implementation under /usr/local/Ascend/cann-9.1.0/arm64-linux/asc/impl/basic_api/dav_c220.