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
c215f5c8
Unverified
Commit
c215f5c8
authored
Jul 26, 2025
by
Wentao Ye
Committed by
GitHub
Jul 26, 2025
Browse files
[Bug] Fix `has_flashinfer_moe` Import Error when it is not installed (#21634)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
1cd6eaba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/utils/flashinfer.py
vllm/utils/flashinfer.py
+2
-1
No files found.
vllm/utils/flashinfer.py
View file @
c215f5c8
...
...
@@ -82,7 +82,8 @@ autotune = _lazy_import_wrapper(
@
functools
.
cache
def
has_flashinfer_moe
()
->
bool
:
"""Return ``True`` if FlashInfer MoE module is available."""
return
importlib
.
util
.
find_spec
(
"flashinfer.fused_moe"
)
is
not
None
return
has_flashinfer
()
and
importlib
.
util
.
find_spec
(
"flashinfer.fused_moe"
)
is
not
None
@
functools
.
cache
...
...
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