Cannot access with my read-only token

#1
by stellarway - opened

I cannot download repo or model in Unbabel/wmt22-cometkiwi-da
(python==3.8, unbabel-comet==2.1.0)

Initially, I tried to download model with below code:

model_path = download_model("Unbabel/wmt22-cometkiwi-da")

But it doesn't work. So I tried it again after login huggingface_hub with my own read-only token but it still doesn't work.
(The login was very successful)

from huggingface_hub import snapshot_download, login
login(token="MY_TOKEN")
snapshot_download(repo_id="Unbabel/wmt22-cometkiwi-da")

The Error message is below:
Cannot access gated repo for url https://huggingface.co/api/models/Unbabel/wmt22-cometkiwi-da/revision/main.
Access to model Unbabel/wmt22-cometkiwi-da is restricted and you are not in the authorized list. Visit https://huggingface.co/Unbabel/wmt22-cometkiwi-da to ask for access.

Is there any process to access your model?

hmm This is weird because users are automatically accepted. Can you test what happens when you run:

huggingface-cli login
# or using an environment variable
huggingface-cli login --token $HUGGINGFACE_TOKEN

Just curious because thats what I usually use to login.

Unbabel org

and did you acknowledge its license?

Sign up or log in to comment