mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
398ff99746
commit
501d129957
Binary file not shown.
@ -140,7 +140,7 @@ class LoRAHook():
|
||||
)
|
||||
def hook_fn(self, module, input, output):
|
||||
lora_out = self.lora(input)
|
||||
output = input + lora_out
|
||||
output += lora_out
|
||||
|
||||
def save_checkpoint(self, i, iter_, save_dir):
|
||||
torch.save(self.lora.state_dict(), f"{save_dir}/lora_{iter_}_{i}.pt")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user