This repository has been archived by the owner on May 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slim down docker, fix OSS cluster config (#106)
Closes https://github.com/anyscale/aviary/issues/92 Closes #5 --------- Signed-off-by: Antoni Baum <[email protected]>
- Loading branch information
Showing
4 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
FROM rayproject/ray-ml:nightly-gpu | ||
FROM rayproject/ray:nightly-cu118 | ||
|
||
ENV HF_HUB_ENABLE_HF_TRANSFER=1 | ||
|
||
RUN sudo apt-get update | ||
RUN sudo apt-get install -y libaio-dev git-lfs awscli | ||
RUN sudo apt-get update && sudo apt-get install -y libaio-dev git-lfs awscli && sudo rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip uninstall -y ray torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric tensorflow | ||
RUN conda install python=3.10 | ||
RUN pip install "ray[default,serve] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp310-cp310-manylinux2014_x86_64.whl" | ||
RUN pip install --upgrade pip && pip install "ray[default,serve] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp310-cp310-manylinux2014_x86_64.whl" | ||
RUN pip install -i https://download.pytorch.org/whl/cu118 torch torchvision torchaudio | ||
COPY "./dist" "/home/ray/dist" | ||
RUN cd /home/ray/dist && pip install "$(ls *.whl | head -n1)[backend]" | ||
|
||
|
||
COPY "./deploy/ray/backend.yaml" "/home/ray/abcd" | ||
|
||
# The build context should be the root of the repo | ||
# So this gives the model definitions | ||
COPY "./models" "/home/ray/models" | ||
|
||
RUN echo "Testing aviary install" && python -c "import aviary.backend" | ||
ENV HF_HUB_ENABLE_HF_TRANSFER=1 | ||
RUN echo "Testing aviary install" && python -c "import aviary.backend" | ||
|
||
RUN pip cache purge && conda clean -a && rm -rf ~/.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters