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

Update ERNIE Task TIPC script #3302

Merged
merged 3 commits into from
Sep 21, 2022

Conversation

JunnYu
Copy link
Member

@JunnYu JunnYu commented Sep 19, 2022

PR types

Others

PR changes

Others

Description

  • 更新ernie_text_clsernie_text_matchingernie_information_extraction三个任务的tipc脚本代码。

测试脚本

# 安装依赖
pip install git+https://github.com/LDOUBLEV/AutoLog.git
# 更新numpy以防 cpu=6的时候推理报错。
pip install -U numpy 

# 切换到tests目录
cd tests

# ernie_text_cls task
bash test_tipc/prepare.sh ./test_tipc/configs/ernie_text_cls/train_infer_python.txt 'lite_train_lite_infer'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ernie_text_cls/train_infer_python.txt 'lite_train_lite_infer'

# ernie_information_extraction task
bash test_tipc/prepare.sh ./test_tipc/configs/ernie_information_extraction/train_infer_python.txt 'lite_train_lite_infer'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ernie_information_extraction/train_infer_python.txt 'lite_train_lite_infer'

# ernie_text_matching task
bash test_tipc/prepare.sh ./test_tipc/configs/ernie_text_matching/train_infer_python.txt 'lite_train_lite_infer'
bash test_tipc/test_train_inference_python.sh ./test_tipc/configs/ernie_text_matching/train_infer_python.txt 'lite_train_lite_infer'

@JunnYu JunnYu merged commit 2080001 into PaddlePaddle:develop Sep 21, 2022
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