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
01e8310c0c
commit
b3c282b0e0
Binary file not shown.
Binary file not shown.
@ -146,6 +146,8 @@ class LoRAHook():
|
||||
output += lora_out
|
||||
|
||||
def save_checkpoint(self, i, iter_, save_dir):
|
||||
if isinstance(self.lora, DDP):
|
||||
self.lora = self.lora.module
|
||||
torch.save(self.lora.state_dict(), f"{save_dir}/lora_{iter_}_{i}.pt")
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user