-
Notifications
You must be signed in to change notification settings - Fork 3k
【PaddleNLP No.19】Create ernie1.0 infer example to fit pd3.0.0 #10426
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
Conversation
Thanks for your contribution! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10426 +/- ##
========================================
Coverage 49.01% 49.01%
========================================
Files 765 765
Lines 125877 125877
========================================
Hits 61699 61699
Misses 64178 64178 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
||
## 快速开始 | ||
|
||
以下示例展示如何基于 FastDeploy 库完成 ERNIE 1.0 模型在 ChnSenticorp 数据集上进行文本分类任务的 Python 预测部署,可通过命令行参数`--device`以及`--backend`指定运行在不同的硬件以及推理引擎后端,并使用`--model_dir`参数指定运行的模型,具体参数设置可查看下面[参数说明](#参数说明)。示例中的模型是按照 [ERNIE 1.0 训练文档](../../README.md)导出得到的部署模型,其模型目录为`model_zoo/ernie-1.0/finetune/tmp/export`(用户可按实际情况设置)。 | ||
以下示例展示 ERNIE 1.0 模型在 ChnSenticorp 数据集上进行文本分类任务的 Python 预测部署,可通过命令行参数`--device`指定运行在不同的硬件,并使用`--model_dir`参数指定运行的模型,具体参数设置可查看下面[参数说明](#参数说明)。示例中的模型是按照 [ERNIE 1.0 训练文档](../../README.md)导出得到的部署模型,其模型目录为`model_zoo/ernie-1.0/finetune/tmp/export`(用户可按实际情况设置)。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
赞👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
hi, @hanlintang
|
PR types
Function optimization
PR changes
Models
Description
Create ernie1.0 infer example to fit pd3.0.0.
Modified:
slm/model_zoo/ernie-1.0/README.md
slm/model_zoo/ernie-1.0/finetune/deploy/README.md
Added:
slm/model_zoo/ernie-1.0/finetune/deploy/infer.py
for adding a new infer example withpaddle.inference
.Deleted:
slm/model_zoo/ernie-1.0/finetune/deploy/seq_cls_infer.py
for outdated implementation.Issue: #9763
@DrownFish19