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
4e702886e5
commit
eee751a5dd
Binary file not shown.
@ -141,8 +141,8 @@ class LoRAHook():
|
|||||||
#print(input)
|
#print(input)
|
||||||
print('fuck!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
|
print('fuck!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
|
||||||
print(module, input, output)
|
print(module, input, output)
|
||||||
lora_out = self.lora(input)
|
#lora_out = self.lora(input)
|
||||||
output += lora_out
|
#output += 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_{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