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
c6c15b793a
commit
dfe4a02a25
Binary file not shown.
@ -142,7 +142,7 @@ class LoRAHook():
|
|||||||
lora_out = self.lora(input)
|
lora_out = self.lora(input)
|
||||||
output = input + lora_out
|
output = input + lora_out
|
||||||
|
|
||||||
def save_checkpoint(self, i, 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_{i}.pt")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user