Skip to content

Commit 5582e93

Browse files
committed
Pin huggingface_hub in more places (#15403)
We need to pin huggingface_hub in CI to avoid an incompatibility with our pinned version of transformers. See #15399 for more context - I missed a few places on trunk jobs. Cleaning these up here. Running with ciflow/trunk. I verified that the test-huggingface-transformers-macos / * and gemma3-4b macos jobs pass on this PR. They are failing on trunk (see https://hud.pytorch.org/pytorch/executorch/commit/4c30da308ee811bdfa44fd4bea3bc439bfd303d4 for an example).
1 parent a51d5a3 commit 5582e93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/trunk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ jobs:
612612
conda activate "${CONDA_ENV}"
613613
614614
PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool cmake
615-
pip install -U "huggingface_hub[cli]"
615+
pip install -U "huggingface_hub[cli]<1.0"
616616
617617
bash .ci/scripts/test_torchao_huggingface_checkpoints.sh ${{ matrix.model }} ${{ matrix.test_with_runner && '--test_with_runner' || '' }}
618618
@@ -905,7 +905,7 @@ jobs:
905905
echo "::endgroup::"
906906
907907
echo "::group::Set up Huggingface"
908-
${CONDA_RUN} pip install -U "huggingface_hub[cli]" accelerate
908+
${CONDA_RUN} pip install -U "huggingface_hub[cli]<1.0" accelerate
909909
${CONDA_RUN} huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
910910
OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
911911
${CONDA_RUN} pip install git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}

0 commit comments

Comments
 (0)