You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] Adding several peft adapters and ensuring unsloth takes them into account #2411
Adding several peft adapters
I would like to add several peft adapters to my LLM. Since unsloth does not override the add_adapter function in PEFT I currently use the following:
changed the title [-][Question] Adding several peft adapters[/-][+][Question] Adding several peft adapters and ensuring unsloth takes them into account[/+]on Apr 26, 2025
Activity
[-][Question][/-][+][Question] Adding several peft adpaters[/+][-][Question] Adding several peft adpaters[/-][+][Question] Adding several peft adapters[/+][-][Question] Adding several peft adapters[/-][+][Question] Adding several peft adapters and ensuring unsloth takes them into account[/+]rolandtannous commentedon May 23, 2025
@tcarta add adapter is a no-op operation.
If you mean to add already finetuned adapters so you can use them, you need to use load_adapter and set_adapter.
here is an example:
1- update unsloth-zoo and unsloth :
You can repeat step number 4 as many times as you like.
To activate adapter 2 and use it , do the same:
Hope this helps.
Let me know if it works out for you or not.