esm icon indicating copy to clipboard operation
esm copied to clipboard

How can I use LoRA to fine tune ESMC model?

Open hassanzadehmahdi opened this issue 10 months ago • 3 comments

I want to use ESMC for getting the embedding of the protein and I also want to use LoRA to adapt the model to my specific task. How can I train this LoRA(base model should freeze) with a MLP for classification on top of it?

hassanzadehmahdi avatar Mar 02 '25 16:03 hassanzadehmahdi

same question here

peiyaoli avatar Mar 03 '25 00:03 peiyaoli

Hi @hassanzadehmahdi and @peiyaoli,

I wanted to mention that my group has implemented ESMC in a fully Huggingface compatible way (called ESM++). This means you can use the Peft package to finetune them with LoRA. Just pay attention to the ESM licenses before you train anything. You can find the implementation here with some other goodies as well :smile: . Best, Logan

lhallee avatar Mar 04 '25 19:03 lhallee

Have you solved this issue? Or using the ESM++ now?

ShaowenJCornell avatar Nov 12 '25 15:11 ShaowenJCornell