ComfyUI > Nodes > Model and Checkpoint Loaders for NF4 and FP4 > Load FP4 or NF4 Quantized Checkpoint Model

ComfyUI Node: Load FP4 or NF4 Quantized Checkpoint Model

Class Name

CheckpointLoaderNF4

Category
loaders
Author
silveroxides (Account age: 1849days)
Extension
Model and Checkpoint Loaders for NF4 and FP4
Latest Updated
2025-04-28
Github Stars
0.04K

How to Install Model and Checkpoint Loaders for NF4 and FP4

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

Load FP4 or NF4 Quantized Checkpoint Model Description

Facilitates loading quantized checkpoint models in FP4 or NF4 formats for faster processing and reduced memory usage.

Load FP4 or NF4 Quantized Checkpoint Model:

The CheckpointLoaderNF4 node is designed to facilitate the loading of quantized checkpoint models, specifically those that are in FP4 or NF4 formats. This node is particularly beneficial for users who are working with models that have been optimized for reduced precision, which can lead to faster processing times and reduced memory usage without significantly compromising the model's performance. The primary function of this node is to load these quantized models efficiently, ensuring that all necessary components such as the model itself, the CLIP (Contrastive Language–Image Pretraining) model, and the VAE (Variational Autoencoder) are correctly initialized and ready for use. By leveraging this node, you can seamlessly integrate quantized models into your workflow, allowing for more efficient experimentation and deployment of AI models in creative projects.

Load FP4 or NF4 Quantized Checkpoint Model Input Parameters:

ckpt_name

The ckpt_name parameter specifies the name of the checkpoint model you wish to load. This parameter is crucial as it determines which model file will be accessed and loaded into the system. The function of this parameter is to provide a reference to the specific model file stored in the designated checkpoints directory. The impact of this parameter on the node's execution is significant, as an incorrect or non-existent checkpoint name will result in a failure to load the model. The available options for this parameter are dynamically generated from the list of filenames present in the checkpoints directory, ensuring that you can only select from existing models. There are no minimum or maximum values for this parameter, as it is a string representing the filename.

Load FP4 or NF4 Quantized Checkpoint Model Output Parameters:

MODEL

The MODEL output represents the loaded quantized checkpoint model. This output is essential as it provides the core model that will be used for various AI tasks, such as image generation or transformation. The MODEL output is a critical component that defines the behavior and capabilities of the AI system, and it is the primary element that processes input data to produce desired outputs.

CLIP

The CLIP output is the loaded CLIP model, which is used for encoding text prompts. This output is important because it allows for the integration of textual information into the AI workflow, enabling the model to understand and process text-based inputs. The CLIP model is a key component in tasks that require a combination of text and image data, such as generating images from textual descriptions.

VAE

The VAE output is the loaded Variational Autoencoder model, which is used for encoding and decoding images to and from latent space. This output is crucial for tasks that involve image manipulation, as it allows for the transformation of images into a format that can be easily processed by the AI model. The VAE model plays a vital role in ensuring that images are accurately represented and manipulated within the AI system.

Load FP4 or NF4 Quantized Checkpoint Model Usage Tips:

  • Ensure that the ckpt_name parameter is correctly specified to match the exact filename of the checkpoint model you wish to load. This will prevent errors related to missing or incorrect files.
  • Utilize the MODEL, CLIP, and VAE outputs effectively by connecting them to subsequent nodes in your workflow that require these components. This will ensure a smooth and efficient processing pipeline.
  • Consider using quantized models when working with limited computational resources, as they can offer significant performance improvements without a substantial loss in accuracy.

Load FP4 or NF4 Quantized Checkpoint Model Common Errors and Solutions:

FileNotFoundError: Checkpoint file not found

  • Explanation: This error occurs when the specified ckpt_name does not match any file in the checkpoints directory.
  • Solution: Verify that the ckpt_name is correct and corresponds to an existing file in the checkpoints directory. Ensure there are no typos or incorrect file extensions.

ValueError: Unsupported model format

  • Explanation: This error indicates that the specified checkpoint file is not in a supported format (FP4 or NF4).
  • Solution: Ensure that the checkpoint file is correctly quantized in either FP4 or NF4 format. If necessary, convert the model to a supported format before loading.

RuntimeError: Failed to load model components

  • Explanation: This error suggests that there was an issue loading one or more components of the model (MODEL, CLIP, or VAE).
  • Solution: Check the integrity of the checkpoint file and ensure that all necessary components are present and correctly formatted. Re-download or re-quantize the model if needed.

Load FP4 or NF4 Quantized Checkpoint Model Related Nodes

Go back to the extension to check out more related nodes.
Model and Checkpoint Loaders for NF4 and FP4
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 Playground, enabling artists to harness the latest AI tools to create incredible art.