Skip to content

Conversation

@brian-dellabetta
Copy link
Collaborator

@brian-dellabetta brian-dellabetta commented Nov 7, 2025

SUMMARY:
This updates the AWQModifier type hints to python 3.10+, exposes n_grid as a parameter rather than the hard-coded 20, and allows the value of duo_scaling to be None, in which case half of the grid search is performed with duo_scaling off and the other half with duo_scaling on. This stems from @fynnsu 's findings that the previous default value of True was actually leading to worse behavior in some circumstances

TEST PLAN:
Run benchmarks with different values of n_grid and duo_scaling to see how much this affects accuracy/runtime

Signed-off-by: Brian Dellabetta <bdellabe@redhat.com>
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

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

Note: This is required to complete the testing suite, please only add the label once the PR is code complete and local testing has been performed.

Signed-off-by: Brian Dellabetta <bdellabe@redhat.com>
fynnsu
fynnsu previously approved these changes Nov 10, 2025
Copy link
Collaborator

@fynnsu fynnsu left a comment

Choose a reason for hiding this comment

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

Looks good! In the future these should probably be two separate prs but changes make sense to me.

Signed-off-by: Brian Dellabetta <bdellabe@redhat.com>
@brian-dellabetta brian-dellabetta marked this pull request as ready for review November 10, 2025 16:45
@brian-dellabetta brian-dellabetta added the ready When a PR is ready for review label Nov 10, 2025
@brian-dellabetta brian-dellabetta changed the title [AWQ] modernized typehints, allow for n_grid parameter and duo_scaling [AWQ] modernized typehints, allow for n_grid/duo_scaling parameters Nov 10, 2025
Signed-off-by: Brian Dellabetta <bdellabe@redhat.com>
Signed-off-by: Brian Dellabetta <bdellabe@redhat.com>
Copy link
Collaborator

@fynnsu fynnsu left a comment

Choose a reason for hiding this comment

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

Looks good!

@brian-dellabetta brian-dellabetta merged commit 2507b87 into main Nov 11, 2025
9 checks passed
@brian-dellabetta brian-dellabetta deleted the bdellabe/awq-type-hint-ngrid branch November 11, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready When a PR is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants