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
f5e690d4c5
commit
f4c33cf7ea
Binary file not shown.
@ -1616,12 +1616,12 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
|
||||
adapter_names = []
|
||||
adapter_param = []
|
||||
'''
|
||||
for i, lora in enumerate(lora_modules):
|
||||
for n, p in lora.lora.named_parameters():
|
||||
new_n = str(i) + n
|
||||
adapter_names.append(new_n)
|
||||
adapter_param.append(p)
|
||||
|
||||
'''
|
||||
for n, p in model.named_parameters():
|
||||
if 'joiner' in n or 'simple' in n or 'ctc' in n:
|
||||
@ -1630,7 +1630,7 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
p.requires_grad = True
|
||||
else:
|
||||
p.requires_grad = False
|
||||
|
||||
'''
|
||||
#for lora in lora_modules:
|
||||
# print(lora.lora.state_dict())
|
||||
#print(adapter_names)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user