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

Int4 Packed Compressor #47

Merged
merged 87 commits into from
May 15, 2024
Merged

Int4 Packed Compressor #47

merged 87 commits into from
May 15, 2024

Conversation

Satrat
Copy link

@Satrat Satrat commented May 2, 2024

Adding a new PackedQuantizationCompressor that packs every 8 int4 weights into an int32, with each row padded to the next int32 boundary.

Currently, the compressor is hardcoded in a few places to work only with int4 -> int32 but it wouldn't be too much additional work to make it more flexible and support packed int8 as well.

Example usage in examples/bit_packing

Copy link
Contributor

@dbogunowicz dbogunowicz left a comment

Choose a reason for hiding this comment

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

If you want we could discuss my comments during our 1:1 today.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Satrat Satrat requested a review from dbogunowicz May 9, 2024 20:54
@Satrat Satrat merged commit b35ecda into main May 15, 2024
2 checks passed
@Satrat Satrat deleted the int4_packing branch May 15, 2024 13:40
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