Skip to content

Commit 50befc6

Browse files
committed
maybe better
1 parent 8c07129 commit 50befc6

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/pr_modular_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ 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 --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
113+
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
114+
pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U huggingface_hub
114115
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
115116
116117
- name: Environment

.github/workflows/pr_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ 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 --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
119+
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
120+
pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U huggingface_hub
120121
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
121122
122123
- name: Environment
@@ -253,7 +254,8 @@ 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 --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
257+
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
258+
pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U huggingface_hub
257259
python -m uv pip install -U tokenizers
258260
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
259261

.github/workflows/pr_tests_gpu.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ jobs:
133133
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
134134
python -m uv pip install -e [quality,test]
135135
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 --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
136+
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
137+
pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U huggingface_hub
137138
138139
- name: Environment
139140
run: |
@@ -204,7 +205,8 @@ jobs:
204205
python -m uv pip install -e [quality,test]
205206
python -m uv pip install peft@git+https://github.com/huggingface/peft.git
206207
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 --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
208+
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
209+
pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U huggingface_hub
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 --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
271+
pip uninstall transformers -y && python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
272+
pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U huggingface_hub
270273
python -m uv pip install -e [quality,test,training]
271274
272275
- name: Environment

0 commit comments

Comments
 (0)