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
c4066b7eb4
commit
447f98e2a7
Binary file not shown.
@ -138,11 +138,11 @@ class LoRAHook():
|
|||||||
lora_alpha=1.0,
|
lora_alpha=1.0,
|
||||||
)
|
)
|
||||||
def hook_fn(self, module, input, output):
|
def hook_fn(self, module, input, output):
|
||||||
print('-'*20)
|
#print('-'*20)
|
||||||
print(input[0].size(), output.size())
|
#print(input[0].size(), output.size())
|
||||||
print('-'*20)
|
#print('-'*20)
|
||||||
|
|
||||||
lora_out = self.lora(input)
|
lora_out = self.lora(input[0])
|
||||||
output += lora_out
|
output += lora_out
|
||||||
|
|
||||||
def save_checkpoint(self, i, iter_, save_dir):
|
def save_checkpoint(self, i, iter_, save_dir):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user