Skip to content

Commit

Permalink
Don't throw "Failed to import from vllm._C" warning on HPU (vllm-proj…
Browse files Browse the repository at this point in the history
  • Loading branch information
kzawora-intel authored Sep 24, 2024
1 parent 58d5cde commit cf4c3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/_custom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

logger = init_logger(__name__)

if not current_platform.is_tpu():
if not current_platform.is_tpu() and not current_platform.is_hpu():
try:
import vllm._C
except ImportError as e:
Expand Down

0 comments on commit cf4c3e5

Please sign in to comment.