requests.exceptions.SSLError: (MaxRetryError("HTTPSConnectionPool(host='cdn-lfs-us-1.huggingface.co', port=443):

#15
by Leo31019 - opened

I encountered this error and fixed how to do it.

When I referred similar error in this web page(https://github.com/huggingface/transformers/issues/12575), it was recommended to insert download option
like this 'model = TFAutoModelForSeq2SeqLM.from_pretrained(MODEL_CHECKPOINT, resume_download=True,)'

In my log, I found the huggingface download code here ' hf_hub_download(repo_id=repo_id, filename=filename, local_dir=local_dir)' in gradio_app.py

Therefore, I edited this command
- Before : hf_hub_download(repo_id=repo_id, filename=filename, local_dir=local_dir)
- After : hf_hub_download(repo_id=repo_id, filename=filename, local_dir=local_dir, resume_download=True)

Then it worked!

Sign up or log in to comment