Open yuanxion opened 1 year ago
requests.exceptions.SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-cased/resolve/main/vocab.txt (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
> /home/intel/yuan/workspace/poc/t2v/video-diffusion-pytorch/test-download-huggingface-bert.py(5)<module>()
-> tokenizer = torch.hub.load('huggingface/pytorch-transformers', 'tokenizer', 'bert-base-cased')
(Pdb)
Using cache found in /home/intel/.cache/torch/hub/huggingface_pytorch-transformers_main
2023-08-31 15:05:12.551064: I tensorflow/core/util/port.cc:110] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-08-31 15:05:12.575219: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-08-31 15:05:13.446573: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
requests.exceptions.SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-cased/resolve/main/vocab.txt (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
git init
git lfs install
git clone https://huggingface.co/bert-base-cased
Download models/config files and cache them for local usage. https://zhuanlan.zhihu.com/p/475260268
git lfs install https://blog.csdn.net/flyingluohaipeng/article/details/130788293
git clone https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0
mkdir dreamlike-art
mv dreamlike-photoreal-2.0/ dreamlike-art/
[ ] fusing/stable-diffusion-v1-5-controlnet-openpose diffusion_pytorch_model.bin can be downloaded from https://huggingface.co/fusing/stable-diffusion-v1-5-controlnet-openpose
[ ] runwayml/stable-diffusion-v1-5 https://huggingface.co/runwayml/stable-diffusion-v1-5/
huggingface_hub snapshot_download
requests.exceptions.SSLError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/dreamlike-art/dreamlike-photoreal-2.0/revision/main (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
Add import os; os.environ['CURL_CA_BUNDLE'] = ''
to try downloading again, or try many times.
from huggingface_hub import snapshot_download
import os
os.environ['CURL_CA_BUNDLE'] = ''
snapshot_download(repo_id="dreamlike-art/dreamlike-photoreal-2.0")
HTTP Error 403
urllib.error.HTTPError: HTTP Error 403: rate limit exceeded