are found in the main() function, and if you need to adapt the training script, this is where you’ll make your changes. As with the script parameters, a walkthrough of the training script is provided in the Text-to-image training guide. Instead, this guide takes a look at the LoRA relevant parts of the script. UNet text encoder  Diffusers uses ~peft.LoraConfig from the PEFT library to set up the parameters of the LoRA adapter such as the rank, 