from local
This commit is contained in:
parent
8d97499eeb
commit
a28267c5f2
Binary file not shown.
@ -138,7 +138,9 @@ 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(len(input), output.size())
|
print(len(input), output.size())
|
||||||
|
print('-'*20)
|
||||||
|
|
||||||
lora_out = self.lora(input)
|
lora_out = self.lora(input)
|
||||||
output += lora_out
|
output += lora_out
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user