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

Remove Symmetric Zero Point in Compressed Outputs #59

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

Satrat
Copy link

@Satrat Satrat commented May 20, 2024

Requested by @dsikka, including the zero point in the state dict when the quantization is symmetric complicates the loading process in vLLM. On the compressed-tensors side, we now only save the zero point to the state_dict if it contains non-zeros (not symmetric). On reload in SparseML, the zero_point tensor will be recreated during decompression

Testing

Updated unit tests for the compressors to ensure the zero_point is removed from the state_dict in symmetric mode. The reload unit test already confirms we correctly recreate the zero_point during decompression

@Satrat Satrat requested review from bfineran and dsikka May 20, 2024 19:52
Copy link
Contributor

@dsikka dsikka left a comment

Choose a reason for hiding this comment

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

Thanks for this!

Copy link
Member

@rahul-tuli rahul-tuli left a comment

Choose a reason for hiding this comment

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

NIce!

@Satrat Satrat merged commit ae08554 into main May 23, 2024
1 check passed
@Satrat Satrat deleted the sa/zp-state-dict branch May 23, 2024 15:42
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