Unable to access model - Error 401 Gated model error although I have access
image776×232 21.5 KBI have access to the gated PaliGemma-3b-mix-224 model from Google, however, when trying to access it through HF, I get the following error:I’ve logged in to HF, created a new access token, used it in the Colab notebook, but it doesn’t work. This used to work before the recent issues with HF access tokens. Any help is appreciated.from huggingface_hub import notebook_loginnotebook_login()
2024-06-03T11:48:50Z
Hi,The strategy regarding tokens recently changed. Basically when going toHugging Face – The AI community building the future., you can refresh and obtain a new token, but unlike before, you can no longer access this token when you close that page and come back to it later. Hence it’s advised to keep its value somewhere in a safe space (like a password manager), and use it anywhere you’d like to use it (like setting it as a HF_TOKEN environment variable or as a Google Colab secret).So my assumption is that you’re probably still using an older token.
2024-06-04T23:42:56Z
@nielsrso to be clear, access to gated models is now no longer via accounts but via a specific tokens within my account?If so,How do I know which token(s) correspond to which gated models?For a gated model and a specific token, how do I give that token access to that gated model?
2024-06-04T23:44:33Z
Also, this change just burned about 168 A100 hours I desperately needed before a deadline
2024-06-05T07:00:17Z
The access to gated models happens through your account. Tokens are just meant as a way to authenticate with the account. You can authenticate with your token by creating one and copying it fromHugging Face – The AI community building the future.. You can create multiple tokens, all of which allow you to authenticate with your account.