Load and unload different LORAs during training #1464
Replies: 1 comment 2 replies
-
I'm not sure how well this could be implemented with A tip: When creating the optimizer, ensure that the weights of all LoRA adapters are included. When you have disabled adapters, their |
Beta Was this translation helpful? Give feedback.
-
Hello. I have a complex experiment I want to run. Let's say I have 20 different LORAs I want to train. I want to dynamically load and unload a few of them (as well as save each one to a file) during training. For example, I use 4 of them for the first 100 steps, then I want to save them and switch to a different set of 4 etc. The choice of which LORA is done dynamically from the input. The concept is not very complex, but I want to use HuggingFaces trainers (like SFTTrainer) and I find the documentation a bit difficult. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions