Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
7f775ad2
Commit
7f775ad2
authored
Feb 11, 2025
by
王敏
Browse files
修复错误代码
parent
d0dafaf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
csrc/moe/torch_bindings.cpp
csrc/moe/torch_bindings.cpp
+2
-2
No files found.
csrc/moe/torch_bindings.cpp
View file @
7f775ad2
...
@@ -22,13 +22,13 @@ TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, m) {
...
@@ -22,13 +22,13 @@ TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, m) {
" Tensor! num_tokens_post_pad) -> ()"
);
" Tensor! num_tokens_post_pad) -> ()"
);
m
.
impl
(
"moe_align_block_size"
,
torch
::
kCUDA
,
&
moe_align_block_size
);
m
.
impl
(
"moe_align_block_size"
,
torch
::
kCUDA
,
&
moe_align_block_size
);
ops
.
def
(
m
.
def
(
"ep_moe_align_block_size(Tensor topk_ids, int num_experts,"
"ep_moe_align_block_size(Tensor topk_ids, int num_experts,"
" int block_size, Tensor! sorted_token_ids,"
" int block_size, Tensor! sorted_token_ids,"
" Tensor! experts_ids,"
" Tensor! experts_ids,"
" Tensor! num_tokens_post_pad,"
" Tensor! num_tokens_post_pad,"
" int start_expert, int end_expert) -> ()"
);
" int start_expert, int end_expert) -> ()"
);
ops
.
impl
(
"ep_moe_align_block_size"
,
torch
::
kCUDA
,
&
ep_moe_align_block_size
);
m
.
impl
(
"ep_moe_align_block_size"
,
torch
::
kCUDA
,
&
ep_moe_align_block_size
);
// temporarily adapted from
// temporarily adapted from
// https://github.com/sgl-project/sglang/commit/ded9fcd09a43d5e7d5bb31a2bc3e9fc21bf65d2a
// https://github.com/sgl-project/sglang/commit/ded9fcd09a43d5e7d5bb31a2bc3e9fc21bf65d2a
...
...
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