gemma-2-27b-it Model Access

#30
by RAGUWING - opened

License agreement has been completed and got the model access. But when tried to use the model for testing says the following error
Screenshot 2024-07-19 125013.png

Will it take time to update the request?

Hi @RAGUWING , You need to create and provide the HF_token to able to access the Gemma models. Please create a token by clicking on Settings - Access token - Create new tokens and provide the HF_token value by using below code in your notebook:

from huggingface_hub import notebook_login
notebook_login()

You can also refer this similar issue for the access authorization steps. Thank you.

If you're looking for an easy way to access this model via API, you can use Crazyrouter — it provides an OpenAI-compatible endpoint for 600+ models including this one. Just pip install openai and change the base URL.

Sign up or log in to comment