Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: 使用官网模型ERNIE-UIE示例运行时出现找不到interface.pdmodel #9484

Open
qlprimer opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@qlprimer
Copy link

qlprimer commented Nov 22, 2024

请提出你的问题

环境:win11/1080ti
paddle版本:3.0-beta
paddlenlp版本: 3.0.0-beta0
cuda 版本11.8 cudnn:cudnn-windows-x86_64-8.9.7.29_cuda11-archive
根据官网示例:
`from pprint import pprint

import paddlenlp
from paddlenlp import Taskflow
print("PaddleNLP version:", paddlenlp.version)
schema = ['时间', '选手', '赛事名称']
ie = Taskflow('information_extraction', schema=schema, model='uie-base')
pprint(ie("2月8日上午北京冬奥会自由式滑雪女子大跳台决赛中中国选手谷爱凌以188.25分获得金牌!"))`

系统自动下载了相关模型,但运行起来后报错,内容如下:
`
self._config = paddle.inference.Config(self.static_model_file, self.static_params_file)
RuntimeError: (NotFound) Cannot open file D:\paddle_model\paddlenlp\taskflow\information_extraction\uie-base\static\inference.pdmodel, please confirm whether the file is normal.
[Hint: Expected paddle::inference::IsFileExists(prog_file
) == true, but received paddle::inference::IsFileExists(prog_file
):0 != true:1.] (at ..\paddle\fluid\inference\api\analysis_config.cc:111)

`

经检查没有找到inference.pdmodel这个文件,全网搜寻资料也没能找到答案,目前这个测试代码无法运行

@qlprimer qlprimer added the question Further information is requested label Nov 22, 2024
@qlprimer
Copy link
Author

cuda 版本11.8 cudnn:cudnn-windows-x86_64-8.9.7.29_cuda11-archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants