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
3368c3ab
Unverified
Commit
3368c3ab
authored
Sep 25, 2024
by
David Newman
Committed by
GitHub
Sep 25, 2024
Browse files
[Bugfix] Ray 2.9.x doesn't expose available_resources_per_node (#8767)
Signed-off-by:
darthhexx
<
darthhexx@gmail.com
>
parent
1ac3de09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
vllm/executor/ray_utils.py
vllm/executor/ray_utils.py
+6
-1
No files found.
vllm/executor/ray_utils.py
View file @
3368c3ab
...
...
@@ -18,9 +18,14 @@ PG_WAIT_TIMEOUT = 1800
try
:
import
ray
from
ray._private.state
import
available_resources_per_node
from
ray.util
import
placement_group_table
from
ray.util.placement_group
import
PlacementGroup
try
:
from
ray._private.state
import
available_resources_per_node
except
ImportError
:
# Ray 2.9.x doesn't expose `available_resources_per_node`
from
ray._private.state
import
state
as
_state
available_resources_per_node
=
_state
.
_available_resources_per_node
class
RayWorkerWrapper
(
WorkerWrapperBase
):
"""Ray wrapper for vllm.worker.Worker, allowing Worker to be
...
...
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