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
cbdb2522
Unverified
Commit
cbdb2522
authored
Sep 17, 2024
by
Rui Qiao
Committed by
GitHub
Sep 17, 2024
Browse files
[Misc] Limit to ray[adag] 2.35 to avoid backward incompatible change (#8509)
Signed-off-by:
Rui Qiao
<
ruisearch42@gmail.com
>
parent
99aa4edd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
requirements-test.txt
requirements-test.txt
+1
-1
vllm/executor/ray_gpu_executor.py
vllm/executor/ray_gpu_executor.py
+4
-2
No files found.
requirements-test.txt
View file @
cbdb2522
...
@@ -14,7 +14,7 @@ librosa # required for audio test
...
@@ -14,7 +14,7 @@ librosa # required for audio test
opencv-python # required for video test
opencv-python # required for video test
peft
peft
requests
requests
ray[adag]
>
=2.35
ray[adag]
=
=2.35
sentence-transformers # required for embedding
sentence-transformers # required for embedding
soundfile # required for audio test
soundfile # required for audio test
compressed-tensors==0.4.0 # required for compressed-tensors
compressed-tensors==0.4.0 # required for compressed-tensors
...
...
vllm/executor/ray_gpu_executor.py
View file @
cbdb2522
...
@@ -437,8 +437,10 @@ class RayGPUExecutor(DistributedGPUExecutor):
...
@@ -437,8 +437,10 @@ class RayGPUExecutor(DistributedGPUExecutor):
required_version
=
version
.
parse
(
"2.35"
)
required_version
=
version
.
parse
(
"2.35"
)
current_version
=
version
.
parse
(
current_version
=
version
.
parse
(
pkg_resources
.
get_distribution
(
"ray"
).
version
)
pkg_resources
.
get_distribution
(
"ray"
).
version
)
if
current_version
<
required_version
:
# TODO: update the constraint once we adapt to the backward
raise
ValueError
(
f
"Ray version
{
required_version
}
or greater is "
# incompatible API change from ray 2.36
if
current_version
!=
required_version
:
raise
ValueError
(
f
"Ray version
{
required_version
}
is "
f
"required, but found
{
current_version
}
"
)
f
"required, but found
{
current_version
}
"
)
import
importlib.util
import
importlib.util
...
...
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