Skip to content

Commit 7a8961f

Browse files
delete redundant
1 parent 5e5eee7 commit 7a8961f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert-hf-to-gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
14211421
if name.endswith(("q_proj.weight", "k_proj.weight", "v_proj.weight",
14221422
"down_proj.weight", "up_proj.weight", "gate_proj.weight",
14231423
"o_proj.weight")):
1424-
data_torch = data_torch + (self.weight_quant(data_torch) - data_torch).detach()
1424+
data_torch = self.weight_quant(data_torch)
14251425

14261426
return [(self.map_tensor_name(name), data_torch)]
14271427

0 commit comments

Comments
 (0)