Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
7d3b7c87
"tests/vscode:/vscode.git/clone" did not exist on "65efb4f5a0503ab574c3f4a64f58a32078d1f340"
Unverified
Commit
7d3b7c87
authored
Apr 12, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 12, 2025
Browse files
fix: determine if flashinfer is installed (#5336)
parent
75015bb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/utils.py
python/sglang/srt/utils.py
+2
-1
No files found.
python/sglang/srt/utils.py
View file @
7d3b7c87
...
@@ -16,6 +16,7 @@ import base64
...
@@ -16,6 +16,7 @@ import base64
import
builtins
import
builtins
import
ctypes
import
ctypes
import
dataclasses
import
dataclasses
import
importlib
import
io
import
io
import
ipaddress
import
ipaddress
import
itertools
import
itertools
...
@@ -127,7 +128,7 @@ def is_flashinfer_available():
...
@@ -127,7 +128,7 @@ def is_flashinfer_available():
"""
"""
if
not
get_bool_env_var
(
"SGLANG_IS_FLASHINFER_AVAILABLE"
,
default
=
"true"
):
if
not
get_bool_env_var
(
"SGLANG_IS_FLASHINFER_AVAILABLE"
,
default
=
"true"
):
return
False
return
False
return
is_cuda
()
return
importlib
.
util
.
find_spec
(
"flashinfer"
)
is
not
None
and
is_cuda
()
def
is_cuda_available
():
def
is_cuda_available
():
...
...
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