Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load config for 'xlm-roberta-large' #18

Open
zixinkai opened this issue Jul 4, 2023 · 2 comments
Open

Can't load config for 'xlm-roberta-large' #18

zixinkai opened this issue Jul 4, 2023 · 2 comments

Comments

@zixinkai
Copy link

zixinkai commented Jul 4, 2023

what's matter please

Traceback (most recent call last):
File "train.py", line 90, in
student=config.create_student(nocrf=args.nocrf)#调用 config 的 create_student 方法来创建一个学生模型,指定是否启用 CRF
File "/root/flair/config_parser.py", line 234, in create_student
return self.create_model(self.config,pretrained=self.load_pretrained(self.config), is_student=True)
File "/root/flair/config_parser.py", line 187, in create_model
embeddings, word_map, char_map, lemma_map, postag_map=self.create_embeddings(config['embeddings'])
File "/root/flair/config_parser.py", line 162, in create_embeddings
embedding_list.append(getattr(Embeddings,embedding.split('-')[0])(**embeddings[embedding]))
File "/root/flair/embeddings.py", line 2931, in init
self.tokenizer = AutoTokenizer.from_pretrained(model, **kwargs)
File "/opt/anaconda3/envs/pytorch/lib/python3.7/site-packages/transformers/tokenization_auto.py", line 206, in from_pretrained
config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
File "/opt/anaconda3/envs/pytorch/lib/python3.7/site-packages/transformers/configuration_auto.py", line 203, in from_pretrained
config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/opt/anaconda3/envs/pytorch/lib/python3.7/site-packages/transformers/configuration_utils.py", line 251, in get_config_dict
raise EnvironmentError(msg)
OSError: Can't load config for 'xlm-roberta-large'. Make sure that:

  • 'xlm-roberta-large' is a correct model identifier listed on 'https://huggingface.co/models'

  • or 'xlm-roberta-large' is the correct path to a directory containing a config.json file

@zixinkai
Copy link
Author

zixinkai commented Jul 8, 2023

请问哪段代码体现了上下文检索和re-rank

@zixinkai
Copy link
Author

zixinkai commented Jul 8, 2023

请问缺少en_retrieval.txt文件吧,bert_scoring.py文件再哪里使用的呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant