-
Notifications
You must be signed in to change notification settings - Fork 3k
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]: Taskflow如何指定模型路径,task为information_extraction #9698
Comments
你的paddle是什么版本? |
请问您找到在哪里下载inference.pdmodel文件了吗 |
paddlepaddle 3.0.0.dev20241225 通过设置环境变量 |
该文件不是下载下来的, static/目录是生成的 |
我的意思是多次下载不成功,就想自己手动下载放到相应地址,但是没找到在仓库的哪里进行下载
…---Original---
From: ***@***.***>
Sent at: 2025年1月2日(Thu) AM8:41
To: ***@***.***>;
Cc: "Chonglin ***@***.******@***.***>;
Subject: Re: [PaddlePaddle/PaddleNLP] [Question]: Taskflow如何指定模型路径,task为information_extraction (Issue #9698)
请提出你的问题
我通过task_path和home_path设定均会报错
Traceback (most recent call last): File "/root/work/filestorage/liujc/paddle/main.py", line 7, in <module> model = Taskflow( File "/usr/local/lib/python3.10/dist-packages/paddlenlp/taskflow/taskflow.py", line 809, in __init__ self.task_instance = task_class( File "/usr/local/lib/python3.10/dist-packages/paddlenlp/taskflow/information_extraction.py", line 536, in __init__ self._get_inference_model() File "/usr/local/lib/python3.10/dist-packages/paddlenlp/taskflow/task.py", line 372, in _get_inference_model self._prepare_static_mode() File "/usr/local/lib/python3.10/dist-packages/paddlenlp/taskflow/task.py", line 227, in _prepare_static_mode self.predictor = paddle.inference.create_predictor(self._config) RuntimeError: (Unavailable) Not allowed to load partial data via load_combine_op, please use load_op instead. [Hint: Expected buffer->eof() == true, but received buffer->eof():0 != true:1.] (at /paddle/paddle/phi/kernels/impl/load_combine_kernel_impl.h:81) [operator < load_combine > error]
而且保存的模型路径中,缺失了inference.pdmodel文件。
请问您找到在哪里下载inference.pdmodel文件了吗
该文件不是下载下来的, static/目录是生成的
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
模型文件只有model_state.pdparams,static目录中的inference.pdmodel是运行taskflow代码生成的,他会自动检测你有没有inference.pdmodel这个文件,正常情况没有会主动生成,但是由于某些错误(我通过export FLAGS_enable_pir_api=0修复成功),没有生成,官方应该并没有提供该文件。 |
好的,非常感谢
…---Original---
From: ***@***.***>
Sent at: 2025年1月2日(Thu) AM10:04
To: ***@***.***>;
Cc: "Chonglin ***@***.******@***.***>;
Subject: Re: [PaddlePaddle/PaddleNLP] [Question]: Taskflow如何指定模型路径,task为information_extraction (Issue #9698)
模型文件只有model_state.pdparams,static目录中的inference.pdmodel是运行taskflow代码生成的,他会自动检测你有没有inference.pdmodel这个文件,正常情况没有会主动生成,但是由于某些错误(我通过export FLAGS_enable_pir_api=0修复成功),没有生成,官方应该并没有提供该文件。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
请提出你的问题
我通过task_path和home_path设定均会报错
而且保存的模型路径中,缺失了inference.pdmodel文件。
The text was updated successfully, but these errors were encountered: