-
Notifications
You must be signed in to change notification settings - Fork 239
Description
When I run ">>>text = '2022年北京市举办了冬奥会
>>> "results = infer(text=text, task="EE"',
the output is:
"TypeError: 'str' object is not callable" load from local file: /root/.cache/OmniEvent_Model/s2s-mt5-ed model Traceback (most recent call last): File "/root/miniconda3/envs/omeve/lib/python3.10/site-packages/transformers/configuration_utils.py", line 623, in _get_config_dict resolved_config_file = cached_path( File "/root/miniconda3/envs/omeve/lib/python3.10/site-packages/transformers/utils/hub.py", line 299, in cached_path raise EnvironmentError(f"file {url_or_filename} not found") OSError: file /root/.cache/OmniEvent_Model/s2s-mt5-ed/config.json not found “
After analysis, it was found that the error occurred when the program attempted to download the s2s-mt5-ed model from Hugging Face. However, my computer was unable to connect to
the Hugging Face server (many computers in China are unable to connect to Hugging Face). I attempted to manually download the model using hf-mirro and modelscope,
but was unable to locate the model.
Where can I download this model in China?