-
Notifications
You must be signed in to change notification settings - Fork 3k
fix norm outputs in dynamic and static mode #9569
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
Conversation
Thanks for your contribution! |
d70029e
to
ca1a475
Compare
@@ -741,7 +741,7 @@ def get_weight_create_dype(self): | |||
|
|||
def compute_layernorm_before_qkv(self, src, i): | |||
if i == 0: | |||
ln_out = self.norm_func(src, self.ln_scales[i], self.ln_biases[i], self._epsilon, begin_norm_axis=1) | |||
ln_out = self.norm_func(src, self.ln_scales[i], self.ln_biases[i], self._epsilon, begin_norm_axis=1)[0] |
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.
这个升级是不是不兼容之前的版本?
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.
对的,不兼容升级,需要对应paddlepaddle最新的版本
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9569 +/- ##
===========================================
- Coverage 52.83% 52.77% -0.07%
===========================================
Files 701 709 +8
Lines 110577 111172 +595
===========================================
+ Hits 58427 58672 +245
- Misses 52150 52500 +350 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ca1a475
to
0a1476a
Compare
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.
LGTM
PR types
Bug fixes
PR changes
Others
Description
fix norm has different outputs in dynamic mode and static mode
PaddlePaddle/Paddle#69960