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 6c5387c82..dd530b702 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 15d926ca9..0f25a6edc 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 @@ -1595,8 +1595,9 @@ def run_adapter(rank, world_size, args, wb=None): for modules in model.modules(): if isinstance(modules, fairseq.modules.multihead_attention.MultiheadAttention): for module in modules.modules(): - print(module) - lora_modules.append(LoRAHook(module)) + if isinstance(module, torch.nn.Linear): + print(module) + lora_modules.append(LoRAHook(module)) adapter_names = [] adapter_param = []