欢迎光临散文网 会员登陆 & 注册

【deepke部署】ConfigAttributeError: Key 'bert_model' is not in struc

2023-03-04 13:59 作者:颜恬址址址址  | 我要投稿

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模型,所以要切过去。

代码:

更改后,可成功运行。

这错误太离谱了,看百度其他大佬都没碰到过吗?记录一下。

【deepke部署】ConfigAttributeError: Key 'bert_model' is not in struc的评论 (共 条)

分享到微博请遵守国家法律