【deepke部署】ConfigAttributeError: Key 'bert_model' is not in struc
omegaconf.errors.ConfigAttributeError: Key 'bert_model' is not in struct
查看全網(wǎng)都沒有這個(gè)解決方案,csdn上看到一個(gè)感覺在放屁。git上找到了一個(gè)相關(guān)的,link放這里:
https://github.com/zjunlp/DeepKE/issues/153

其實(shí)鏈接里面解釋的也不是很清楚,主要是config.yaml文件里面hydra/model設(shè)置的問題,因?yàn)橛玫腷ert模型,所以要切過去。
代碼:

更改后,可成功運(yùn)行。
這錯(cuò)誤太離譜了,看百度其他大佬都沒碰到過嗎?記錄一下。
標(biāo)簽: