Skip to content

Commit 215e680

Browse files
DN6sayakpaul
andauthored
Unpin torch versions in CI (#6945)
* update * update * update --------- Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
1 parent 9254d1f commit 215e680

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

docker/diffusers-pytorch-compile-cuda/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
2727
RUN python3.9 -m pip install --no-cache-dir --upgrade pip && \
2828
python3.9 -m pip install --no-cache-dir \
29-
torch==2.1.2 \
30-
torchvision==0.16.2 \
31-
torchaudio==2.1.2 \
29+
torch \
30+
torchvision \
31+
torchaudio \
3232
invisible_watermark && \
3333
python3.9 -m pip install --no-cache-dir \
3434
accelerate \

docker/diffusers-pytorch-cpu/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
2626
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
2727
python3 -m pip install --no-cache-dir \
28-
torch==2.1.2 \
29-
torchvision==0.16.2 \
30-
torchaudio==2.1.2 \
28+
torch \
29+
torchvision \
30+
torchaudio \
3131
invisible_watermark \
3232
--extra-index-url https://download.pytorch.org/whl/cpu && \
3333
python3 -m pip install --no-cache-dir \

docker/diffusers-pytorch-cuda/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
2626
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
2727
python3 -m pip install --no-cache-dir \
28-
torch==2.1.2 \
29-
torchvision==0.16.2 \
30-
torchaudio==2.1.2 \
28+
torch \
29+
torchvision \
30+
torchaudio \
3131
invisible_watermark && \
3232
python3 -m pip install --no-cache-dir \
3333
accelerate \

docker/diffusers-pytorch-xformers-cuda/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
2626
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
2727
python3 -m pip install --no-cache-dir \
28-
torch==2.1.2 \
29-
torchvision==0.16.2 \
30-
torchaudio==2.1.2 \
28+
torch \
29+
torchvision \
30+
torchaudio \
3131
invisible_watermark && \
3232
python3 -m pip install --no-cache-dir \
3333
accelerate \

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@
126126
"regex!=2019.12.17",
127127
"requests",
128128
"tensorboard",
129-
"torch>=1.4,<2.2.0",
130-
"torchvision<0.17",
129+
"torch>=1.4",
130+
"torchvision",
131131
"transformers>=4.25.1",
132132
"urllib3<=2.0.0",
133133
]

src/diffusers/dependency_versions_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"regex": "regex!=2019.12.17",
3939
"requests": "requests",
4040
"tensorboard": "tensorboard",
41-
"torch": "torch>=1.4,<2.2.0",
42-
"torchvision": "torchvision<0.17",
41+
"torch": "torch>=1.4",
42+
"torchvision": "torchvision",
4343
"transformers": "transformers>=4.25.1",
4444
"urllib3": "urllib3<=2.0.0",
4545
}

0 commit comments

Comments
 (0)