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

Fix computation of quantization scales for symmetric quantization with GPTQ #2242

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

NehalBhandari
Copy link
Collaborator

Currently, applying symmetric quantization using GPTQ algorithm with ct.optimize.torch.layerwise_compression.LayerwiseCompressor will not produce the correct quantization scales. This may lead to poor accuracy for the quantized model.

This PR fixes the above mentioned issue and adds corresponding unit tests

@NehalBhandari NehalBhandari merged commit 5313fc7 into main Jun 18, 2024
@NehalBhandari NehalBhandari deleted the nehalbhandari/gptq-fix branch June 18, 2024 17:26
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.

3 participants