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

修复NPU AICPU算子问题 #7976

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Conversation

NINGBENZHE
Copy link
Contributor

No description provided.

Copy link

paddle-bot bot commented Feb 6, 2024

Thanks for your contribution!

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

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

Comparison is base (7b9cb9b) 56.58% compared to head (d3676d1) 56.57%.

Files Patch % Lines
paddlenlp/transformers/llama/modeling.py 29.03% 22 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7976      +/-   ##
===========================================
- Coverage    56.58%   56.57%   -0.01%     
===========================================
  Files          589      589              
  Lines        89910    89936      +26     
===========================================
+ Hits         50872    50878       +6     
- Misses       39038    39058      +20     

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

Copy link
Collaborator

@gongweibao gongweibao left a comment

Choose a reason for hiding this comment

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

LGTM

v=None,
sin=sin,
cos=cos,
position_ids=position_ids,
Copy link
Collaborator

Choose a reason for hiding this comment

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

我看这个参数没了

Choose a reason for hiding this comment

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

NPU和GPU的实现有点区别,NPU不需要这个参数,NPU的rope的融合算子只需要传入对应的tensor,sin和cos值即可

@ZeyuChen ZeyuChen merged commit 394a3e2 into PaddlePaddle:develop Feb 7, 2024
9 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants