Hotfix for not saving correctly (#762)

This commit is contained in:
Casper
2023-10-22 19:22:32 +02:00
committed by GitHub
parent afedc470bd
commit 32eeeb5b64
2 changed files with 1 additions and 0 deletions

View File

@@ -152,6 +152,7 @@ class FusedAttention(LlamaAttention):
new_attn.q_proj.weight.data = q_proj
new_attn.k_proj.weight.data = k_proj
new_attn.v_proj.weight.data = v_proj
new_attn.o_proj.weight.data = self.o_proj.weight.data
set_module_name(model, name, new_attn)