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
6a9c583e
Unverified
Commit
6a9c583e
authored
Mar 18, 2024
by
youkaichao
Committed by
GitHub
Mar 19, 2024
Browse files
[Core] print error before deadlock (#3459)
parent
b37cdce2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
vllm/engine/ray_utils.py
vllm/engine/ray_utils.py
+11
-2
No files found.
vllm/engine/ray_utils.py
View file @
6a9c583e
...
@@ -33,8 +33,17 @@ try:
...
@@ -33,8 +33,17 @@ try:
return
getattr
(
self
.
worker
,
name
)
return
getattr
(
self
.
worker
,
name
)
def
execute_method
(
self
,
method
,
*
args
,
**
kwargs
):
def
execute_method
(
self
,
method
,
*
args
,
**
kwargs
):
executor
=
getattr
(
self
,
method
)
try
:
return
executor
(
*
args
,
**
kwargs
)
executor
=
getattr
(
self
,
method
)
return
executor
(
*
args
,
**
kwargs
)
except
Exception
as
e
:
# exceptions in ray worker may cause deadlock
# see https://github.com/vllm-project/vllm/issues/3455
# print the error and inform the user to solve the error
msg
=
(
f
"Error executing method
{
method
}
. "
"This might cause deadlock in distributed execution."
)
logger
.
exception
(
msg
)
raise
e
def
get_node_ip
(
self
)
->
str
:
def
get_node_ip
(
self
)
->
str
:
return
get_ip
()
return
get_ip
()
...
...
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