diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_lora.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_lora.py.swp index a34c51c7d..036b8ecfb 100644 Binary files a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_lora.py.swp and b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.train_lora.py.swp differ diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_lora.py b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_lora.py index 23a6c663c..f24ce6a21 100755 --- a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_lora.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/train_lora.py @@ -1605,11 +1605,12 @@ def run_adapter(rank, world_size, args, wb=None): lora_modules = [] for modules in model.modules(): if isinstance(modules, fairseq.modules.multihead_attention.MultiheadAttention): - lora_modules.append(LoRAHook(modules)) - #for module in modules.modules(): + #lora_modules.append(LoRAHook(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: logging.info(module) # lora_modules.append(LoRAHook(module)) adapter_names = []