Skip to content

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Multi LoRA Stack for ComfyUI

License ComfyUI Python

Powerful standalone ComfyUI custom nodes for managing multiple LoRAs in a single, dynamic interface

A complete replacement for rgthree's Power Lora Loader with zero dependencies and two specialized versions to fit any workflow.

✨ Features

πŸŽ›οΈ Dynamic Interface - Add unlimited LoRA slots with a single click
πŸ”„ Easy Management - Toggle, reorder, and remove LoRAs with intuitive controls
πŸ’ͺ Dual Versions - Choose between full functionality or model-only optimization
πŸ“Š Visual Feedback - Clean, wide interface with clear status indicators
⚑ Performance - Efficient loading and processing of multiple LoRAs
πŸ”§ No Dependencies - Standalone implementation, works with any ComfyUI installation

πŸš€ Quick Start

Installation

  1. Clone or download this repository to your ComfyUI custom nodes directory:

    cd ComfyUI/custom_nodes/
    git clone https://github.com/ShmuelRonen/multi-lora-stack.git
  2. Restart ComfyUI

  3. Find the nodes in the loaders category:

    • Multi LoRA Stack - Full version with MODEL + CLIP
    • Multi LoRA Stack (Model Only) - Streamlined model-only version

Basic Usage

  1. Add either node to your workflow
  2. Connect your base MODEL (and CLIP for full version)
  3. Click "βž• Add LoRA" to add LoRA slots
  4. Select LoRAs from the dropdown menus
  5. Adjust strength values as needed
  6. Toggle individual LoRAs on/off or use "Toggle All"

πŸ“Š Node Versions

Feature Multi LoRA Stack Multi LoRA Stack (Model Only)
Inputs MODEL + CLIP MODEL only
Outputs MODEL + CLIP MODEL only
Best For Style LoRAs, Character LoRAs, Complex workflows Flux LoRAs, Performance-focused workflows
Interface 4 connection points 2 connection points
Performance Standard Optimized

When to Use Which?

Choose Multi LoRA Stack (Full):

  • Working with style or character LoRAs
  • Need CLIP text encoding modifications
  • Maximum compatibility with existing workflows
  • Professional/production work

Choose Multi LoRA Stack (Model Only):

  • Using modern LoRAs (especially Flux)
  • Performance-critical workflows
  • Prefer cleaner, simpler interface
  • Experimental/testing workflows

πŸŽ›οΈ Controls

Main Controls

  • βž• Add LoRA - Adds a new LoRA slot
  • Toggle All LoRAs - Enables/disables all LoRAs at once

Per-LoRA Controls

  • Enable Toggle - Turn individual LoRAs on/off
  • LoRA Dropdown - Select from available LoRAs
  • Strength Slider - Adjust influence (-2.0 to +2.0)
  • Remove Button - Delete the LoRA slot

πŸ“ Technical Details

File Structure

multi-lora-stack/
β”œβ”€β”€ __init__.py                          # Node registration
β”œβ”€β”€ multi_lora_stack.py                  # Full version backend
β”œβ”€β”€ multi_lora_stack_model_only.py       # Model-only backend
└── web/
    β”œβ”€β”€ multi_lora_stack.js              # Full version UI
    └── multi_lora_stack_model_only.js   # Model-only UI

Data Format

LoRA configurations are stored as JSON:

[
  {
    "on": true,
    "lora": "flux/style_lora.safetensors",
    "strength": 1.0
  },
  {
    "on": false,
    "lora": "character_lora.safetensors", 
    "strength": 0.8
  }
]

Backend Processing

  • Full Version: Uses ComfyUI's LoraLoader() for MODEL + CLIP processing
  • Model Only: Uses ComfyUI's LoraLoaderModelOnly() for optimized model-only processing

πŸ”§ Installation Details

Method 1: Git Clone (Recommended)

cd ComfyUI/custom_nodes/
git clone https://github.com/yourusername/multi-lora-stack.git

Method 2: Manual Download

  1. Download the repository as ZIP
  2. Extract to ComfyUI/custom_nodes/multi-lora-stack/
  3. Ensure the file structure matches the layout above

Method 3: Individual Files

Create the directory structure and copy files:

mkdir -p ComfyUI/custom_nodes/multi-lora-stack/web/
# Copy each file to its respective location

πŸ› Troubleshooting

Nodes Don't Appear

  • βœ… Verify file structure matches exactly
  • βœ… Check ComfyUI console for error messages
  • βœ… Restart ComfyUI completely
  • βœ… Ensure all Python files are in the root directory

LoRA Dropdown Empty

  • βœ… Verify LoRAs exist in models/loras/ directory
  • βœ… Test with ComfyUI's standard LoRA Loader first
  • βœ… Check file permissions

JavaScript Errors

  • βœ… Ensure JS files are in the web/ subdirectory
  • βœ… Check browser console (F12) for specific errors
  • βœ… Clear browser cache and reload

LoRAs Not Loading

  • βœ… Check ComfyUI console for debug output
  • βœ… Verify LoRA names match exactly with files
  • βœ… Ensure LoRAs are enabled (toggle on)
  • βœ… Test strength values (non-zero)

πŸ†š Comparison with rgthree Power Lora Loader

Feature Multi LoRA Stack rgthree Power Lora Loader
Dependencies βœ… None (standalone) ❌ Requires rgthree framework
Installation βœ… Simple (drop-in) ❌ Complex (dependencies)
Versions βœ… Two optimized versions βšͺ Single version
Compatibility βœ… Any ComfyUI installation ❌ Requires rgthree ecosystem
Updates βœ… Independent updates ❌ Dependent on rgthree updates
Interface βœ… Wide, clean design βšͺ Compact design

🀝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Setup

# Clone the repo
git clone https://github.com/ShmuelRonen/multi-lora-stack.git
cd multi-lora-stack

# Make changes and test in ComfyUI
# Follow the installation instructions above for testing

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Inspired by rgthree's Power Lora Loader
  • Built for the ComfyUI community
  • Thanks to all contributors and testers

πŸ“ž Support


⭐ If this project helps your workflow, please give it a star!

Made with ❀️ for the ComfyUI community

About

Powerful standalone ComfyUI custom nodes for managing multiple LoRAs in a single, dynamic interface

Resources

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages