ComfyUI > Nodes > comfyui-art-venture > Checkpoint Save

ComfyUI Node: Checkpoint Save

Class Name

AV_CheckpointSave

Category
Art Venture/Model Merging
Author
sipherxyz (Account age: 1158days)
Extension
comfyui-art-venture
Latest Updated
2024-07-31
Github Stars
0.12K

How to Install comfyui-art-venture

Install this extension via the ComfyUI Manager by searching for comfyui-art-venture
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui-art-venture 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Checkpoint Save Description

Facilitates saving model checkpoints with data type options for storage and performance optimization.

Checkpoint Save:

The AV_CheckpointSave node is designed to facilitate the saving of model checkpoints within the Art Venture framework, specifically for model merging tasks. This node extends the functionality of the CheckpointSave class by adding an option to save the model in different data types, such as float16 or float32. This flexibility allows you to optimize the storage and performance of your models based on your specific needs. By converting the model to float16, you can significantly reduce the file size, which is beneficial for storage and potentially faster loading times. The node ensures that the original save function is restored after the custom save operation, maintaining the integrity of the system.

Checkpoint Save Input Parameters:

model

This parameter represents the model that you want to save. It is a required input and should be a valid model object that you have trained or merged.

clip

This parameter represents the CLIP model associated with your main model. It is a required input and should be a valid CLIP model object.

vae

This parameter represents the VAE (Variational Autoencoder) associated with your main model. It is a required input and should be a valid VAE model object.

filename_prefix

This parameter is a string that specifies the prefix for the filename under which the checkpoint will be saved. The default value is "checkpoints/ComfyUI". This helps in organizing and identifying your saved checkpoints.

dtype

This optional parameter allows you to specify the data type for saving the model. The available options are float16 and float32, with the default being float16. Choosing float16 can reduce the file size and potentially improve loading times, while float32 maintains higher precision.

prompt

This hidden parameter is used internally to store the prompt associated with the model. It is not required to be set manually.

extra_pnginfo

This hidden parameter is used internally to store additional PNG information associated with the model. It is not required to be set manually.

Checkpoint Save Output Parameters:

This node does not produce any direct output parameters. Its primary function is to save the model checkpoint to the specified directory.

Checkpoint Save Usage Tips:

  • Use the dtype parameter to save your model in float16 if you want to reduce the file size and potentially improve loading times. This is particularly useful for large models.
  • Ensure that the filename_prefix is set appropriately to organize your saved checkpoints effectively. This helps in easily identifying and retrieving specific checkpoints later.
  • Make sure to provide valid model, clip, and vae objects to avoid any errors during the saving process.

Checkpoint Save Common Errors and Solutions:

"Invalid model object"

  • Explanation: This error occurs if the provided model object is not valid or is incompatible with the saving function.
  • Solution: Ensure that you are providing a valid and compatible model object. Verify that the model has been properly trained or merged before attempting to save it.

"Invalid CLIP model object"

  • Explanation: This error occurs if the provided CLIP model object is not valid or is incompatible with the saving function.
  • Solution: Ensure that you are providing a valid and compatible CLIP model object. Verify that the CLIP model is correctly associated with your main model.

"Invalid VAE model object"

  • Explanation: This error occurs if the provided VAE model object is not valid or is incompatible with the saving function.
  • Solution: Ensure that you are providing a valid and compatible VAE model object. Verify that the VAE model is correctly associated with your main model.

"File save error"

  • Explanation: This error occurs if there is an issue with saving the checkpoint file, such as insufficient permissions or an invalid file path.
  • Solution: Check the file path and ensure that you have the necessary permissions to write to the specified directory. Verify that the filename_prefix is correctly set.

Checkpoint Save Related Nodes

Go back to the extension to check out more related nodes.
comfyui-art-venture
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.