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
3eb3818fc4
commit
b6d15805fd
Binary file not shown.
@ -1602,10 +1602,6 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
else:
|
||||
p.requires_grad = False
|
||||
'''
|
||||
|
||||
for n, p in model.named_parameters():
|
||||
p.requires_grad = False
|
||||
|
||||
optimizer_adapter = ScaledAdam(
|
||||
adapter_param,
|
||||
lr=params.adapter_lr,
|
||||
@ -1613,6 +1609,9 @@ def run_adapter(rank, world_size, args, wb=None):
|
||||
parameters_names=[adapter_names],
|
||||
)
|
||||
|
||||
#for n, p in model.named_parameters():
|
||||
# p.requires_grad = False
|
||||
|
||||
#prompt = torch.randn((100, 512), requires_grad=True)
|
||||
#optimizer_adapter = ScaledAdam(
|
||||
# [model.prompt],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user