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

fix qwen model use_casual_mask #9009

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

deepllz
Copy link
Contributor

@deepllz deepllz commented Aug 26, 2024

PR types

Bug fixes

PR changes

Others

Description

修复qwen组网中use_casual_mask判断错误的问题

Copy link

paddle-bot bot commented Aug 26, 2024

Thanks for your contribution!

Copy link

codecov bot commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.13%. Comparing base (3ef7c1b) to head (3957da9).
Report is 225 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9009      +/-   ##
===========================================
+ Coverage    54.06%   54.13%   +0.06%     
===========================================
  Files          650      650              
  Lines       103883   103883              
===========================================
+ Hits         56164    56233      +69     
+ Misses       47719    47650      -69     

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


🚨 Try these New Features:

@@ -811,7 +811,7 @@ def forward(
hidden_states = inputs_embeds
use_casual_mask = get_use_casual_mask()
# bool 4D mask
if use_casual_mask is None:
if use_casual_mask is True:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if use_casual_mask is True:
if use_casual_mask:

@ZHUI ZHUI merged commit 24fa97e into PaddlePaddle:develop Aug 26, 2024
10 of 12 checks passed
lixcli pushed a commit to lixcli/PaddleNLP that referenced this pull request Aug 28, 2024
Mangodadada pushed a commit to Mangodadada/PaddleNLP that referenced this pull request Sep 10, 2024
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.

3 participants