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
0fa0b86ede
commit
f13e665fc2
Binary file not shown.
@ -1586,12 +1586,15 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
|
||||
adapter_names = []
|
||||
adapter_param = []
|
||||
for n, p in model.named_parameters():
|
||||
for enum, (n, p) in enuemrate(model.named_parameters()):
|
||||
|
||||
'''
|
||||
if 'bias' in n:
|
||||
adapter_names.append(n)
|
||||
adapter_param.append(p)
|
||||
else:
|
||||
p.requires_grad = False
|
||||
'''
|
||||
|
||||
'''
|
||||
if 'adapters' in n:# or 'joiner' in n or 'simple' in n or 'ctc' in n:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user