【deepke部署】ConfigAttributeError: Key 'bert_model' is not in struc
omegaconf.errors.ConfigAttributeError: Key 'bert_model' is not in struct
查看全网都没有这个解决方案,csdn上看到一个感觉在放屁。git上找到了一个相关的,link放这里:
https://github.com/zjunlp/DeepKE/issues/153

其实链接里面解释的也不是很清楚,主要是config.yaml文件里面hydra/model设置的问题,因为用的bert模型,所以要切过去。
代码:

更改后,可成功运行。
这错误太离谱了,看百度其他大佬都没碰到过吗?记录一下。