Denied permission to DL
HF indicates "Gated model You have been granted access to this model"
However am denied permission when trying to to DL with :
huggingface-cli download meta-llama/Meta-Llama-3-8B-Instruct --include "original/*" --local-dir meta-llama/Meta-Llama-3-8B-Instruct
or with using the 'transformers' script
Denial says: :Cannot access gated repo for url https://huggingface.co/api/models/meta-llama/Meta-Llama-3-8B-Instruct/revision/main.
Repo model meta-llama/Meta-Llama-3-8B-Instruct is gated. You must be authenticated to access it.
Have already tried clearing HF cache hub, but same result.
Thanks for help.
You need to use your HF_Token while you try to access the model
add --token in your download command line
- Apply for the model access from the form they have shared.
- Make sure that you have the HF_TOKEN variable correct for the account that got acccess.
You define the HF_TOKEN value, and later you can use the following line of code:
!huggingface-cli login --token $HF_TOKEN