From 7a8961fff56d6cbb870c0bcd678bc5cf88e6d07f Mon Sep 17 00:00:00 2001 From: Eddie-Wang1120 Date: Fri, 14 Jun 2024 12:30:27 +0800 Subject: [PATCH] delete redundant --- convert-hf-to-gguf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index d8ae13c06..754edf014 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -1421,7 +1421,7 @@ class BitnetModel(Model): if name.endswith(("q_proj.weight", "k_proj.weight", "v_proj.weight", "down_proj.weight", "up_proj.weight", "gate_proj.weight", "o_proj.weight")): - data_torch = data_torch + (self.weight_quant(data_torch) - data_torch).detach() + data_torch = self.weight_quant(data_torch) return [(self.map_tensor_name(name), data_torch)]