Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > LoRA Optimizer > LoRA Optimizer Settings

ComfyUI Node: LoRA Optimizer Settings

Class Name

LoRAOptimizerSettings

Category
LoRA Optimizer
Author
ethanfel (Account age: 3360days)
Extension
LoRA Optimizer
Latest Updated
2026-07-19
Github Stars
0.14K

How to Install LoRA Optimizer

Install this extension via the ComfyUI Manager by searching for LoRA Optimizer
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter LoRA Optimizer 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

LoRA Optimizer Settings Description

Node for advanced configuration of LoRA model optimization, enhancing flexibility and results.

LoRA Optimizer Settings:

LoRAOptimizerSettings is a specialized node designed to provide advanced configuration settings for optimizing LoRA (Low-Rank Adaptation) models. This node is integral for users who wish to fine-tune the merging process of LoRAs, allowing for a more tailored and efficient optimization strategy. By connecting this node to the settings input of the LoRA Optimizer, you unlock a comprehensive suite of options that enable precise control over the optimization process. The primary goal of this node is to enhance the flexibility and effectiveness of LoRA model optimization, making it a valuable tool for AI artists looking to achieve high-quality results with their models.

LoRA Optimizer Settings Input Parameters:

auto_strength

This parameter determines whether the auto-strength feature is enabled, which automatically adjusts the strength of the LoRA layers during optimization. Enabling this feature can help maintain balance and prevent overfitting. The default value is "enabled".

optimization_mode

This parameter specifies the mode of optimization to be used. It influences how the LoRA layers are processed and merged. The default mode is "per_prefix", which optimizes each prefix separately.

merge_refinement

This parameter allows for additional refinement during the merging process of LoRA layers. It can be set to "none" for no refinement or other strategies as needed. The default is "none".

sparsification

This parameter controls whether sparsification is applied to the LoRA layers, which can help reduce model size and improve efficiency. The default value is "disabled".

sparsification_density

This parameter sets the density level for sparsification, determining how much of the model is retained. A typical default value is 0.7, indicating 70% density.

dare_dampening

This parameter adjusts the dampening factor for the DARE (Dynamic Adaptive Regularization of Embeddings) technique, which can help stabilize training. The default value is 0.0.

patch_compression

This parameter specifies the method of patch compression to be used, which can help reduce memory usage. The default method is "smart".

svd_device

This parameter indicates the device on which Singular Value Decomposition (SVD) operations are performed, typically set to "gpu" for faster computation.

free_vram_between_passes

This parameter determines whether VRAM is freed between optimization passes to manage memory usage. The default setting is "disabled".

strategy_set

This parameter defines the set of strategies to be used during optimization. The default is "full", which utilizes all available strategies.

merge_strategy_override

This parameter allows for overriding the default merge strategy with specific methods like "ties", "weighted_average", or "slerp". The default is an empty string, indicating no override.

LoRA Optimizer Settings Output Parameters:

mode

This output parameter indicates the mode of operation, which is set to "advanced" when using LoRAOptimizerSettings. It signifies that advanced settings are being applied to the optimization process.

auto_strength

This output reflects the status of the auto-strength feature, confirming whether it is enabled or disabled as per the input settings.

optimization_mode

This output confirms the optimization mode being used, ensuring that the specified mode is applied during the optimization process.

merge_refinement

This output indicates the level of refinement applied during the merging process, reflecting the input settings.

sparsification

This output shows whether sparsification is applied, based on the input parameter settings.

sparsification_density

This output provides the density level used for sparsification, confirming the input value.

dare_dampening

This output reflects the dampening factor applied for DARE, as specified in the input settings.

patch_compression

This output indicates the method of patch compression used, confirming the input choice.

svd_device

This output specifies the device used for SVD operations, reflecting the input settings.

free_vram_between_passes

This output shows whether VRAM is freed between passes, based on the input parameter.

strategy_set

This output confirms the set of strategies used during optimization, as specified in the input.

merge_strategy_override

This output indicates any override applied to the merge strategy, reflecting the input settings.

LoRA Optimizer Settings Usage Tips:

  • To achieve optimal performance, ensure that the auto_strength parameter is enabled, as it helps in dynamically adjusting the strength of LoRA layers during optimization.
  • Utilize the merge_strategy_override parameter to experiment with different merging strategies and find the one that best suits your specific model requirements.

LoRA Optimizer Settings Common Errors and Solutions:

Invalid merge_strategy_override

  • Explanation: This error occurs when an invalid value is provided for the merge_strategy_override parameter.
  • Solution: Ensure that the value for merge_strategy_override is one of the accepted options such as "ties", "weighted_average", "weighted_sum", "consensus", or "slerp".

Memory issues during optimization

  • Explanation: This error can occur if the VRAM usage exceeds the available memory during optimization.
  • Solution: Consider enabling the free_vram_between_passes parameter to manage memory usage more effectively.

LoRA Optimizer Settings Related Nodes

Go back to the extension to check out more related nodes.
LoRA Optimizer
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.

LoRA Optimizer Settings