Skip to content

Commit 0bf6a76

Browse files
Only enable R4 as default setting
Random R1 and R2 matrices are showing better results than just using R4, so the latter seems to be a better default option (at least for now)
1 parent 77f11c3 commit 0bf6a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/prototype/spinquant/spinquant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def forward(self, x):
3232
return x
3333

3434

35-
def apply_spinquant(model: Transformer, use_r1=False, use_r2=True, use_r4=True, pretrained_rotation_path=None):
35+
def apply_spinquant(model: Transformer, use_r1=False, use_r2=False, use_r4=True, pretrained_rotation_path=None):
3636
"""
3737
Apply SpinQuant to a Transformer model: https://arxiv.org/abs/2405.16406
3838

0 commit comments

Comments
 (0)