How to extract small LoRA file from custom dreambooth models . Reduce your model sizes! : StableDiffusionhttps://teddit.net/r/StableDiffusion/comments/10kuzmh/how_to_extract_small_lora_file_from_custom/
To extract the LoRA model from the base model using Kohya_ss, users can install the repository from GitHub and navigate to the Utilities tab, then select the Extract LoRA tab. The user must select the finetuned model to extract LoRA from and the Stable diffusion base model, then choose the path to save the output LoRA file and the precision. The Network Dimension scrollbar can be left at the default value of 8, and the user can click on the "Extract LoRA model" button.
Alternatively, users can download two files from kohya_ss\networks: lora.py and extract_lora_from_models.py, and make a .bat file to execute them. They need to change the file names and dimensions to fit their case and install a few requirements if their SD distribution doesn't have them already. They can also use qwerty.py to check which models fit their new LORA best, which is also useful for Textual Inversion embeddings.