-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【prim】New layer_norm grad #51750
Merged
xiaoguoguo626807
merged 68 commits into
PaddlePaddle:develop
from
xiaoguoguo626807:new_l_n_g
Mar 20, 2023
Merged
【prim】New layer_norm grad #51750
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
ba39d24
Add flatten composite rule
xysheng-baidu a80f705
get the right xshape and pass func test
xysheng-baidu 4943544
add cinn unit test
xysheng-baidu d9ffe5e
Remove cinn test, wait for it to be added after repair
xysheng-baidu d3f8af7
add comp test to test_flatten_contiguous_range_op.py
xysheng-baidu 83deca7
Merge branch 'PaddlePaddle:develop' into composite_rule_flatten
xysheng-baidu 4e43a73
remove func test on composite_ops
xysheng-baidu 3c906bb
Add comments to maybe_wrap_dim func
xysheng-baidu c569f59
remove commented code
xysheng-baidu 48547ab
fix the problem with 0D tensor case
xysheng-baidu d384698
add flatten split rule comment
xysheng-baidu c11d340
fix conflicts
xysheng-baidu 28af93d
Merge branch 'PaddlePaddle:develop' into composite_rule_flatten
xysheng-baidu e09e5f1
fix syntax issues
xysheng-baidu bb4c836
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
xysheng-baidu 70d7453
block flatten on resnet_prim_cinn
xysheng-baidu 593d1a2
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
xiaoguoguo626807 55e9f2a
init change
xiaoguoguo626807 9697474
fix_conflict
xiaoguoguo626807 3e4e1cf
tmp commit
xiaoguoguo626807 e4aaa86
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
xiaoguoguo626807 1b4f8a1
add layer_norm InferMeta check
xiaoguoguo626807 3d48002
cast type modify
xiaoguoguo626807 81fbf68
[CINN]Enhance CacheKey hash logic by considering input dtypes (#50557)
Aurelius84 6f71cd9
[prim] enable dygraph_to_static to support custom_vjp
cxxly 99e7bd8
Pr 50885 (#7)
2742195759 28f8d74
[prim] enable dygraph_to_static to support custom_vjp
cxxly 342abb2
fix cast prim and vjp dtype mapping error bug
cxxly 26fc165
recover
xiaoguoguo626807 3ad5919
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
xiaoguoguo626807 ef1a424
fix_conflict
xiaoguoguo626807 120867e
big tol
xiaoguoguo626807 42c64de
[CINN]Enhance CacheKey hash logic by considering input dtypes (#50557)
Aurelius84 baa82d4
[prim] enable dygraph_to_static to support custom_vjp
cxxly 9e584bd
Pr 50885 (#7)
2742195759 8d50dd9
[prim] enable dygraph_to_static to support custom_vjp
cxxly 80c4ee9
fix cast prim and vjp dtype mapping error bug
cxxly d44eb19
Cxx prim custom vjp (#8)
2742195759 74fd37a
[Prim] enable whitelist and blacklist for custom_vjp
cxxly f037d4b
fix_conflict
xiaoguoguo626807 907647d
fix_conflict
xiaoguoguo626807 ccaa51f
fix_conflict with 50885
xiaoguoguo626807 97066c3
debug log
xiaoguoguo626807 a5c60a4
clear log
xiaoguoguo626807 1e79731
Merge branch 'develop' into layer_norm_grad
xiaoguoguo626807 3ca656c
fix_conflict
xiaoguoguo626807 ccce35a
fix
xiaoguoguo626807 f6e017c
Merge branch 'layer_norm_grad' of https://github.com/xiaoguoguo626807…
xiaoguoguo626807 ade18e4
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
xiaoguoguo626807 6f5e584
nothing
xiaoguoguo626807 18cd8c0
conflict
xiaoguoguo626807 3b1f6b4
less memory
xiaoguoguo626807 abab32b
recover utils
xiaoguoguo626807 e05dd44
Merge branch 'layer_norm_grad' of https://github.com/xiaoguoguo626807…
xiaoguoguo626807 2d55f26
conflict
xiaoguoguo626807 c7166ea
fix
xiaoguoguo626807 983931d
Merge branch 'develop' into layer_norm_grad
xiaoguoguo626807 00b7f54
modify threshold value
xiaoguoguo626807 b2a16b6
Merge branch 'layer_norm_grad' of https://github.com/xiaoguoguo626807…
xiaoguoguo626807 595c6fd
skip layer_norm for test_bert
xiaoguoguo626807 7c968ab
Merge commit 'refs/pull/51135/head' of https://github.com/PaddlePaddl…
xiaoguoguo626807 9c1d5f2
back to bert success state
xiaoguoguo626807 9065511
add epsion
xiaoguoguo626807 78ec3dc
delete unnecessary compute
xiaoguoguo626807 afbf4d2
modify amp dtype
xiaoguoguo626807 9ceb78d
modify * order
xiaoguoguo626807 dc72787
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
xiaoguoguo626807 f43e433
delete sqrt check and fp16
xiaoguoguo626807 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ | |
- tile | ||
- transpose | ||
- pad | ||
- sqrt | ||
- cumsum | ||
- put_along_axis | ||
- greater_than | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,10 +237,12 @@ def test_train(self): | |
|
||
def test_train_composite(self): | ||
core._set_prim_backward_enabled(True) | ||
# core._add_skip_comp_ops("layer_norm") | ||
static_loss, static_ppl = self.train_static( | ||
self.bert_config, self.data_reader | ||
) | ||
core._set_prim_backward_enabled(False) | ||
# core._add_skip_comp_ops("layer_norm") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
dygraph_loss, dygraph_ppl = self.train_dygraph( | ||
self.bert_config, self.data_reader | ||
) | ||
|
Oops, something went wrong.
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.
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.
Remove comments
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.
modify in next PR