Skip to content

【PaddleNLP No.29-32】Fix test_tipc configs/inference/docs #10465

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

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

hanlintang
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Description

  1. 适配了bert_base_text_cls、bigru_crf、ernie_information_extraction、ernie_text_cls的PIR;
  2. 修改了bigru_crf的配置文件,之前固定为python3.7,改为python;
  3. 修改了文档,给出了命令成功运行需要的目录,并且根据目录修改了样例命令。
    Modified:
    tests/test_tipc/README.md
    tests/test_tipc/bert_base_text_cls/predict.py
    tests/test_tipc/bigru_crf/deploy/predict.py
    tests/test_tipc/configs/bigru_crf/train_mac_cpu_normal_normal_infer_python_mac_cpu.txt
    tests/test_tipc/configs/bigru_crf/train_infer_python.txt
    tests/test_tipc/configs/bigru_crf/train_windows_gpu_normal_normal_infer_python_windows_cpu_gpu.txt
    tests/test_tipc/ernie_information_extraction/predict.py
    tests/test_tipc/ernie_text_cls/predict.py

修改的模型都用'lite_train_lite_infer'模式对prepare/test_train_inference_python两条命令进行了验证,可以看到PIR激活的输出:

--- Running PIR pass [add_shadow_output_after_dead_parameter_pass]
I0422 14:13:22.803481 11418 print_statistics.cc:50] --- detected [2] subgraphs!
--- Running PIR pass [delete_quant_dequant_linear_op_pass]
--- Running PIR pass [delete_weight_dequant_linear_op_pass]
--- Running PIR pass [map_op_to_another_pass]
--- Running PIR pass [identity_op_clean_pass]
......

其他问题

教程里面的测试以及autolog安装还是基于python3.7,小于PaddleNLP支持的最低版本,可能需要后续验证在更高版本上面的兼容性。

Issue: #9763
@DrownFish19

Copy link

paddle-bot bot commented Apr 22, 2025

Thanks for your contribution!

Copy link

codecov bot commented Apr 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.99%. Comparing base (55854f2) to head (222685b).
Report is 13 commits behind head on develop.

❌ Your project status has failed because the head coverage (48.99%) is below the target coverage (58.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #10465   +/-   ##
========================================
  Coverage    48.99%   48.99%           
========================================
  Files          765      765           
  Lines       125974   125974           
========================================
  Hits         61718    61718           
  Misses       64256    64256           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DrownFish19 DrownFish19 added the HappyOpenSource 快乐开源活动issue与PR label Apr 23, 2025
@luotao1 luotao1 assigned luotao1 and DrownFish19 and unassigned KB-Ding Apr 23, 2025
Copy link
Collaborator

@DrownFish19 DrownFish19 left a comment

Choose a reason for hiding this comment

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

LGTM

@DrownFish19 DrownFish19 merged commit fa8359d into PaddlePaddle:develop Apr 23, 2025
10 of 12 checks passed
@hanlintang hanlintang deleted the bert_base_text_cls branch April 23, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants