DeepKE icon indicating copy to clipboard operation
DeepKE copied to clipboard

RuntimeError: Error(s) in loading state_dict for LM

Open dongxiaolong opened this issue 3 years ago • 5 comments

Describe the bug

A clear and concise description of what the bug is.

运行example triple predict.py 抽取关系报错

Environment (please complete the following information):

  • OS: [linux]
  • Python Version [e.g. 3.10]

Screenshots

If applicable, add screenshots to help explain your problem. image

Additional context

Add any other context about the problem here.

dongxiaolong avatar Mar 29 '23 06:03 dongxiaolong

请检查是否使用了正确的模型checkpoint

xxupiano avatar Mar 29 '23 07:03 xxupiano

请检查是否使用了正确的模型checkpoint

使用re_bert.pth和re_roberta.pth都会报错

dongxiaolong avatar Mar 29 '23 07:03 dongxiaolong

请检查是否使用了正确的模型checkpoint

Google drive的模型是错误的,我下载了百度云盘的可以使用。

dongxiaolong avatar Mar 29 '23 07:03 dongxiaolong

请检查是否使用了正确的模型checkpoint

Google drive的模型是错误的,我下载了百度云盘的可以使用。

可以先使用百度云盘模型,Google drive上会尽快同步

tlk1997 avatar Mar 29 '23 08:03 tlk1997

请检查是否使用了正确的模型checkpoint

Google drive的模型是错误的,我下载了百度云盘的可以使用。

可以先使用百度云盘模型,Google drive上会尽快同步

好的,谢谢

dongxiaolong avatar Mar 30 '23 02:03 dongxiaolong