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

Bugfix - missing HF token to retrieve model information #1522

Merged

Conversation

ArzelaAscoIi
Copy link
Contributor

@ArzelaAscoIi ArzelaAscoIi commented Apr 15, 2022

The SentenceTransformer class supports the use_auth_token parameter, but the snapshot_download function does not use the huggingface token to retrieve the model information before downloading the model. Therefore, the huggingface api returns a 404 if you want to use private models (_api.model_info).

@ArzelaAscoIi ArzelaAscoIi changed the title Bugfix - Added token for model info Bugfix - missing HF token to retrieve model information Apr 15, 2022
@ArzelaAscoIi
Copy link
Contributor Author

Hi @nreimers ! :) Could you help me and have a look at this PR and check if this could be merged ? I think this is currently blocking users to use private HF models. 🤔 Let me know if I should change something. :)

@nreimers
Copy link
Member

nreimers commented Jun 3, 2022

Sorry for taking so long and thanks for pushing this back to my attention. I will try to merge it soon.

@ArzelaAscoIi
Copy link
Contributor Author

No worries! Thank you for taking care of this! 🙂

@nreimers nreimers merged commit fabf9c3 into UKPLab:master Jun 21, 2022
@ArzelaAscoIi ArzelaAscoIi deleted the bugfix/missingHFTokenForModelInfo branch June 21, 2022 16:16
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.

2 participants