Skip to content

pdz怎么转pdmodel #4022

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

Open
DrewdropLife opened this issue Mar 20, 2025 · 4 comments
Open

pdz怎么转pdmodel #4022

DrewdropLife opened this issue Mar 20, 2025 · 4 comments
Assignees

Comments

@DrewdropLife
Copy link

我想使用punc模型,将其转为onnx,但发现下载的ernie-tiny.tar.gz
模型,打开是pdz格式,不知道要怎么转pdmodel呢?

@zxcd
Copy link
Collaborator

zxcd commented Mar 20, 2025

可以把pdz看成动态图模型,如果需要将其转换为onnx,需要先转静变成pdmode+pdiparams之后再转onnx.

@zxcd zxcd self-assigned this Mar 20, 2025
@DrewdropLife
Copy link
Author

可以把pdz看成动态图模型,如果需要将其转换为onnx,需要先转静变成pdmode+pdiparams之后再转onnx.

能否告诉我具体的转换代码,谢谢🙏

@zxcd
Copy link
Collaborator

zxcd commented Mar 21, 2025

ernie-tiny.tar.gz 这个模型暂时没有提供转Onnx的脚本,你可以自己尝试转静,或者问问提供模型的 paddlenlp

Copy link

stale bot commented May 6, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants