-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[CINN]Delete shape_optimization flag And Refine ApplyCinnPass #70947
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… delete_apply_flag
gongshaotian
commented
Jan 22, 2025
Hongqing-work
previously approved these changes
Jan 22, 2025
zyfncg
previously approved these changes
Jan 22, 2025
2 tasks
phlrain
previously approved these changes
Jan 23, 2025
589ab79
gongshaotian
commented
Feb 6, 2025
1a05a01 to
afa09b7
Compare
github-merge-queue bot
pushed a commit
to deepmodeling/deepmd-kit
that referenced
this pull request
Feb 8, 2025
We verified paddle CINN compiler in DPA-2 example(single A100-SXM (40G), cada11.8, Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz x 160). To enable CINN compiler in training, add one flag: `CINN=1` before training command, e.g. `CINN=1 dp --pd train input_torch_medium.json`. ### Curves: #### dpa2  ##### Performance We tested with torch==2.6.0.dev20241219+cu118 | Pytorch(eager) | Pytorch(compile) | Paddle(eager) | Paddle(CINN compile) | | -- | -- | -- | -- | | 0.1078s/step | compile do not support double-backward | 0.1130s/step | 0.0638s/step | #### se_atten  ##### Performance We tested with torch==2.6.0.dev20241219+cu118 | Pytorch(eager) | Pytorch(compile) | Paddle(eager) | Paddle(CINN compile) | | -- | -- | -- | -- | | 0.0342s/step | compile do not support double-backward | 0.0444s/step | 0.0244s/step | ### Accuracy details: #### dpa2 - Pytorch:  - Paddle(eager mode):  - Paddle(CINN compiler)  #### se_atten - Pytorch  - Paddle(eager_mode)  - Paddle(CINN compliler)  ### TODO: - [x] Fix high order backward of control flow in Paddle(PaddlePaddle/Paddle#70545) - [ ] Fix shape64 issue(PaddlePaddle/Paddle#70947) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced training performance through optimization techniques that leverage compilation and profiling for better execution monitoring. - Introduced a new function for converting various input types to boolean values, improving environment variable handling. - **Refactor** - Improved precision management for training parameters and updated environment configuration handling to ensure robust optimization support. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
YuanRisheng
previously approved these changes
Feb 11, 2025
zyfncg
reviewed
Feb 11, 2025
afa09b7 to
bc85a3e
Compare
zyfncg
approved these changes
Feb 12, 2025
phlrain
approved these changes
Feb 12, 2025
fangfangssj
pushed a commit
to fangfangssj/Paddle
that referenced
this pull request
Feb 18, 2025
…Paddle#70947) * add FLAGS_check_jit_instrction_shape * add log * add flag in runtime/flags * fix * tix typo * delete FLAGS_pir_apply_shape_optimization_pass * delete symbolic shape pass in trt * delete the test case of reshape and split op
YqGe585
pushed a commit
to YqGe585/Paddle
that referenced
this pull request
May 7, 2025
…Paddle#70947) * add FLAGS_check_jit_instrction_shape * add log * add flag in runtime/flags * fix * tix typo * delete FLAGS_pir_apply_shape_optimization_pass * delete symbolic shape pass in trt * delete the test case of reshape and split op
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Category
CINN
PR Types
Improvements
Description
Pcard-67164
After this PR merged, infer_symbolic and CINN will be strongly bound.