ComfyUI > Nodes > Realtime LoRA Trainer > Realtime LoRA Trainer (Z-Image - Musubi Tuner)

ComfyUI Node: Realtime LoRA Trainer (Z-Image - Musubi Tuner)

Class Name

MusubiZImageLoraTrainer

Category
loaders
Author
ShootTheSound (Account age: 1239days)
Extension
Realtime LoRA Trainer
Latest Updated
2025-12-23
Github Stars
0.28K

How to Install Realtime LoRA Trainer

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

Realtime LoRA Trainer (Z-Image - Musubi Tuner) Description

Facilitates training of Z-Image LoRA models using Musubi Tuner for efficient image generation.

Realtime LoRA Trainer (Z-Image - Musubi Tuner):

The MusubiZImageLoraTrainer is a specialized node designed to facilitate the training of Z-Image LoRA models using the Musubi Tuner. This node serves as a lightweight alternative to more complex AI toolkits, providing a streamlined approach to training LoRA models from images. Its primary function is to process input images and associated captions to produce a trained LoRA model, which can be used for various image generation tasks. The node is particularly beneficial for users looking to leverage the power of LoRA models without the overhead of extensive computational resources. By integrating with ComfyUI, it offers a user-friendly interface for AI artists to enhance their creative workflows with custom-trained models.

Realtime LoRA Trainer (Z-Image - Musubi Tuner) Input Parameters:

inputcount

This parameter specifies the number of input images to be used for training. It directly impacts the training process, as more images can lead to a more robust model. There is no explicit minimum or maximum value provided, but it should be set according to the available dataset size.

images_path

The images_path parameter indicates the directory path where the input images are stored. It is crucial for the node to locate and process the images for training. Ensure that the path is correctly specified to avoid errors during execution.

musubi_path

This parameter defines the path to the Musubi Tuner's directory. It is essential for executing the training process, as it contains the necessary scripts and resources. The path must be accurate to ensure the node functions correctly.

dit_model

The dit_model parameter specifies the model architecture to be used during training. It influences the learning process and the final model's performance. Users should select a model that aligns with their specific training goals.

vae_model

This parameter refers to the Variational Autoencoder (VAE) model used in the training process. The VAE model plays a role in encoding and decoding images, affecting the quality of the generated outputs.

text_encoder

The text_encoder parameter is used to encode the captions associated with the input images. It is vital for ensuring that the model understands the textual context of the images, which can enhance the training results.

caption

This parameter provides the textual descriptions or captions for the input images. Captions are used in conjunction with the text encoder to guide the training process, helping the model learn the relationship between images and text.

training_steps

The training_steps parameter determines the number of iterations the training process will run. More steps can lead to a more refined model but may require additional computational resources. Users should balance this parameter based on their available resources and desired model quality.

learning_rate

This parameter sets the learning rate for the training process, influencing how quickly the model learns from the data. A higher learning rate can speed up training but may lead to instability, while a lower rate can result in more stable but slower training.

lora_rank

The lora_rank parameter defines the rank of the LoRA model, affecting its complexity and capacity. Users should choose a rank that matches their specific needs, balancing model performance and computational efficiency.

vram_mode

This parameter specifies the mode of VRAM usage during training. It is important for optimizing resource allocation, especially on systems with limited VRAM. Users should select a mode that aligns with their hardware capabilities.

keep_lora

The keep_lora parameter is a boolean flag indicating whether to retain the trained LoRA model after training. By default, it is set to True, ensuring that the model is saved for future use.

output_name

This parameter allows users to specify a custom name for the output LoRA model. It is useful for organizing and identifying different models, especially when training multiple models.

custom_python_exe

The custom_python_exe parameter allows users to specify a custom Python executable for running the training process. This can be useful in environments where multiple Python versions are installed.

image_1

This parameter represents an optional single image input for training. It can be used when training with a specific image, providing flexibility in the training setup.

Realtime LoRA Trainer (Z-Image - Musubi Tuner) Output Parameters:

lora_path

The lora_path output parameter provides the file path to the trained Z-Image LoRA model in ComfyUI format. This path is essential for accessing and utilizing the trained model in subsequent image generation tasks. The output ensures that users can easily locate and apply their custom-trained models within their creative workflows.

Realtime LoRA Trainer (Z-Image - Musubi Tuner) Usage Tips:

  • Ensure that the images_path and musubi_path are correctly specified to avoid errors during the training process.
  • Adjust the training_steps and learning_rate parameters based on your computational resources and desired model quality to achieve optimal results.
  • Use descriptive captions with the caption parameter to enhance the model's understanding of the image-text relationship, leading to better training outcomes.

Realtime LoRA Trainer (Z-Image - Musubi Tuner) Common Errors and Solutions:

Musubi Tuner training failed with code <code>

  • Explanation: This error indicates that the training process encountered an issue and did not complete successfully.
  • Solution: Check the console output for specific error messages and ensure that all input parameters are correctly specified. Verify that the paths to the images and Musubi Tuner are accurate and that the system has sufficient resources to complete the training.

Cache hit! Reusing: <cached_path>

  • Explanation: This message indicates that a previously trained LoRA model with the same configuration was found in the cache and is being reused.
  • Solution: If you intended to train a new model, ensure that the input parameters are unique or clear the cache to force a new training session.

Realtime LoRA Trainer (Z-Image - Musubi Tuner) Related Nodes

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