你好,我在预训练结束后尝试导入checkpoint的时候,会报这个错误
Traceback (most recent call last):
File "/root/miniconda3/envs/bunny/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1048, in from_pretrained
config_class = CONFIG_MAPPING[config_dict["model_type"]]
File "/root/miniconda3/envs/bunny/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 750, in getitem
raise KeyError(key)
KeyError: 'bunny-phi'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/autodl-tmp/Bunny-main/script/val.py", line 26, in
config = BunnyPhiConfig.from_pretrained(model_name)
File "/root/miniconda3/envs/bunny/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1050, in from_pretrained
raise ValueError(
ValueError: The checkpoint you are trying to load has model type bunny-phi but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
你好,我在预训练结束后尝试导入checkpoint的时候,会报这个错误
Traceback (most recent call last):
File "/root/miniconda3/envs/bunny/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1048, in from_pretrained
config_class = CONFIG_MAPPING[config_dict["model_type"]]
File "/root/miniconda3/envs/bunny/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 750, in getitem
raise KeyError(key)
KeyError: 'bunny-phi'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/autodl-tmp/Bunny-main/script/val.py", line 26, in
config = BunnyPhiConfig.from_pretrained(model_name)
File "/root/miniconda3/envs/bunny/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1050, in from_pretrained
raise ValueError(
ValueError: The checkpoint you are trying to load has model type
bunny-phibut Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.