IDEA-CCNL/Fengshenbang-LM

执行uniex的example.py报错

LANSEYOUYUMOWANG opened this issue · 0 comments

执行uniex 的example.py进行微调时,报如下错误:
image
Traceback (most recent call last):
File "/home/yhao/anaconda3/envs/fengshen-uniex/lib/python3.8/site-packages/transformers/configuration_utils.py", line 675, in _get_config_dict
resolved_config_file = cached_file(
File "/home/yhao/anaconda3/envs/fengshen-uniex/lib/python3.8/site-packages/transformers/utils/hub.py", line 429, in cached_file
resolved_file = hf_hub_download(
File "/home/yhao/anaconda3/envs/fengshen-uniex/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 110, in _inner_fn
validate_repo_id(arg_value)
File "/home/yhao/anaconda3/envs/fengshen-uniex/lib/python3.8/site-packages/huggingface_hub/utils/_validators.py", line 164, in validate_repo_id
raise HFValidationError(
huggingface_hub.utils.validators.HFValidationError: Repo id must use alphanumeric chars or '-', '', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "example.py", line 53, in
main()
File "example.py", line 35, in main
model = UniEXPipelines(args)
File "/home/yhao/Fengshenbang-LM/fengshen/pipelines/information_extraction.py", line 72, in init
self.model = UniEXLitModel(args)
File "/home/yhao/Fengshenbang-LM/fengshen/models/uniex/modeling_uniex.py", line 1043, in init
self.config=AutoConfig.from_pretrained(args.pretrained_model_path)
File "/home/yhao/anaconda3/envs/fengshen-uniex/lib/python3.8/site-packages/transformers/models/auto/configuration_auto.py", line 1034, in from_pretrained
config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/home/yhao/anaconda3/envs/fengshen-uniex/lib/python3.8/site-packages/transformers/configuration_utils.py", line 620, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/home/yhao/anaconda3/envs/fengshen-uniex/lib/python3.8/site-packages/transformers/configuration_utils.py", line 696, in _get_config_dict
raise EnvironmentError(
OSError: Can't load the configuration of ''. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure '' is the correct path to a directory containing a config.json file