Skip to content

Commit

Permalink
[Misc] Missing error message for custom ops import (vllm-project#5282)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonFool authored and jimpang committed Jul 8, 2024
1 parent d41f79a commit a23a014
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vllm/_custom_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
try:
from vllm._C import cache_ops as vllm_cache_ops
from vllm._C import ops as vllm_ops
except ImportError:
pass
except ImportError as e:
from vllm.logger import init_logger
logger = init_logger(__name__)
logger.warning("Failed to import from vllm._C with %r", e)


# activation ops
Expand Down

0 comments on commit a23a014

Please sign in to comment.