Error

#25
by ImpactInsights - opened

Cannot access gated repo for url https://huggingface.co/google/gemma-2-9b/resolve/main/config.json.
Access to model google/gemma-2-9b is restricted. You must be authenticated to access it.

What could be the solution to this?

Create a token with read access and use it

Google org

@ImpactInsights , Hope this helped!

As mentioned by @GPT007 , you can create you HF_token by clicking on Settings - Access Tokens(left pane) - Create Token in HF site and pass this token value in your notebook by using below code line or by putting as a secret key in you Colab notebook.

from huggingface_hub import notebook_login
notebook_login()

Sign up or log in to comment