Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
15063741
Unverified
Commit
15063741
authored
Jun 07, 2024
by
Jie Fu (傅杰)
Committed by
GitHub
Jun 06, 2024
Browse files
[Misc] Missing error message for custom ops import (#5282)
parent
ccdc490d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vllm/_custom_ops.py
vllm/_custom_ops.py
+4
-2
No files found.
vllm/_custom_ops.py
View file @
15063741
...
@@ -5,8 +5,10 @@ import torch
...
@@ -5,8 +5,10 @@ import torch
try
:
try
:
from
vllm._C
import
cache_ops
as
vllm_cache_ops
from
vllm._C
import
cache_ops
as
vllm_cache_ops
from
vllm._C
import
ops
as
vllm_ops
from
vllm._C
import
ops
as
vllm_ops
except
ImportError
:
except
ImportError
as
e
:
pass
from
vllm.logger
import
init_logger
logger
=
init_logger
(
__name__
)
logger
.
warning
(
"Failed to import from vllm._C with %r"
,
e
)
# activation ops
# activation ops
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment