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

[AutoParallel] Add test for PIR refined recompute #9679

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

waliwali777
Copy link
Contributor

@waliwali777 waliwali777 commented Dec 23, 2024

PR types

Others

PR changes

Others

Description

Judge refined_ops_patterns training args.
Add test for PIR refined recompute.

yaml 文件中的调用举例:

 enable_auto_parallel: 1
 to_static: 1
 recompute: 1
 refined_ops_patterns:
        - {main_ops: [flash_attn], num: -1, pre_ops: [], suf_ops: []}
        - {main_ops: [matmul], num: 2, pre_ops: [], suf_ops: [add]}

python命令行参数中的调用举例

python -u -m paddle.distributed.launch \
                    --gpus "0,1,2,3" \
                    --log_dir $case_log_dir \
                    run_pretrain_auto.py \
                    --to_static \
                    --enable_auto_parallel 1 \ 
                    --recompute 1 \
                    --refined_ops_patterns '[{"main_ops":["matmul"],"num":-1,"pre_ops":["softmax"],"suf_ops":[]}]' \
                   ...

Copy link

paddle-bot bot commented Dec 23, 2024

Thanks for your contribution!

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 52.34%. Comparing base (fa3fd39) to head (04cf542).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/trainer/training_args.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9679      +/-   ##
===========================================
+ Coverage    51.11%   52.34%   +1.23%     
===========================================
  Files          730      721       -9     
  Lines       122587   113897    -8690     
===========================================
- Hits         62657    59622    -3035     
+ Misses       59930    54275    -5655     

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

@waliwali777 waliwali777 force-pushed the add_refined_recompute_test branch 2 times, most recently from 72ea11c to 8b31f4b Compare December 27, 2024 03:30
@waliwali777 waliwali777 force-pushed the add_refined_recompute_test branch 2 times, most recently from 9805178 to 3226de9 Compare January 3, 2025 07:11
@waliwali777 waliwali777 force-pushed the add_refined_recompute_test branch from 3226de9 to 04cf542 Compare January 3, 2025 07:14
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.

1 participant