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 > ComfyUI_VoxCPM_SM > VoxCPM_SM_LoraTrainerLoop

ComfyUI Node: VoxCPM_SM_LoraTrainerLoop

Class Name

VoxCPM_SM_LoraTrainerLoop

Category
VoxCPM_SM
Author
smthemex (Account age: 1064days)
Extension
ComfyUI_VoxCPM_SM
Latest Updated
2026-06-02
Github Stars
0.03K

How to Install ComfyUI_VoxCPM_SM

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

VoxCPM_SM_LoraTrainerLoop Description

Facilitates LoRA model training within VoxCPM for efficient adaptation and performance enhancement.

VoxCPM_SM_LoraTrainerLoop:

The VoxCPM_SM_LoraTrainerLoop node is designed to facilitate the training process of models using the LoRA (Low-Rank Adaptation) technique within the VoxCPM framework. This node is particularly beneficial for users looking to fine-tune pre-trained models with LoRA configurations, which allows for efficient adaptation of large models with minimal computational resources. The node's primary function is to manage the training loop, ensuring that the model is updated with the specified LoRA parameters, thereby enhancing the model's performance on specific tasks without the need for extensive retraining. By leveraging this node, you can achieve significant improvements in model adaptability and performance, making it an essential tool for AI artists and developers working with voice synthesis and related applications.

VoxCPM_SM_LoraTrainerLoop Input Parameters:

lora_cfg

The lora_cfg parameter is crucial as it specifies the configuration for the LoRA adaptation process. It includes settings such as the rank, alpha, and dropout values, which directly influence the training dynamics and the model's ability to generalize. The rank determines the dimensionality of the low-rank matrices, alpha controls the scaling of the adaptation, and dropout helps in regularizing the training process. These settings are essential for balancing the trade-off between model complexity and performance, and they should be carefully chosen based on the specific requirements of your task.

pretrained_path

The pretrained_path parameter indicates the file path to the pre-trained model that will be fine-tuned using LoRA. This path is essential as it serves as the starting point for the training process, providing the base model architecture and weights that will be adapted. Ensuring the correct path is specified is crucial for the successful execution of the training loop.

train_manifest

The train_manifest parameter is a JSONL file that contains the training data manifest. It lists the audio-text pairs that will be used during the training process. This parameter is vital for defining the dataset that the model will learn from, and it should be carefully curated to ensure high-quality training data.

val_manifest

The val_manifest parameter is optional and provides a validation dataset manifest in JSONL format. It is used to evaluate the model's performance during training, allowing for adjustments to be made to the training process if necessary. Including a validation manifest can help in monitoring overfitting and ensuring the model's generalization capabilities.

lr

The lr parameter stands for learning rate, which is a critical hyperparameter that controls the step size during the optimization process. A well-chosen learning rate can significantly impact the convergence speed and stability of the training process. It is important to experiment with different values to find the optimal learning rate for your specific task.

max_iters

The max_iters parameter defines the maximum number of iterations for the training loop. It sets a limit on the training duration, ensuring that the process does not run indefinitely. This parameter should be set based on the complexity of the task and the available computational resources.

batch_size

The batch_size parameter specifies the number of samples processed in one iteration. It affects the memory usage and the stability of the training process. A larger batch size can lead to faster training but requires more memory, while a smaller batch size may provide more stable updates but can slow down the training process.

lora_rank

The lora_rank parameter determines the rank of the low-rank matrices used in the LoRA adaptation. It directly influences the model's capacity to learn new tasks while maintaining efficiency. Choosing the right rank is crucial for balancing model performance and computational cost.

lora_alpha

The lora_alpha parameter controls the scaling factor for the LoRA adaptation. It affects the strength of the adaptation applied to the pre-trained model. Adjusting this parameter can help in fine-tuning the model's performance on specific tasks.

save_interval

The save_interval parameter specifies how often the model's state should be saved during training. This is important for checkpointing and ensuring that progress is not lost in case of interruptions. Setting an appropriate save interval can help in managing storage space while ensuring that you have sufficient checkpoints for recovery.

VoxCPM_SM_LoraTrainerLoop Output Parameters:

trained_model

The trained_model output parameter represents the model that has been fine-tuned using the LoRA technique. This model incorporates the adaptations specified by the input parameters and is ready for deployment or further evaluation. The trained model is the primary output of the node, reflecting the improvements made during the training process.

training_logs

The training_logs output parameter provides detailed logs of the training process, including metrics such as loss and accuracy over time. These logs are essential for monitoring the training progress and diagnosing any issues that may arise. They offer valuable insights into the model's learning dynamics and can guide further optimization efforts.

VoxCPM_SM_LoraTrainerLoop Usage Tips:

  • Ensure that the lora_cfg parameter is correctly configured to match the specific requirements of your task, as this will significantly impact the model's performance.
  • Regularly monitor the training_logs to track the model's progress and make necessary adjustments to the training parameters if needed.
  • Experiment with different lr and batch_size values to find the optimal settings for your specific dataset and computational resources.

VoxCPM_SM_LoraTrainerLoop Common Errors and Solutions:

FileNotFoundError: LoRA checkpoint not found

  • Explanation: This error occurs when the specified LoRA checkpoint directory does not exist.
  • Solution: Verify that the path to the LoRA checkpoint is correct and that the directory exists.

ValueError: base_model not found in lora_config.json

  • Explanation: This error indicates that the base model path is missing from the LoRA configuration file and was not provided as a command-line argument.
  • Solution: Ensure that the base_model path is specified either in the lora_config.json file or as a command-line argument.

FileNotFoundError: lora_config.json not found

  • Explanation: This error occurs when the lora_config.json file is missing from the LoRA checkpoint directory.
  • Solution: Confirm that the lora_config.json file is present in the checkpoint directory and that the path is correctly specified.

VoxCPM_SM_LoraTrainerLoop Related Nodes

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

VoxCPM_SM_LoraTrainerLoop