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

[LLM] Add fused attention in Qwen2MoE #9767

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

DrownFish19
Copy link
Collaborator

Before submitting

  • Lint code. If there are lint issues, please format the code first.
# Install and register `pre-commit` in the project folder
pip install pre-commit && pre-commit install

# Process previous code files separately
pre-commit run --file XXXX.py
  • Add test cases into tests folder. If there are codecov issues, please add tests cases first.

PR types

New features

PR changes

Models

Description

add fuse_attention_qkv and fuse_attention_ffn to Qwen2MoE.

Copy link

paddle-bot bot commented Jan 10, 2025

Thanks for your contribution!

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 48.78049% with 63 lines in your changes missing coverage. Please review.

Project coverage is 52.36%. Comparing base (fb60645) to head (9acff15).
Report is 8 commits behind head on develop.

Files with missing lines Patch % Lines
paddlenlp/transformers/qwen2_moe/modeling.py 48.78% 63 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9767      +/-   ##
===========================================
- Coverage    52.70%   52.36%   -0.34%     
===========================================
  Files          731      727       -4     
  Lines       117313   115245    -2068     
===========================================
- Hits         61827    60352    -1475     
+ Misses       55486    54893     -593     

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

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.

1 participant