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