Skip to content

Add ShortGPT integration #10777

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 1 commit into
base: develop
Choose a base branch
from

Conversation

tianyumyum
Copy link

@tianyumyum tianyumyum commented Jun 26, 2025

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

Others (New utility script/example)

Description

This PR introduces a new model pruning script, shortgpt_prune.py.

The core functionality includes:

  1. Layer Importance Evaluation.
  2. In-Memory Pruning.
  3. Saving the Pruned Model.

Copy link

paddle-bot bot commented Jun 26, 2025

Thanks for your contribution!

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tianyumyum tianyumyum marked this pull request as ready for review June 26, 2025 08:10
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.76%. Comparing base (8fd74f0) to head (fcc99a7).

❌ Your project check has failed because the head coverage (46.76%) 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   #10777      +/-   ##
===========================================
- Coverage    46.77%   46.76%   -0.01%     
===========================================
  Files          802      802              
  Lines       133646   133646              
===========================================
- Hits         62507    62503       -4     
- Misses       71139    71143       +4     

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

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.

3 participants