File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/compressed_tensors/transforms Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 27
27
# first or second matirx in torch.matmul depending on dimensions, can be inferred
28
28
# by the layer time likely.
29
29
30
- MATIRX_TRANSFORMS = ["matrix-mul" , "hadamard" , "random-hadamard" ]
30
+ MATRIX_TRANSFORMS = ["matrix-mul" , "hadamard" , "random-hadamard" ]
31
31
32
32
33
- class Transforms (RegistryMixin ):
33
+ class Transforms (torch . nn . Parameter , RegistryMixin ):
34
34
def __new__ (
35
35
cls ,
36
36
transform : torch .Tensor ,
@@ -69,7 +69,7 @@ def __new__(
69
69
70
70
@classmethod
71
71
def fetch_apply (cls , name : str ):
72
- if name in MATIRX_TRANSFORMS :
72
+ if name in MATRIX_TRANSFORMS :
73
73
return apply_matrix_transform
74
74
raise NotImplementedError ("Only matrix transforms are supported" )
75
75
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def test_random_hadamard_matrix_compliant(size):
51
51
52
52
@pytest .mark .parametrize (
53
53
"size" ,
54
- [1024 , 2048 ],
54
+ [1024 ],
55
55
)
56
56
def test_deterministic_hadamard_compliant (size ):
57
57
had_matrix = deterministic_hadamard_matrix (size )
You can’t perform that action at this time.
0 commit comments