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

HUGGINGFACEHUB_API_TOKEN environment is change to HF_TOKEN #1503

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

xiguiw
Copy link
Collaborator

@xiguiw xiguiw commented Feb 7, 2025

https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#hftoken

Description

HUGGINGFACEHUB_API_TOKEN environment is changed to HF_TOKEN

Issues

List the issue or RFC link this PR is working on. If there is no such link, please mark it as n/a.

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Dependencies

Tests

local test pass

CI need to set HF_TOKEN instead of HUGGINGFACEHUB_API_TOKEN

Copy link

github-actions bot commented Feb 7, 2025

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

@xiguiw xiguiw requested review from ashahba and lvliang-intel and removed request for letonghan February 7, 2025 10:55
Fix opea-project#1467, opea-project#1485, opea-project#1486

For OPEA setting, please use HF_TOKEN in set_env.sh and document.

HUGGINGFACEHUB_API_TOKEN is used in huggingface_hub library
HUGGINGFACEHUB_API_TOKEN environment is change to HF_TOKEN in between 0.23.5 to 0.26

https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#hftoken
https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables#deprecated-environment-variables

the huggingface_hub version in TGI CPU image and TGI Gauid image are different.
Currently HUGGINGFACEHUB_API_TOKEN is used by Xone 2.4.0-intel-cpu image (huggingface_hub 0.23.5),
while HF_TOKE is used by ghcr.io/huggingface/tgi-gaudi:2.3.1 (huggingface_hub 0.26).
Besides, there are other version in TEI embedding image.

During this stage, set both environment variables HUGGINGFACEHUB_API_TOKEN
and HF_TOKEN in docker comose.yaml for huggingface_hub library.

Fix opea-project#1485 align docker image depends on gauid 1.19 driver

Signed-off-by: Wang, Xigui <[email protected]>
@lvliang-intel lvliang-intel merged commit 45d5da2 into opea-project:main Feb 9, 2025
11 checks passed
chensuyue added a commit that referenced this pull request Feb 11, 2025
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