We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7334234 commit d1b4f83Copy full SHA for d1b4f83
src/compressed_tensors/transform/utils/matrix.py
@@ -59,7 +59,7 @@ def apply_transform_weight(
59
location: TransformLocation,
60
module_type: type[torch.nn.Module],
61
) -> torch.Tensor:
62
- fn, axis = get_linear_transform_fn(module_type, location)
+ fn, axis = _get_transform_method(module_type, location)
63
64
assert weight.shape[0] == weight.shape[1]
65
head_dim = weight.shape[0]
@@ -72,7 +72,7 @@ def apply_transform_weight(
72
return value
73
74
75
-def get_linear_transform_fn(
+def _get_transform_method(
76
77
78
) -> Tuple[Callable[[torch.Tensor, torch.Tensor], torch.Tensor], int]:
0 commit comments