Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/platforms/cpu_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ is required to enable SGLang service with CPU engine.
conda create -n sgl-cpu python=3.12 -y
conda activate sgl-cpu

# Optional: Set PyTorch CPU as primary pip install channel to avoid installing CUDA version
# Set PyTorch CPU as primary pip install channel to avoid installing the larger CUDA-enabled version and prevent potential runtime issues.
pip config set global.index-url https://download.pytorch.org/whl/cpu
pip config set global.extra-index-url https://pypi.org/simple

Expand Down
2 changes: 1 addition & 1 deletion sgl-kernel/python/sgl_kernel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _find_cuda_home():
return cuda_home


if torch.version.hip is None:
if torch.version.cuda is not None:
cuda_home = Path(_find_cuda_home())

if (cuda_home / "lib").is_dir():
Expand Down
Loading