Issue with downloading the bloom model

#3
by yongzx - opened
BigScience Workshop org

Wondering if anyone else encounter this issue, where they run into 401 Client Error

>>> import transformers
>>> model = transformers.AutoModel.from_pretrained("bigscience/bloom-1b3")
401 Client Error: Unauthorized for url: https://huggingface.co/bigscience/bloom-1b3/resolve/main/config.json

but is fine when they use GitHub to download the model: git clone https://huggingface.co/bigscience/bloom-1b3

BigScience Workshop org

The model is private; are you using an access token?

BigScience Workshop org

I have already run huggingface-cli login though. Do I need to explicitly call the access token?

BigScience Workshop org

can you try adding use_auth_token=True to your from_pretrained call?

BigScience Workshop org

Now it works. Thank you!

yongzx changed discussion status to closed

Sign up or log in to comment