Problem in installing a gated file

Hi Everyone I am trying to install a gated file, while I am successful in token authentication using huggingface-cli login and I have been granted access to the model, however when I did pip install download link, error 401 occurs. I cannot understand what went wrong as I even tried typing the token in manually myself rather than copy and paste. I would be very grateful for any assistance.

Thank You

WARNING: 401 Error, Credentials not correct for https://huggingface.co/facebook/UMA/resolve/main/checkpoints/uma-m-1p1.pt
  ERROR: HTTP error 401 while getting https://huggingface.co/facebook/UMA/resolve/main/checkpoints/uma-m-1p1.pt
ERROR: Could not install requirement https://huggingface.co/facebook/UMA/resolve/main/checkpoints/uma-m-1p1.pt because of HTTP error 401 Client Error: Unauthorized for url: https://huggingface.co/facebook/UMA/resolve/main/checkpoints/uma-m-1p1.pt for URL https://huggingface.co/facebook/UMA/resolve/main/checkpoints/uma-m-1p1.pt
1 Like

pip install download link

Hmm… pip install https://huggingface.co/.../resolve/.../uma-m-1p1.pt? It never work.

# 1) Log in once (stores token locally)
# docs: https://huggingface.co/docs/huggingface_hub/en/quick-start
hf auth login

# 2) Download the single file from a subfolder of the repo
# docs: https://huggingface.co/docs/huggingface_hub/en/guides/cli
hf download facebook/UMA checkpoints/uma-m-1p1.pt \
  --local-dir ./uma_ckpts --local-dir-use-symlinks False

Oh wow thank you very much its finally downloading with the hf download. Much Much Much appreciated. Thank You!

1 Like