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

Fix pinned huggingface-inference-toolkit to include path patch #127

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

alvarobartt
Copy link
Member

Description

As a follow up of #124, this PR updates the pinned version so that it points to huggingface/huggingface-inference-toolkit#76 instead, as it contains a fix for the Google Cloud Storage (GCS) path downloads.

To reproduce locally one can run the following:

Warning

The command below assumes that huggingface-pytorch-inference-cpu.2.2.2.transformers.4.41.0.py311 is the local Docker image name built as:

docker build --platform=linux/amd64 -t huggingface-pytorch-inference-cpu.2.2.2.transformers.4.41.0.py311 -f containers/pytorch/inference/cpu/2.2.2/transformers/4.41.1/py311/Dockerfile .

And that the AIP_STORAGE_URI is pointing to a valid bucket on GCS, with a Transformers compatible model.

docker run --platform linux/amd64 -v ~/.config/gcloud:/root/.config/gcloud -e GOOGLE_APPLICATION_CREDENTIALS="/root/.config/gcloud/application_default_credentials.json" -e GOOGLE_CLOUD_PROJECT="yout-project-id" -e HF_TASK="your-task" -e AIP_STORAGE_URI="your-bucket-path" huggingface-pytorch-inference-cpu.2.2.2.transformers.4.41.0.py311

@alvarobartt alvarobartt added the fix label Dec 3, 2024
@alvarobartt alvarobartt self-assigned this Dec 3, 2024
@alvarobartt alvarobartt merged commit b174d63 into main Dec 3, 2024
1 check passed
@alvarobartt alvarobartt deleted the fix-pinned-huggingface-inference-toolkit branch December 3, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant