File tree Expand file tree Collapse file tree 8 files changed +24
-24
lines changed
diffusers-onnxruntime-cpu
diffusers-onnxruntime-cuda
diffusers-pytorch-compile-cuda
diffusers-pytorch-xformers-cuda Expand file tree Collapse file tree 8 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ ENV PATH="/opt/venv/bin:$PATH"
2424# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2525RUN python3 -m pip install --no-cache-dir --upgrade pip && \
2626 python3 -m pip install --no-cache-dir \
27- torch \
28- torchvision \
29- torchaudio \
27+ torch==2.1.2 \
28+ torchvision==0.16.2 \
29+ torchaudio==2.1.2 \
3030 onnxruntime \
3131 --extra-index-url https://download.pytorch.org/whl/cpu && \
3232 python3 -m pip install --no-cache-dir \
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ ENV PATH="/opt/venv/bin:$PATH"
2424# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2525RUN python3 -m pip install --no-cache-dir --upgrade pip && \
2626 python3 -m pip install --no-cache-dir \
27- torch \
28- torchvision \
29- torchaudio \
27+ torch==2.1.2 \
28+ torchvision==0.16.2 \
29+ torchaudio==2.1.2 \
3030 "onnxruntime-gpu>=1.13.1" \
3131 --extra-index-url https://download.pytorch.org/whl/cu117 && \
3232 python3 -m pip install --no-cache-dir \
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ ENV PATH="/opt/venv/bin:$PATH"
2626# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2727RUN python3.9 -m pip install --no-cache-dir --upgrade pip && \
2828 python3.9 -m pip install --no-cache-dir \
29- torch \
30- torchvision \
31- torchaudio \
29+ torch==2.1.2 \
30+ torchvision==0.16.2 \
31+ torchaudio==2.1.2 \
3232 invisible_watermark && \
3333 python3.9 -m pip install --no-cache-dir \
3434 accelerate \
@@ -40,6 +40,6 @@ RUN python3.9 -m pip install --no-cache-dir --upgrade pip && \
4040 numpy \
4141 scipy \
4242 tensorboard \
43- transformers
44-
43+ transformers
44+
4545CMD ["/bin/bash" ]
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ ENV PATH="/opt/venv/bin:$PATH"
2525# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2626RUN python3 -m pip install --no-cache-dir --upgrade pip && \
2727 python3 -m pip install --no-cache-dir \
28- torch \
29- torchvision \
30- torchaudio \
28+ torch==2.1.2 \
29+ torchvision==0.16.2 \
30+ torchaudio==2.1.2 \
3131 invisible_watermark \
3232 --extra-index-url https://download.pytorch.org/whl/cpu && \
3333 python3 -m pip install --no-cache-dir \
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ ENV PATH="/opt/venv/bin:$PATH"
2525# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2626RUN python3 -m pip install --no-cache-dir --upgrade pip && \
2727 python3 -m pip install --no-cache-dir \
28- torch \
29- torchvision \
30- torchaudio \
28+ torch==2.1.2 \
29+ torchvision==0.16.2 \
30+ torchaudio==2.1.2 \
3131 invisible_watermark && \
3232 python3 -m pip install --no-cache-dir \
3333 accelerate \
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ ENV PATH="/opt/venv/bin:$PATH"
2525# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2626RUN python3 -m pip install --no-cache-dir --upgrade pip && \
2727 python3 -m pip install --no-cache-dir \
28- torch \
29- torchvision \
30- torchaudio \
28+ torch==2.1.2 \
29+ torchvision==0.16.2 \
30+ torchaudio==2.1.2 \
3131 invisible_watermark && \
3232 python3 -m pip install --no-cache-dir \
3333 accelerate \
Original file line number Diff line number Diff line change 126126 "regex!=2019.12.17" ,
127127 "requests" ,
128128 "tensorboard" ,
129- "torch>=1.4" ,
130- "torchvision" ,
129+ "torch>=1.4,<2.2.0 " ,
130+ "torchvision<0.17 " ,
131131 "transformers>=4.25.1" ,
132132 "urllib3<=2.0.0" ,
133133]
Original file line number Diff line number Diff line change 3838 "regex" : "regex!=2019.12.17" ,
3939 "requests" : "requests" ,
4040 "tensorboard" : "tensorboard" ,
41- "torch" : "torch>=1.4" ,
42- "torchvision" : "torchvision" ,
41+ "torch" : "torch>=1.4,<2.2.0 " ,
42+ "torchvision" : "torchvision<0.17 " ,
4343 "transformers" : "transformers>=4.25.1" ,
4444 "urllib3" : "urllib3<=2.0.0" ,
4545}
You can’t perform that action at this time.
0 commit comments