Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/sglang/srt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import builtins
import ctypes
import dataclasses
import importlib
import io
import ipaddress
import itertools
Expand Down Expand Up @@ -127,7 +128,7 @@ def is_flashinfer_available():
"""
if not get_bool_env_var("SGLANG_IS_FLASHINFER_AVAILABLE", default="true"):
return False
return is_cuda()
return importlib.util.find_spec("flashinfer") is not None and is_cuda()


def is_cuda_available():
Expand Down
Loading