Skip to content

feat: Generic Rotation #117

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chichun-charlie-liu
Copy link
Collaborator

@chichun-charlie-liu chichun-charlie-liu commented May 13, 2025

Adding base functionalities for generic rotation, e.g. Hadamard matrices.

Closes #104

How to verify the PR

Will add an unit test and example.

Was the PR tested

  • I have added >=1 unit test(s) for every new method I have added.
  • I have ensured all unit tests pass

@github-actions github-actions bot added the feat label May 13, 2025
@chichun-charlie-liu chichun-charlie-liu self-assigned this May 21, 2025
@@ -131,8 +132,10 @@ def __init__(
)

self.calib_iterator = [] # To simplify update of clipvals in forward()
self.quantize_m1 = Qbypass()
self.quantize_calib_m1 = Qbypass()
quant_m1_def = Qbypass() if "rot_" not in self.qm1_mode else RotQuantWrapper()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it make more sense to do the if condition as RotQuantWrapper() if "rot_" in self.qm1_mode else Qbypass()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Hadamard rotation" support
2 participants