-
Notifications
You must be signed in to change notification settings - Fork 75
feat: Add GANQ quantizer #407
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
base: main
Are you sure you want to change the base?
Conversation
| lower_cutoff_idx = round(self.n * (1 - ratio) + 0.5) + 1 | ||
| lower_cutoff_values = sorted_W[:, lower_cutoff_idx + 1].unsqueeze(1) | ||
|
|
||
| outliers = (cutoff_values <= self.W) | (lower_cutoff_values >= self.W) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # pre_process=smash_config["pre_process"], | ||
| # full_rows=smash_config["full_rows"], | ||
| ) | ||
| gpt.free() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Quantizer Configuration System Broken
The gpt.fasterquant() method uses hardcoded default values for quantization parameters like weight_bits, max_epoch, and pre_process. The lines meant to pass these user-configured hyperparameters from smash_config are commented out, which makes the quantizer's configuration system non-functional.
|
This PR has been inactive for 10 days and is now marked as stale. |
|
This PR has been inactive for 10 days and is now marked as stale. |
Description
This PR adds the GANQ quantizer.
Related Issue
Fixes #391
Type of Change
How Has This Been Tested?
I have locally tested that the GANQ quantization works, however a lot of things need to be discussed with the team to write more formal tests. Will add.
Checklist
Additional Notes
This quantizer is not fully ready yet, I am creating a PR to get early feedback.
I will be fixing the issues I am getting with the pre-commit(like variable names, docstrings etc) soon. Some of those are failing and I had to use
--no-verify