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
c983ee5deb
commit
11471bad38
Binary file not shown.
@ -148,7 +148,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):
|
||||||
lora = self.lora.module
|
lora = self.lora.module
|
||||||
torch.save(self.lora.state_dict(), f"{save_dir}/lora_{iter_}_{i}.pt")
|
torch.save(lora.state_dict(), f"{save_dir}/lora_{iter_}_{i}.pt")
|
||||||
|
|
||||||
|
|
||||||
def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
|
def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user