8000 fix norm outputs in dynamic and static mode by Wangzheee · Pull Request #9569 · PaddlePaddle/PaddleNLP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

Wangzheee
Copy link
Contributor
@Wangzheee Wangzheee commented Dec 5, 2024

PR types

Bug fixes

PR changes

Others

Description

fix norm has different outputs in dynamic mode and static mode
PaddlePaddle/Paddle#69960

Copy link
paddle-bot bot commented Dec 5, 2024

Thanks for your contribution!

@CLAassistant
Copy link
CLAassistant commented Dec 12, 2024

CLA assistant check
All committers have signed the CLA.

@Wangzheee Wangzheee force-pushed the fix_dynamic_static_mode branch from d70029e to ca1a475 Compare December 12, 2024 06:35
@@ -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]
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个升级是不是不兼容之前的版本?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

对的,不兼容升级,需要对应paddlepaddle最新的版本

Copy link
codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 52.77%. Comparing base (14ed2a2) to head (0a1476a).
Report is 294 commits behind head on develop.

Files with missing lines Patch % Lines
...dlenlp/experimental/transformers/llama/modeling.py 0.00% 2 Missing ⚠️
...erimental/transformers/fused_transformer_layers.py 0.00% 1 Missing ⚠️
...enlp/experimental/transformers/mixtral/modeling.py 0.00% 1 Missing ⚠️
...ddlenlp/experimental/transformers/qwen/modeling.py 0.00% 1 Missing ⚠️
...dlenlp/experimental/transformers/qwen2/modeling.py 0.00% 1 Missing ⚠️
...lp/experimental/transformers/qwen2_moe/modeling.py 0.00% 1 Missing ⚠️
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.
📢 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.

@Wangzheee Wangzheee force-pushed the fix_dynamic_static_mode branch from ca1a475 to 0a1476a Compare December 12, 2024 08:53
Copy link
Collaborator
@ZHUI ZHUI left a comment

Choose a reason for hiding this comment

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

LGTM

@ZHUI ZHUI merged commit db38937 into PaddlePaddle:develop Dec 13, 2024
10 of 12 checks passed
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.

5 participants
0