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
447f98e2a7
commit
3af6db8981
Binary file not shown.
@ -1608,12 +1608,8 @@ def run_adapter(rank, world_size, args, wb=None):
|
|||||||
lora_modules = []
|
lora_modules = []
|
||||||
for modules in model.modules():
|
for modules in model.modules():
|
||||||
if isinstance(modules, fairseq.modules.multihead_attention.MultiheadAttention):
|
if isinstance(modules, fairseq.modules.multihead_attention.MultiheadAttention):
|
||||||
#lora_modules.append(LoRAHook(modules))
|
|
||||||
for module in modules.modules():
|
for module in modules.modules():
|
||||||
# if rank == 0: logging.info(module)
|
|
||||||
#print(module)
|
|
||||||
if isinstance(module, torch.nn.Linear):
|
if isinstance(module, torch.nn.Linear):
|
||||||
#if rank == 0: print(module)
|
|
||||||
lora_modules.append(LoRAHook(module))
|
lora_modules.append(LoRAHook(module))
|
||||||
|
|
||||||
adapter_names = []
|
adapter_names = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user