Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize HF_ACCESS_TOKEN -> HF_TOKEN #391

Merged
merged 2 commits into from
Dec 5, 2023
Merged

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Dec 5, 2023

Same as xenova/transformers.js#431.
Related to slack thread (internal).

This PR standardizes the name of the environment variable used to make requests with a HF API token. The goal is to harmonize it across the HF ecosystem. For what I've seen, HF_ACCESS_TOKEN was not an "official" environment variable but simply the one used in docs and tests. Updating the naming should not break anything in the libraries.

TODO before merging update HF_ACCESS_TOKEN to HF_TOKEN in Github repo secrets.

cc @xenova @julien-c

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Member

@coyotte508 coyotte508 left a comment

Choose a reason for hiding this comment

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

Thanks!

I don't think we need to migrate HF_TOKEN actually, it's not used in inference due to flakiness, hub uses a mirror of the hub to do tests and agents tests still seem to work cc @nsarrazin

(Will migrate in the future if needed)

@Wauplin
Copy link
Contributor Author

Wauplin commented Dec 5, 2023

Ok good to know for the github secret 👍
@coyotte508 feel free to merge anytime

@coyotte508 coyotte508 merged commit c3374c5 into main Dec 5, 2023
2 checks passed
@coyotte508 coyotte508 deleted the harmonize-hf-token branch December 5, 2023 14:20
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.

3 participants