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
3 changes: 2 additions & 1 deletion python/sglang/srt/server_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,8 @@ def _handle_model_specific_adjustments(self):
"aiter",
"triton",
"trtllm_mha",
}, "fa3, aiter, triton, or trtllm_mha is required for Llama4 model"
"intel_xpu",
}, "fa3, aiter, triton, trtllm_mha or intel_xpu is required for Llama4 model"
if is_sm100_supported() and self.attention_backend is None:
self.attention_backend = "trtllm_mha"
logger.warning(
Expand Down
3 changes: 2 additions & 1 deletion python/sglang/srt/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,8 @@ def get_device_capability(device_id: int = 0) -> Tuple[int, int]:
major, minor, *_ = torch.xpu.get_device_capability(device_id)["version"].split(
"."
)
major, minor = int(major), int(minor)
# Currently XPU version does not contain capability information.
major, minor = None, None

if hasattr(torch, "hpu") and torch.hpu.is_available():
try:
Expand Down
Loading