Skip to main content
The LoraSave node extracts and saves LoRA (Low-Rank Adaptation) files from model differences. It can process diffusion model differences, text encoder differences, or both, converting them into LoRA format with specified rank and type. The resulting LoRA file is saved to the output directory for later use.

Inputs

ParameterDescriptionData TypeRequiredRange
filename_prefixThe prefix for the output filename (default: “loras/ComfyUI_extracted_lora”)STRINGYes-
rankThe rank value for the LoRA, controlling the size and complexity (default: 8)INTYes1-4096
lora_typeThe type of LoRA to create. “standard” extracts low-rank matrices via SVD; “full_diff” saves the full weight difference (default: “standard”)COMBOYes"standard"
"full_diff"
bias_diffWhether to include bias differences in the LoRA calculation (default: True)BOOLEANYes-
model_diffThe ModelSubtract output to be converted to a loraMODELNo-
text_encoder_diffThe CLIPSubtract output to be converted to a loraCLIPNo-
Note: At least one of model_diff or text_encoder_diff must be provided for the node to function. If both are omitted, the node will produce no output.

Outputs

Output NameDescriptionData Type
-This node saves a LoRA file to the output directory but does not return any data through the workflow-
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 642510bfe083130cb2724d7ae38d30d4694c85a43c7ce27230690ddd9fe76b79