salesforce / CodeT5

Home of CodeT5: Open Code LLMs for Code Understanding and Generation
https://arxiv.org/abs/2305.07922
BSD 3-Clause "New" or "Revised" License
2.66k stars 391 forks source link

Guidance on finetuning with PEFT/LoRA #114

Open AviSoori1x opened 1 year ago

AviSoori1x commented 1 year ago

Could you please share any specific guidelines on doing this with PEFT/ LoRA? Particularly the LoRA config e.g.target_modules=["q_proj","v_proj"] or something else. I notices the finetuning script provided and is much appreciated but some example on how to do this with more resource efficient methods such as LoRA would be awesome. Thanks in advance!

bdqnghi commented 1 year ago

you can use CodeTF to fine-tune with PEFT/LORA: https://github.com/salesforce/CodeTF