From 398ff99746204d08ea71c0b33dd08882b5bf5974 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Thu, 25 May 2023 01:06:27 +0900 Subject: [PATCH] from local --- .../.data2vec_audio.py.swp | Bin 45056 -> 45056 bytes .../.train_lora.py.swp | Bin 86016 -> 86016 bytes .../train_lora.py | 10 +++++----- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.data2vec_audio.py.swp b/egs/librispeech/ASR/pruned_transducer_stateless_d2v_v2/.data2vec_audio.py.swp index f7045b7e4567ae5a41af3dfc19102cfbdb91ba31..39cbad9d7e43b5dd2c9025fd248fd108e30b0023 100644 GIT binary patch delta 32 mcmZp8z|`=7Ni@kI%+puFQqO<^2m}}yE}7<~oZcwItS6C2DK{jNG_71_R+3U2pPiJ#Wd}W5$#$Rm9XWB( z%AeH^DeW*PEANAE-&cL=)A#btAKH1gs#e0Dw?s~jlTbG(b%-or7%qO= zMe2A&1!WWwU6IKx3`T4a~7fiz_>l3vk41#4Kw6vogSl-_ZRQso##v^WU9!pD2%06~bL=KBcqaT&JsG*8^ n%;DE(K>yOblGknLY$b4|f+gKT!IoS#Wug1zjP6#p_Ga`Cyu&>q 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 74d5cca45..cc336a812 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 @@ -1617,11 +1617,11 @@ def run_adapter(rank, world_size, args, wb=None): adapter_names.append(new_n) adapter_param.append(p) - for n, p in model.named_parameters(): - if 'joiner' in n or 'simple' in n or 'ctc' in n: - p.requires_grad = True - else: - p.requires_grad = False + #for n, p in model.named_parameters(): + #if 'joiner' in n or 'simple' in n or 'ctc' in n: + # p.requires_grad = True + #else: + # p.requires_grad = False for lora in lora_modules: print(lora.lora.state_dict())