Skip to content

[Transform] Hadamard Permutations #329

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

Open
wants to merge 3 commits into
base: kylesayrs/transform_factory
Choose a base branch
from

Conversation

kylesayrs
Copy link
Contributor

@kylesayrs kylesayrs commented May 30, 2025

Purpose

  • Implement TransformScheme.randomize_modules for hadamard matrices using permutations

Prerequisites

Changes

  • Add a permutations cache to HadamardFactory, keyed on module and weight (each unique model + weight combination gets its own permutation)
  • Implement apply_permutation helper function
  • Modify tests to include testing schemes for which randomize_modules is True

Testing

  • Correctness and memory sharing tests continue to pass with new randomize_modules schemes

@kylesayrs kylesayrs changed the title [WIP] [Transform] Permutations [WIP] [Transform] Hadamard Permutations May 30, 2025
Signed-off-by: Kyle Sayers <[email protected]>
@kylesayrs kylesayrs force-pushed the kylesayrs/transform_permutations branch from 1ec9c0f to 8d613b3 Compare May 31, 2025 02:14
@kylesayrs kylesayrs changed the base branch from main to kylesayrs/transform_factory May 31, 2025 02:15
@kylesayrs kylesayrs marked this pull request as ready for review May 31, 2025 02:18
@kylesayrs kylesayrs changed the title [WIP] [Transform] Hadamard Permutations [Transform] Hadamard Permutations May 31, 2025
@kylesayrs kylesayrs self-assigned this May 31, 2025
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