delete redundant
This commit is contained in:
parent
5e5eee7b44
commit
7a8961fff5
1 changed files with 1 additions and 1 deletions
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue