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

Increase Sparsity Threshold for compressors #679

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Conversation

rahul-tuli
Copy link
Collaborator

@rahul-tuli rahul-tuli commented Sep 26, 2024

During internal testing, it was found that a sparsity threshold of 0.2 is insufficient. In some cases, applying quantization alone can naturally lead to a 20% sparsity level. To address this, this PR increases the sparsity threshold to 0.3.

Please note that this adjustment specifically pertains to sparse compression.

Copy link

👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review.

@rahul-tuli rahul-tuli marked this pull request as ready for review September 26, 2024 12:51
kylesayrs
kylesayrs previously approved these changes Sep 26, 2024
Copy link
Collaborator

@kylesayrs kylesayrs left a comment

Choose a reason for hiding this comment

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

Generally, shouldn't we be exposing this threshold as an argument?

Thanks to suggestion from @mgoin

Co-authored-by: Michael Goin <[email protected]>
@mgoin mgoin merged commit d90efb6 into main Sep 26, 2024
6 of 7 checks passed
@mgoin mgoin deleted the update-sparsity-threshold branch September 26, 2024 20:39
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.

4 participants