Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to apply LoRA for TTS models #64

Open
nivibilla opened this issue Apr 29, 2023 · 1 comment
Open

How to apply LoRA for TTS models #64

nivibilla opened this issue Apr 29, 2023 · 1 comment

Comments

@nivibilla
Copy link
Contributor

Hi,

I've been trying to apply LoRA to the VITS model (hence the pull request for the conv1d). Turns out just using Lora for the text encoder transformer isn't enough, and Im not sure if I should replace all the layers I can with Lora layes. Could you guide me on how I can do it.

The repo is here
https://github.com/nivibilla/efficient-vits-finetuning

Thanks!

@edwardjhu
Copy link
Collaborator

Im not sure if I should replace all the layers I can with Lora layes. Could you guide me on how I can do it.

It's a good idea to start with replacing all layers so it's close to fine-tuning, which works, I assume. Once it's working, you can empirically determine what layers can be kept as they are. That's roughly how we decided what layers to adapt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants