Hugging Face Login

1. Login to Hugging Face CLI

If you haven't logged in yet, authenticate via the command line:

huggingface-cli login
    

This will prompt you to enter your Hugging Face token. You can generate a token from your Hugging Face account:

2. Verify Repository Access

Ensure you have the necessary permissions to access the restricted model:

3. Set Up API Token

If you're accessing the model programmatically, configure the token properly:

export HUGGINGFACE_TOKEN=<your_token_here>
    

Or set it directly in your script:

from huggingface_hub import HfApi

api = HfApi()
api.login(token="<your_token_here>")
    

4. Retry Model Download

Once authenticated, run the command or script again to access the model.

Note:

If you still encounter issues, double-check that the model owners have granted access. If not, you'll need to wait for their approval.