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
857782c6
Commit
857782c6
authored
Mar 11, 2026
by
liuchy5
Browse files
修复custom_op后端分发问题
parent
3824b261
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/model_executor/custom_op.py
vllm/model_executor/custom_op.py
+2
-0
No files found.
vllm/model_executor/custom_op.py
View file @
857782c6
...
@@ -184,6 +184,8 @@ class CustomOp(nn.Module):
...
@@ -184,6 +184,8 @@ class CustomOp(nn.Module):
return
self
.
maybe_compile
(
self
.
forward_native
,
enable
=
compile_native
)
return
self
.
maybe_compile
(
self
.
forward_native
,
enable
=
compile_native
)
if
current_platform
.
is_rocm
():
if
current_platform
.
is_rocm
():
if
self
.
__class__
.
name
==
"sparse_attn_indexer"
:
return
self
.
forward_cuda
return
self
.
forward_cuda
return
self
.
forward_cuda
elif
current_platform
.
is_cpu
():
elif
current_platform
.
is_cpu
():
return
self
.
forward_cpu
return
self
.
forward_cpu
...
...
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