Skip to content

Conversation

@GregoryComer
Copy link
Member

@GregoryComer GregoryComer commented Nov 7, 2025

Summary

This is a manual cherry-pick of #15399 and #15403 to resolve CI failures caused by an incompatibility between the newly released huggingface_hub package and our pinned version of transformers. Due to differences between main and release/1.0, the automated cherry-pick failed, so I've reverted to a manual pick and some small manual edits to examples/models/llama/install_requirements.sh.

Test Plan

This PR is running trunk CI.

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 7, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15667

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 1 Cancelled Job, 112 Pending, 3 Unrelated Failures

As of commit 9afbe27 with merge base e0dda90 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOB - The following job was cancelled. Please retry:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 7, 2025
@GregoryComer GregoryComer added ciflow/trunk release notes: none Do not include this in the release notes labels Nov 7, 2025
Trying to fix failing HF CI jobs. Looks like our transformers version
requires huggingface_hub<1.0, but we're installing the latest 1.0
version which just released today. Until we bump transformers, I'll just
pin our install of huggingface_hub to below 1.0.

Note that we don't pin the transformers version the same way for pip
install, so this should be a ci only issue (and hence ci only fix).

Here's an example job failure:
```
transformers 4.56.1 requires huggingface-hub<1.0,>=0.34.0, but you have huggingface-hub 1.0.0 which is incompatible.
...
/exec: line 13: huggingface-cli: command not found
```
(from
https://github.com/pytorch/executorch/actions/runs/18851188516/job/53787937311)

(cherry picked from commit 57f0dfd)
We need to pin huggingface_hub in CI to avoid an incompatibility with
our pinned version of transformers. See
pytorch#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).
@GregoryComer GregoryComer force-pushed the cherry-pick-hf-hub-fix-1-0 branch 2 times, most recently from de78a29 to 8c64cc6 Compare November 18, 2025 19:56
@GregoryComer GregoryComer force-pushed the cherry-pick-hf-hub-fix-1-0 branch from 8c64cc6 to a7f9ac3 Compare November 18, 2025 22:42
@GregoryComer GregoryComer marked this pull request as ready for review November 18, 2025 23:29
@GregoryComer
Copy link
Member Author

Note to reviewers: there are more failing/flaky jobs. These are pre-existing and I will fix as a follow-up, as the cause is unrelated to this PR.

"$PIPBIN" install --upgrade pip
"$PIPBIN" install "$WHEEL_FILE"
"$PIPBIN" install torch=="2.9.0"
"$PIPBIN" install torch=="2.9.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this intended?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - good question. It's not strictly part of the original pick but we want torch==2.9.1 for 1.0.1 and I was seeing a related issue on CI, so I stuck that fix in.

@GregoryComer GregoryComer merged commit 057e71d into pytorch:release/1.0 Nov 19, 2025
444 of 458 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants