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