Skip to content

Commit 4588bbe

Browse files
authored
[CI] disable installing transformers from main in ci for now. (huggingface#12397)
* disable installing transformers from main in ci for now. * up * u[p
1 parent ec5449f commit 4588bbe

File tree

7 files changed

+36
-18
lines changed

7 files changed

+36
-18
lines changed

.github/workflows/pr_modular_tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ jobs:
110110
run: |
111111
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
112112
python -m uv pip install -e [quality,test]
113-
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
114-
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
113+
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
114+
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
115+
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
115116
116117
- name: Environment
117118
run: |

.github/workflows/pr_tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ jobs:
116116
run: |
117117
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
118118
python -m uv pip install -e [quality,test]
119-
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
120-
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
119+
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
120+
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
121+
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
121122
122123
- name: Environment
123124
run: |
@@ -253,9 +254,10 @@ jobs:
253254
python -m uv pip install -e [quality,test]
254255
# TODO (sayakpaul, DN6): revisit `--no-deps`
255256
python -m pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps
256-
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
257-
python -m uv pip install -U tokenizers
258-
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
257+
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
258+
# python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
259+
# python -m uv pip install -U tokenizers
260+
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
259261
260262
- name: Environment
261263
run: |

.github/workflows/pr_tests_gpu.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ jobs:
132132
run: |
133133
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
134134
python -m uv pip install -e [quality,test]
135-
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
136-
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
135+
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
136+
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
137+
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
137138
138139
- name: Environment
139140
run: |
@@ -203,8 +204,9 @@ jobs:
203204
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
204205
python -m uv pip install -e [quality,test]
205206
python -m uv pip install peft@git+https://github.com/huggingface/peft.git
206-
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
207-
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
207+
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
208+
# pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
209+
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
208210
209211
- name: Environment
210212
run: |
@@ -266,7 +268,8 @@ jobs:
266268
- name: Install dependencies
267269
run: |
268270
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
269-
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
271+
# Stopping this update temporarily until the Hub RC is fully shipped and integrated.
272+
# pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
270273
python -m uv pip install -e [quality,test,training]
271274
272275
- name: Environment

tests/pipelines/kandinsky/test_kandinsky.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def get_dummy_inputs(self, device, seed=0):
218218
return dummy.get_dummy_inputs(device=device, seed=seed)
219219

220220
@pytest.mark.xfail(
221-
condition=is_transformers_version(">=", "4.56.2"), reason="Latest transformers changes the slices", strict=True
221+
condition=is_transformers_version(">=", "4.56.2"),
222+
reason="Latest transformers changes the slices",
223+
strict=False,
222224
)
223225
def test_kandinsky(self):
224226
device = "cpu"

tests/pipelines/kandinsky/test_kandinsky_combined.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ def get_dummy_inputs(self, device, seed=0):
7676
return inputs
7777

7878
@pytest.mark.xfail(
79-
condition=is_transformers_version(">=", "4.56.2"), reason="Latest transformers changes the slices", strict=True
79+
condition=is_transformers_version(">=", "4.56.2"),
80+
reason="Latest transformers changes the slices",
81+
strict=False,
8082
)
8183
def test_kandinsky(self):
8284
device = "cpu"
@@ -187,7 +189,9 @@ def get_dummy_inputs(self, device, seed=0):
187189
return inputs
188190

189191
@pytest.mark.xfail(
190-
condition=is_transformers_version(">=", "4.56.2"), reason="Latest transformers changes the slices", strict=True
192+
condition=is_transformers_version(">=", "4.56.2"),
193+
reason="Latest transformers changes the slices",
194+
strict=False,
191195
)
192196
def test_kandinsky(self):
193197
device = "cpu"
@@ -301,7 +305,9 @@ def get_dummy_inputs(self, device, seed=0):
301305
return inputs
302306

303307
@pytest.mark.xfail(
304-
condition=is_transformers_version(">=", "4.56.2"), reason="Latest transformers changes the slices", strict=True
308+
condition=is_transformers_version(">=", "4.56.2"),
309+
reason="Latest transformers changes the slices",
310+
strict=False,
305311
)
306312
def test_kandinsky(self):
307313
device = "cpu"

tests/pipelines/kandinsky/test_kandinsky_img2img.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ def get_dummy_inputs(self, device, seed=0):
240240
return dummies.get_dummy_inputs(device=device, seed=seed)
241241

242242
@pytest.mark.xfail(
243-
condition=is_transformers_version(">=", "4.56.2"), reason="Latest transformers changes the slices", strict=True
243+
condition=is_transformers_version(">=", "4.56.2"),
244+
reason="Latest transformers changes the slices",
245+
strict=False,
244246
)
245247
def test_kandinsky_img2img(self):
246248
device = "cpu"

tests/pipelines/kandinsky/test_kandinsky_inpaint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ def get_dummy_inputs(self, device, seed=0):
234234
return dummies.get_dummy_inputs(device=device, seed=seed)
235235

236236
@pytest.mark.xfail(
237-
condition=is_transformers_version(">=", "4.56.2"), reason="Latest transformers changes the slices", strict=True
237+
condition=is_transformers_version(">=", "4.56.2"),
238+
reason="Latest transformers changes the slices",
239+
strict=False,
238240
)
239241
def test_kandinsky_inpaint(self):
240242
device = "cpu"

0 commit comments

Comments
 (0)