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
b334bf5d0d
commit
1c032d6d41
Binary file not shown.
Binary file not shown.
@ -137,6 +137,9 @@ class LoRAHook():
|
||||
lora_alpha=1.0,
|
||||
)
|
||||
def hook_fn(self, module, input, output):
|
||||
print(input.size())
|
||||
lora_out = self.lora(input)
|
||||
output = input + lora_out
|
||||
|
||||
|
||||
def set_batch_count(model: Union[nn.Module, DDP], batch_count: float) -> None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user