Skip to content

Commit cc6795d

Browse files
authored
Fix quantization attribute assignment
1 parent df39f9f commit cc6795d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lit_llama/quantization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def quantize(self):
574574
W[:, (i1 + i) : (i1 + i + self.groupsize)]
575575
)
576576
self.scales[:, (i1 + i) // self.groupsize] = scale
577-
self.zeros[:, (i1 + i) // self.groupsize] = zeros
577+
self.zeros[:, (i1 + i) // self.groupsize] = zero
578578

579579
q = self.quantize_weight(w.unsqueeze(1), scale, zero, self.maxq)
580580
q = q.squeeze(1)

0 commit comments

Comments
 (0)