train
Closed this issue · 7 comments
strawberrybbq commented
train.sh模型找不到
strawberrybbq commented
运行时显示OSError: Model name './bert/torch_roberta_wwm' was not found in tokenizers model name list (bert-base-uncased, bert-large-uncased, bert-base-cased, bert-large-cased,...
是我模型没有下载对吗
WuHuRestaurant commented
这个文件夹里面你下的什么样子
strawberrybbq commented
strawberrybbq commented
WuHuRestaurant commented
把bert_config.json 改成config.json
strawberrybbq commented
感谢你的回复 问题已解决 config.json文件名已改,除此之外,对tokenizer = BertTokenizer.from_pretrained(model_name)和bert_model = BertModel.from_pretrained(MODEL_PATH)这两个函数的参数也进行了修改。
strawberrybbq commented
谢谢作者!!