From 20449cc2ca53a2dba746ccd27d336fb1f69f6874 Mon Sep 17 00:00:00 2001 From: Gregory James Comer Date: Mon, 27 Oct 2025 15:14:58 -0700 Subject: [PATCH] Pin huggingface_hub in more places --- .github/workflows/trunk.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/trunk.yml b/.github/workflows/trunk.yml index 4bb67c685d4..751649ed7da 100644 --- a/.github/workflows/trunk.yml +++ b/.github/workflows/trunk.yml @@ -626,7 +626,7 @@ jobs: 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 fi - pip install -U "huggingface_hub[cli]" + pip install -U "huggingface_hub[cli]<1.0" bash .ci/scripts/test_torchao_huggingface_checkpoints.sh ${{ matrix.model }} ${{ matrix.model != 'phi_4_mini' && '--test_with_runner' || '' }} ${{ matrix.backend == 'torchao' && '--use_torchao_kernels' || '' }} @@ -659,7 +659,7 @@ jobs: echo "::endgroup::" echo "::group::Set up Huggingface" - ${CONDA_RUN} pip install -U "huggingface_hub[cli]" accelerate + ${CONDA_RUN} pip install -U "huggingface_hub[cli]<1.0" accelerate ${CONDA_RUN} huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt) ${CONDA_RUN} pip install git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION} @@ -930,7 +930,7 @@ jobs: echo "::endgroup::" echo "::group::Set up Huggingface" - ${CONDA_RUN} pip install -U "huggingface_hub[cli]" accelerate + ${CONDA_RUN} pip install -U "huggingface_hub[cli]<1.0" accelerate ${CONDA_RUN} huggingface-cli login --token $SECRET_EXECUTORCH_HF_TOKEN OPTIMUM_ET_VERSION=$(cat .ci/docker/ci_commit_pins/optimum-executorch.txt) ${CONDA_RUN} pip install git+https://github.com/huggingface/optimum-executorch.git@${OPTIMUM_ET_VERSION}