Skip to content

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
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()?

chichun-charlie-liu and others added 2 commits July 27, 2025 15:31
Signed-off-by: chichun-charlie-liu <[email protected]>
Signed-off-by: cliu-us <[email protected]>
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