Skip to content

[Infer] Change groupwise weight quant from cpu to gpu for deepseek_v2 model #10174

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

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

zeroRains
Copy link
Contributor

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

Others

PR changes

Others

Description

移除deepseek-v2使用group-wise weight quant时使用的CPU kernel,修改为使用GPU Kernel并添加单测。

Copy link

paddle-bot bot commented Mar 18, 2025

Thanks for your contribution!

Copy link

codecov bot commented Mar 18, 2025

Codecov Report

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

Project coverage is 46.97%. Comparing base (759ae99) to head (97ed730).
Report is 13 commits behind head on develop.

Files with missing lines Patch % Lines
.../experimental/transformers/deepseek_v2/modeling.py 0.00% 17 Missing ⚠️
...erimental/transformers/fused_transformer_layers.py 0.00% 8 Missing ⚠️
...dlenlp/experimental/transformers/qwen2/modeling.py 0.00% 7 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project check has failed because the head coverage (46.97%) is below the target coverage (58.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #10174      +/-   ##
===========================================
- Coverage    48.66%   46.97%   -1.70%     
===========================================
  Files          768      799      +31     
  Lines       127103   132266    +5163     
===========================================
+ Hits         61860    62137     +277     
- Misses       65243    70129    +4886     

☔ 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.

@yuanlehome yuanlehome self-requested a review May 13, 2025 03:20
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.

2 participants