Skip to content

Add HF_TOKEN environment variable to workflow files#5397

Merged
qgallouedec merged 2 commits into
mainfrom
hf-token-to-workflow
Mar 30, 2026
Merged

Add HF_TOKEN environment variable to workflow files#5397
qgallouedec merged 2 commits into
mainfrom
hf-token-to-workflow

Conversation

@qgallouedec

@qgallouedec qgallouedec commented Mar 27, 2026

Copy link
Copy Markdown
Member

The CI became extremely slow 3 hours ago; presumably because

Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.

this pr adds HF_TOKEN to the CI


Note

Low Risk
Low risk: workflow-only change that exposes an existing secret as an env var to jobs; main impact is CI behavior and dependency/model download performance.

Overview
CI workflows now export HF_TOKEN: ${{ secrets.HF_TOKEN }} at the workflow env level for tests, slow-tests, tests-experimental, tests_latest, and tests_transformers_branch, enabling authenticated Hugging Face Hub access during runs.

This is intended to reduce CI slowdowns caused by unauthenticated Hub rate limits and slower artifact/model downloads.

Written by Cursor Bugbot for commit f9963c2. This will update automatically on new commits. Configure here.

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@albertvillanova albertvillanova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks.

@AmineDiro AmineDiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any politic to renew the HF_TOKEN in the repository ?

@qgallouedec

Copy link
Copy Markdown
Member Author

Any politic to renew the HF_TOKEN in the repository ?

nothing special, for now it's a token with no expiration date

@qgallouedec qgallouedec merged commit 71ff6a2 into main Mar 30, 2026
14 checks passed
@qgallouedec qgallouedec deleted the hf-token-to-workflow branch March 30, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants