Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
c487a221
Unverified
Commit
c487a221
authored
Jul 19, 2023
by
Antoni Baum
Committed by
GitHub
Jul 19, 2023
Browse files
Fix bad assert in initialize_cluster if PG already exists (#526)
parent
9925c179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
vllm/engine/ray_utils.py
vllm/engine/ray_utils.py
+5
-3
No files found.
vllm/engine/ray_utils.py
View file @
c487a221
...
@@ -81,9 +81,11 @@ def initialize_cluster(
...
@@ -81,9 +81,11 @@ def initialize_cluster(
# Verify that we can use the placement group.
# Verify that we can use the placement group.
gpu_bundles
=
0
gpu_bundles
=
0
for
bundle
in
bundles
:
for
bundle
in
bundles
:
assert
bundle
.
get
(
"GPU"
,
0
)
>
1
,
(
bundle_gpus
=
bundle
.
get
(
"GPU"
,
0
)
"Placement group bundles cannot have more than 1 GPU"
)
if
bundle_gpus
>
1
:
if
bundle
.
get
(
"GPU"
,
0
):
raise
ValueError
(
"Placement group bundle cannot have more than 1 GPU."
)
if
bundle_gpus
:
gpu_bundles
+=
1
gpu_bundles
+=
1
if
parallel_config
.
world_size
>
gpu_bundles
:
if
parallel_config
.
world_size
>
gpu_bundles
:
raise
ValueError
(
raise
ValueError
(
...
...
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