Skip to content

Commit 72b1fa1

Browse files
authored
Pin huggingface_hub in more places (#15403)
### Summary 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. ### Test Plan 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 c0c3338 commit 72b1fa1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/trunk.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ jobs:
626626
BUILD_TORCHAO_EXPERIMENTAL=1 TORCHAO_BUILD_CPU_AARCH64=1 TORCHAO_BUILD_KLEIDIAI=1 TORCHAO_ENABLE_ARM_NEON_DOT=1 TORCHAO_PARALLEL_BACKEND=OPENMP pip install third-party/ao
627627
fi
628628
629-
pip install -U "huggingface_hub[cli]"
629+
pip install -U "huggingface_hub[cli]<1.0"
630630
631631
bash .ci/scripts/test_torchao_huggingface_checkpoints.sh ${{ matrix.model }} ${{ matrix.model != 'phi_4_mini' && '--test_with_runner' || '' }} ${{ matrix.backend == 'torchao' && '--use_torchao_kernels' || '' }}
632632
@@ -659,7 +659,7 @@ jobs:
659659
echo "::endgroup::"
660660
661661
echo "::group::Set up Huggingface"
662-
${CONDA_RUN} pip install -U "huggingface_hub[cli]" accelerate
662+
${CONDA_RUN} pip install -U "huggingface_hub[cli]<1.0" accelerate
663663
${CONDA_RUN} huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
664664
OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
665665
${CONDA_RUN} pip install git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}
@@ -930,7 +930,7 @@ jobs:
930930
echo "::endgroup::"
931931
932932
echo "::group::Set up Huggingface"
933-
${CONDA_RUN} pip install -U "huggingface_hub[cli]" accelerate
933+
${CONDA_RUN} pip install -U "huggingface_hub[cli]<1.0" accelerate
934934
${CONDA_RUN} huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN
935935
OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt)
936936
${CONDA_RUN} pip install git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}

0 commit comments

Comments
 (0)