This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 4 files changed +28
-26
lines changed
4 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ post_build_cmds:
15
15
pip install \
16
16
"async_timeout" \
17
17
"markdown-it-py[plugins]" \
18
- "git+https://github.com/huggingface/diffusers.git" \
19
18
"accelerate" \
20
19
"transformers>=4.25.1" \
21
20
"datasets" \
@@ -29,14 +28,8 @@ post_build_cmds:
29
28
"bitsandbytes" \
30
29
"git+https://github.com/Yard1/DeepSpeed.git@aviary" \
31
30
"numpy<1.24" \
32
- "pytorch-lightning" \
33
31
"ninja" \
34
32
"protobuf<3.21.0" \
35
33
"git+https://github.com/huggingface/optimum.git" \
36
34
"torchmetrics" \
37
- "git+https://github.com/EleutherAI/lm_dataformat.git@4eec05349977071bf67fc072290b95e31c8dd836" \
38
- "lm_eval==0.3.0" \
39
- "tiktoken==0.1.2" \
40
- "pybind11==2.6.2" \
41
- "einops==0.3.0" \
42
35
"safetensors"
Original file line number Diff line number Diff line change 1
- FROM rayproject/ray-ml :nightly-gpu
1
+ FROM rayproject/ray:nightly-cu118
2
2
3
- ENV HF_HUB_ENABLE_HF_TRANSFER=1
4
-
5
- RUN sudo apt-get update
6
- RUN sudo apt-get install -y libaio-dev git-lfs awscli
3
+ RUN sudo apt-get update && sudo apt-get install -y libaio-dev git-lfs awscli && sudo rm -rf /var/lib/apt/lists/*
7
4
8
- RUN pip install --upgrade pip
9
- RUN pip uninstall -y ray torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric tensorflow
10
5
RUN conda install python=3.10
11
- 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"
6
+ 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"
7
+ RUN pip install -i https://download.pytorch.org/whl/cu118 torch torchvision torchaudio
12
8
COPY "./dist" "/home/ray/dist"
13
9
RUN cd /home/ray/dist && pip install "$(ls *.whl | head -n1)[backend]"
14
10
15
-
16
- COPY "./deploy/ray/backend.yaml" "/home/ray/abcd"
17
-
18
11
# The build context should be the root of the repo
19
12
# So this gives the model definitions
20
13
COPY "./models" "/home/ray/models"
21
14
22
- RUN echo "Testing aviary install" && python -c "import aviary.backend"
15
+ ENV HF_HUB_ENABLE_HF_TRANSFER=1
16
+ RUN echo "Testing aviary install" && python -c "import aviary.backend"
17
+
18
+ RUN pip cache purge && conda clean -a && rm -rf ~/.cache
Original file line number Diff line number Diff line change @@ -10,6 +10,26 @@ docker:
10
10
image : " anyscale/aviary:latest"
11
11
container_name : " aviary"
12
12
13
+ # All the 'conda activate' are necessary to ensure we are in the
14
+ # python 3.10 conda env.
15
+ setup_commands :
16
+ - echo "conda activate" >> ~/.bashrc
17
+
18
+ head_setup_commands :
19
+ - conda activate && pip install 'boto3>=1.4.8'
20
+
21
+ worker_setup_commands : []
22
+
23
+ head_start_ray_commands :
24
+ - conda activate && ray stop
25
+ - conda activate && ulimit -n 65536; ray start --head --port=6379 --object-manager-port=8076 --autoscaling-config=~/ray_bootstrap_config.yaml --dashboard-host=0.0.0.0
26
+
27
+ worker_start_ray_commands :
28
+ - conda activate && ray stop
29
+ # We need to make sure RAY_HEAD_IP env var is accessible
30
+ # after conda activate.
31
+ - export RAY_HEAD_IP && echo "export RAY_HEAD_IP=$RAY_HEAD_IP" >> ~/.bashrc && conda activate && ulimit -n 65536; ray start --address=$RAY_HEAD_IP:6379 --object-manager-port=8076
32
+
13
33
available_node_types :
14
34
head_node_type :
15
35
node_config :
Original file line number Diff line number Diff line change 21
21
"torch>=2.0.0" ,
22
22
"torchaudio>=2.0.0" ,
23
23
"torchvision>=0.15.2" ,
24
- "diffusers @ git+https://github.com/huggingface/diffusers.git" ,
25
24
"accelerate" ,
26
25
"transformers>=4.25.1" ,
27
26
"datasets" ,
35
34
"bitsandbytes" ,
36
35
"deepspeed @ git+https://github.com/Yard1/DeepSpeed.git@aviary" ,
37
36
"numpy<1.24" ,
38
- "pytorch-lightning" ,
39
37
"ninja" ,
40
38
"protobuf<3.21.0" ,
41
39
"optimum @ git+https://github.com/huggingface/optimum.git" ,
42
40
"torchmetrics" ,
43
- "lm_dataformat @ git+https://github.com/EleutherAI/lm_dataformat.git@4eec05349977071bf67fc072290b95e31c8dd836" ,
44
- "lm_eval==0.3.0" ,
45
- "tiktoken==0.1.2" ,
46
- "pybind11==2.6.2" ,
47
- "einops==0.3.0" ,
48
41
"safetensors" ,
49
42
"pydantic==1.10.7" ,
50
43
"markdown-it-py[plugins]" ,
You can’t perform that action at this time.
0 commit comments