-
Notifications
You must be signed in to change notification settings - Fork 227
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
[hub] - hf hub internal api no longer returns an error for invalid access tokens when using listFiles for a gated model #945
Comments
Available in |
Merged
coyotte508
added a commit
that referenced
this issue
Oct 5, 2024
More helpers for #945 Introduces `checkRepoAccess` to check if user has read access to repo
And |
Got it! Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
Hi, not sure if this is the correct place to post this issue since it seems to be an internal api change.
Previously, listing files in a gated repo using listFiles with an invalid or undefined access token would throw an authentication error. Now the authentication error is not thrown until an attempt is made to download one of the gated files with said invalid token.
Would it be possible/within scope to add some kind of hint to specify whether or not the user provided access token used in listModels/listFiles is able to access the gated model.
Example
For example, when going to https://huggingface.co/google/gemma-2b/tree/main, I am immediately informed whether or not I have access to the gated model.
Use case
Jellybox allows users to input their access token to download gated models after accepting the model conditions.
The text was updated successfully, but these errors were encountered: