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

Bug Fix, to fix pp sp layernorm grad sync #7613

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

iosmers
Copy link
Contributor

@iosmers iosmers commented Dec 8, 2023

PR types

Bug fixes

PR changes

Others

Description

PP开启SP之后,layernorm层未进行梯度同步,导致layernorm层梯度计算出现问题

Copy link

paddle-bot bot commented Dec 8, 2023

Thanks for your contribution!

Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (e6acb0e) 57.85% compared to head (a30927e) 57.85%.

Files Patch % Lines
paddlenlp/transformers/gpt/modeling_pp.py 25.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #7613   +/-   ##
========================================
  Coverage    57.85%   57.85%           
========================================
  Files          582      582           
  Lines        86485    86488    +3     
========================================
+ Hits         50038    50040    +2     
- Misses       36447    36448    +1     

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

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 0a58a1a into PaddlePaddle:develop Dec 12, 2023
9 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.

2 participants