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

Refactor QBitsTensor subclasses #314

Merged
merged 5 commits into from
Sep 20, 2024
Merged

Refactor QBitsTensor subclasses #314

merged 5 commits into from
Sep 20, 2024

Conversation

dacorvo
Copy link
Collaborator

@dacorvo dacorvo commented Sep 20, 2024

What does this PR do?

This is a purely internal refactoring to ease the introduction of Marlin int4 kernels.

Allowing an optimizer to be passed to the quantize_weight function led
to a cross-dependency with the optimizers, that might in turn need to
quantize weights.
This aligns the organization of the QBitsTensor classes on the one used
for QBytesTensor.
Also avoid exporting AWQ and TinyGemm classes at the top level.
@dacorvo dacorvo force-pushed the refactor_weights_qbits branch 2 times, most recently from ac9e95c to c23f155 Compare September 20, 2024 08:25
@dacorvo dacorvo merged commit 2c49054 into main Sep 20, 2024
16 checks passed
@dacorvo dacorvo deleted the refactor_weights_qbits branch September 20, 2024 09:13
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.

1 participant