Access to Restricted Repo
Previously, I was able to successfully access and utilise this model repository both programmatically and via the website. However, I am now receiving a 401 Client Error: Unauthorized message when attempting to load the model through the transformers library. My token appears to be valid, and I am still able to access the repository via the website without any issues.
Here is a summary of the troubleshooting steps I have already undertaken:
1. I confirmed that my Hugging Face token is active and has read permissions by logging in via the CLI (huggingface-cli login).
2. I explicitly passed the token in my script using the use_auth_token parameter.
3. I verified my environment variables and set HUGGINGFACE_TOKEN explicitly.
4. I updated both the transformers and huggingface_hub libraries to their latest versions.
5. I cleared the local model cache using huggingface-cli delete-cache and attempted to redownload the model.
6. I also tested downloading specific files via hf_hub_download and encountered the same issue.
Despite these steps, the issue persists. The error suggests that I do not have access to the repository, even though my token works on the Hugging Face website. But I don't know the reasons.