Skip to content

Commit 293b2bf

Browse files
committed
removed hadamard randomness
1 parent 0a21d8c commit 293b2bf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

inference_lib/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="fp_quant",
5-
version="0.3.1",
5+
version="0.3.2",
66
packages=find_packages(where="src"),
77
package_dir={"": "src"},
88
author="Andrei Panferov",

inference_lib/src/fp_quant/module/linear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_hadamard_matrix(group_size: int, dtype: torch.dtype, device: torch.devic
2727
dtype=dtype,
2828
device=device,
2929
requires_grad=False,
30-
) * (torch.randint(0, 2, (group_size, 1), device=device, dtype=dtype) * 2 - 1)
30+
)
3131

3232

3333
def get_identity_matrix(group_size: int, dtype: torch.dtype, device: torch.device):

0 commit comments

Comments
 (0)