[Wav2Vec2] How to freeze the encoder in Wav2Vec2CTC audio_finetuning task?

917 views
Skip to first unread message

Igor Shalyminov

unread,
Jan 29, 2022, 3:26:07 PM1/29/22
to fairseq Users
Hi, the XLSR paper says that weights of the feature encoder are not updated at the fine-tuning time.
However, I don't see this setting anywhere in the code, and the closest thing in the config is freeze_finetune_updates: 10000 which I think is for the entire model (encoder + output projection).
What's the way to freeze the encoder only, and make it permanent (apart from altering the model's code directly)?

alex...@gmail.com

unread,
Jan 29, 2022, 3:33:22 PM1/29/22
to fairseq Users

Igor Shalyminov

unread,
Jan 29, 2022, 5:01:24 PM1/29/22
to fairseq Users
Got it, thanks!
Reply all
Reply to author
Forward
0 new messages