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
8baea390fa
commit
b303ca3d7d
Binary file not shown.
@ -1605,7 +1605,10 @@ def run_adapter(rank, world_size, args, wb=None):
|
|||||||
adapter_param.append(p)
|
adapter_param.append(p)
|
||||||
|
|
||||||
for n, p in model.named_parameters():
|
for n, p in model.named_parameters():
|
||||||
p.requires_grad = False
|
if 'joiner' in n or 'simple' in n or 'ctc' in n:
|
||||||
|
p.requires_grad = True
|
||||||
|
else:
|
||||||
|
p.requires_grad = False
|
||||||
|
|
||||||
#print(adapter_names)
|
#print(adapter_names)
|
||||||
#exit()
|
#exit()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user