Error of accessing "google/gemma-2b-it"
I saw the message of "Gated model You have been granted access to this model". I also generated access token from my setting page, and execute below in my own laptop jupyter notebook:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b-it", access_token='my_token')
However, it return error as below:
OSError: You are trying to access a gated repo.
Make sure to have access to it at https://huggingface.co/google/gemma-2b-it.
401 Client Error. (Request ID: Root=1-65f82134-062dd48c15237b043a2e1329;dbe75382-8097-4c51-a951-868060dfaf89)
Cannot access gated repo for url https://huggingface.co/google/gemma-2b-it/resolve/main/config.json.
Repo model google/gemma-2b-it is gated. You must be authenticated to access it.
What's wrong?
Thank you for your response. I had resolved the issue. As my mistake in typing the param name as, "access_token", and it should be "token". :-)