-
Notifications
You must be signed in to change notification settings - Fork 28.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bad error message when downloading private model without being logged in. #15980
Comments
Related: huggingface/datasets#3855 |
I don't think that requires changes to moon-landing From what i understand, you need to catch this error and display the appropriate message here (currently the underlying error message is suppressed) |
To catch this error, the Of course defaulting |
In my mind |
Will be solved by huggingface/huggingface_hub#878 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
You can see what models are available by going to Models - Hugging Face 1.0k and search the name by using the filter - by name. |
Let's say an organization creates a private model and wants to share it with other team members which are less savy of
huggingface_hub
andtransformers
.So e.g. I create: https://huggingface.co/NewT5/dummy_model
and want to share it with others.
Now if I run:
I'm getting a very nice error message:
After this error message I think people will have an easy time doing the correct thing which is passing use_auth_token=True and previously running
huggingface-cli login
.Now what will often happen though in my opinion is that someone will share the following code with unsavy coworkers / collaborators:
Now if you are not logged in, you are getting the following error message:
This error message is not great really, because the problem is not that the model doesn't exist, but it's because the user didn't run
huggingface-cli login
I think it's worth fixing the error message here (maybe just the same as when passing
use_auth_token=True
is missing because IMO it's a common case that people will hare code withuse_auth_token=True
.We probably need to do this in moon-landing though no?
Env
transformers
version: 4.18.0.dev0and hugging face hub version:
0.4.0.dev0
The text was updated successfully, but these errors were encountered: