ComfyUI > Nodes > ComfyUI > Save LoRA Weights

ComfyUI Node: Save LoRA Weights

Class Name

SaveLoRA

Category
advanced/model_merging
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Save LoRA Weights Description

Facilitates saving LoRA model adaptations for AI art generation, preserving modifications for easy application and sharing.

Save LoRA Weights:

The SaveLoRA node is designed to facilitate the saving of Low-Rank Adaptation (LoRA) models, which are used to modify diffusion and CLIP models in AI art generation. This node is particularly beneficial for AI artists who wish to preserve the modifications made to models during training or experimentation. By saving these adaptations, you can easily apply them to other models or share them with the community. The SaveLoRA node ensures that the intricate changes made to enhance or alter the style of generated images are not lost, providing a seamless way to manage and deploy LoRA models across different projects.

Save LoRA Weights Input Parameters:

filename_prefix

The filename_prefix parameter allows you to specify a prefix for the saved file name, helping you organize and identify your saved LoRA models easily. This is particularly useful when managing multiple models, as it provides a clear and consistent naming convention.

rank

The rank parameter determines the rank of the LoRA model, which affects the complexity and capacity of the adaptation. A higher rank can capture more intricate modifications but may require more computational resources. This parameter is crucial for balancing performance and resource usage.

lora_type

The lora_type parameter specifies the type of LoRA model being saved. Different types may have varying structures and purposes, so selecting the appropriate type ensures compatibility and effectiveness when applying the LoRA model to other diffusion or CLIP models.

bias_diff

The bias_diff parameter indicates whether bias differences should be included in the saved LoRA model. Including bias differences can enhance the model's ability to replicate specific styles or effects, providing more nuanced control over the output.

model_diff

The model_diff parameter, if provided, contains the differences in the model weights that the LoRA model will encapsulate. This parameter is essential for capturing the specific changes made to the diffusion model during training or experimentation.

text_encoder_diff

The text_encoder_diff parameter, if provided, contains the differences in the text encoder weights. This is important for LoRA models that also modify the text encoding process, allowing for more comprehensive adaptations that affect both image and text processing.

Save LoRA Weights Output Parameters:

NodeOutput

The NodeOutput parameter represents the result of the SaveLoRA operation. It contains the saved LoRA model file, which can be used to apply the same modifications to other models. This output is crucial for ensuring that the adaptations are preserved and can be reused or shared.

Save LoRA Weights Usage Tips:

  • Use descriptive filename_prefix values to easily identify and manage your saved LoRA models, especially when working with multiple versions or experiments.
  • Adjust the rank parameter based on the complexity of the modifications you wish to capture. Higher ranks can capture more detail but may require more resources.
  • Ensure that the lora_type matches the intended application of the LoRA model to avoid compatibility issues when applying it to other models.

Save LoRA Weights Common Errors and Solutions:

"Model or text encoder differences not provided"

  • Explanation: This error occurs when neither model_diff nor text_encoder_diff is provided, meaning there are no modifications to save.
  • Solution: Ensure that at least one of the parameters, model_diff or text_encoder_diff, is provided with valid data representing the differences you wish to save.

"Invalid rank value"

  • Explanation: The rank value provided is outside the acceptable range or is not a valid number.
  • Solution: Verify that the rank parameter is set to a valid integer within the expected range for your specific LoRA model type.

Save LoRA Weights Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Save LoRA Weights