[2023-12-25 01:35:39,333][deepke.relation_extraction.standard.tools.preprocess][INFO] - use bert tokenizer...
'HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-chinese/resolve/main/vocab.txt (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f54d33d9a90>, 'Connection to huggingface.co timed out. (connect timeout=10)'))' thrown while requesting HEAD https://huggingface.co/bert-base-chinese/resolve/main/vocab.txt
[2023-12-25 01:35:49,355][huggingface_hub.utils._http][WARNING] - 'HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-chinese/resolve/main/vocab.txt (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f54d33d9a90>, 'Connection to huggingface.co timed out. (connect timeout=10)'))' thrown while requesting HEAD https://huggingface.co/bert-base-chinese/resolve/main/vocab.txt
Traceback (most recent call last):
File "predict.py", line 96, in main
data, rels = _preprocess_data(data, cfg)
File "predict.py", line 40, in _preprocess_data
_lm_serialize(data,cfg)
File "/root/miniconda3/lib/python3.7/site-packages/deepke-2.2.7-py3.7.egg/deepke/relation_extraction/standard/tools/preprocess.py", line 120, in _lm_serialize
tokenizer = BertTokenizer.from_pretrained(cfg.lm_file)
File "/root/miniconda3/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 1777, in from_pretrained
_commit_hash=commit_hash,
File "/root/miniconda3/lib/python3.7/site-packages/transformers/utils/hub.py", line 420, in cached_file
local_files_only=local_files_only,
File "/root/miniconda3/lib/python3.7/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/lib/python3.7/site-packages/huggingface_hub/file_download.py", line 1148, in hf_hub_download
with open(ref_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/huggingface/hub/models--bert-base-chinese/refs/main'
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
使用训练好的DeepKE(RE), RoBERTa-wwm-ext, Chinese 模型,按照要求配置了
[2023-12-25 01:35:39,333][deepke.relation_extraction.standard.tools.preprocess][INFO] - use bert tokenizer...
'HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-chinese/resolve/main/vocab.txt (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f54d33d9a90>, 'Connection to huggingface.co timed out. (connect timeout=10)'))' thrown while requesting HEAD https://huggingface.co/bert-base-chinese/resolve/main/vocab.txt
[2023-12-25 01:35:49,355][huggingface_hub.utils._http][WARNING] - 'HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /bert-base-chinese/resolve/main/vocab.txt (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f54d33d9a90>, 'Connection to huggingface.co timed out. (connect timeout=10)'))' thrown while requesting HEAD https://huggingface.co/bert-base-chinese/resolve/main/vocab.txt
Traceback (most recent call last):
File "predict.py", line 96, in main
data, rels = _preprocess_data(data, cfg)
File "predict.py", line 40, in _preprocess_data
_lm_serialize(data,cfg)
File "/root/miniconda3/lib/python3.7/site-packages/deepke-2.2.7-py3.7.egg/deepke/relation_extraction/standard/tools/preprocess.py", line 120, in _lm_serialize
tokenizer = BertTokenizer.from_pretrained(cfg.lm_file)
File "/root/miniconda3/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 1777, in from_pretrained
_commit_hash=commit_hash,
File "/root/miniconda3/lib/python3.7/site-packages/transformers/utils/hub.py", line 420, in cached_file
local_files_only=local_files_only,
File "/root/miniconda3/lib/python3.7/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
return fn(*args, **kwargs)
File "/root/miniconda3/lib/python3.7/site-packages/huggingface_hub/file_download.py", line 1148, in hf_hub_download
with open(ref_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/huggingface/hub/models--bert-base-chinese/refs/main'
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
使用训练好的DeepKE(RE), RoBERTa-wwm-ext, Chinese 模型,按照要求配置了