Skip to content

Commit

Permalink
[deps] add llm extra requirement declaration
Browse files Browse the repository at this point in the history
for user to install llm related dependencies

Signed-off-by: Lonnie Liu <[email protected]>
  • Loading branch information
aslonnie committed Feb 8, 2025
1 parent 0d5414e commit ad8536f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/requirements/llm/llm-requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# Keep this in sync with the definition in setup.py for ray[llm]
vllm>=0.7.2
13 changes: 13 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,19 @@ def get_packages(self):
set(setup_spec.extras["all"] + setup_spec.extras["cpp"])
)

# "llm" is not included in all, by design. vllm's dependency set is very
# large and specific, will likely run into dependency conflicts with other
# ML libraries. As a result, it is an "extra-extra" that is not part
# ray[all].
#
# ray[llm] depends on ray[data].
#
# Keep this in sync with python/requirements/llm/llm-requirements.txt
#
setup_spec.extras["llm"] = list(
set(["vllm>=0.7.2"] + setup_spec.extras["data"])
)

# These are the main dependencies for users of ray. This list
# should be carefully curated. If you change it, please reflect
# the change in the matching section of requirements/requirements.txt
Expand Down

0 comments on commit ad8536f

Please sign in to comment.