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

[Fea] Support python inference #773

Merged

Conversation

HydrogenSulfate
Copy link
Collaborator

@HydrogenSulfate HydrogenSulfate commented Jan 29, 2024

PR types

New features

PR changes

APIs

Describe

  1. 初步支持模型导出和python推理,并适配aneurysm案例
  2. 删除config.py中的冗余检查代码,这部分代码实际上已由pydantic的type hint完成
  3. 添加推理相关配置的pydantic schema
  4. 使用指南添加模型导出、python推理章节

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Jan 29, 2024
@PaddlePaddle PaddlePaddle unlocked this conversation Jan 29, 2024
onnx_path (Optional[str], optional): Path to the ONNX model file. Defaults to None.
ir_optim (bool, optional): Whether to use IR optimization. Defaults to True.
min_subgraph_size (int, optional): Minimum subgraph size for IR optimization. Defaults to 15.
gpu_mem (int, optional): Maximum GPU memory(MB) to use. Defaults to 500(MB).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个参数应该不是最大显存占用,可以再确认下

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已根据官方文档进行更正

Copy link
Collaborator

@zhiminzhang0830 zhiminzhang0830 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@HydrogenSulfate HydrogenSulfate merged commit 988fd33 into PaddlePaddle:develop Feb 4, 2024
3 checks passed
@HydrogenSulfate HydrogenSulfate deleted the add_py_infer_deploy branch May 8, 2024 09:24
huohuohuohuohuo123 pushed a commit to huohuohuohuohuo123/PaddleScience that referenced this pull request Aug 12, 2024
* [Doc] Add pretrained model for laplace2d & refine comments (PaddlePaddle#639)

* update laplace2d pretrained model

* remove 'after finished training' comment in evaluate function

* update README.md

* add deploy module for aneurysm

* update code

* update aneurysm code

* update code

* update code

* update code

* update aneurysm document

* update export and inference document

* fix docstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants