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
d5f2ab367b
commit
b2c0a0af16
Binary file not shown.
@ -143,7 +143,7 @@ class LoRAHook():
|
|||||||
output = input + lora_out
|
output = input + lora_out
|
||||||
|
|
||||||
def save_checkpoint(self, i, iter_, save_dir):
|
def save_checkpoint(self, i, iter_, save_dir):
|
||||||
torch.save(self.lora.state_dict(), f"{save_dir}/lora_{i}.pt")
|
torch.save(self.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