Getting 401 unaauthorized when trying to use google/gemma-3-27b-it
HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/google/gemma-3-27b-it/resolve/main/config.json
The above exception was the direct cause of the following exception:
GatedRepoError Traceback (most recent call last)
GatedRepoError: 401 Client Error. (Request ID: Root=1-6812bda5-3f9919350ec1c9730764bd02;298f606a-ac9a-490e-a5f7-d07569aafa5f)
Cannot access gated repo for url https://huggingface.co/google/gemma-3-27b-it/resolve/main/config.json.
Access to model google/gemma-3-27b-it is restricted. You must have access to it and be authenticated to access it. Please log in.
You must login to huggingface_hub by using your hf_token. You also need to be granted access to the model on your account for the token to work