Skip to content
Help Build a Better ComfyUI Knowledge Base Become a Patron
Nodes ManualAdvancedloadersQuadrupleCLIPLoader

ComfyUI QuadrupleCLIPLoader Node

ComfyUI QuadrupleCLIPLoader

The Quadruple CLIP Loader, QuadrupleCLIPLoader, is one of the core nodes of ComfyUI, first added to support the HiDream I1 version model. If you find this node missing, try updating ComfyUI to the latest version to ensure node support.

It requires 4 CLIP models, corresponding to the parameters clip_name1, clip_name2, clip_name3, and clip_name4, and will provide a CLIP model output for subsequent nodes.

This node will detect models located in the ComfyUI/models/text_encoders folder, and it will also read models from additional paths configured in the extra_model_paths.yaml file. Sometimes, after adding models, you may need to reload the ComfyUI interface to allow it to read the model files in the corresponding folder.

QuadrupleCLIPLoader Node Source Code

Code version 9ad792f92706e2179c58b2e5348164acafa69288

class QuadrupleCLIPLoader:
    @classmethod
    def INPUT_TYPES(s):
        return {"required": { "clip_name1": (folder_paths.get_filename_list("text_encoders"), ),
                              "clip_name2": (folder_paths.get_filename_list("text_encoders"), ),
                              "clip_name3": (folder_paths.get_filename_list("text_encoders"), ),
                              "clip_name4": (folder_paths.get_filename_list("text_encoders"), )
                             }}
    RETURN_TYPES = ("CLIP",)
    FUNCTION = "load_clip"
 
    CATEGORY = "advanced/loaders"
 
    DESCRIPTION = "[Recipes]\n\nhidream: long clip-l, long clip-g, t5xxl, llama_8b_3.1_instruct"
 
    def load_clip(self, clip_name1, clip_name2, clip_name3, clip_name4):
        clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1)
        clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2)
        clip_path3 = folder_paths.get_full_path_or_raise("text_encoders", clip_name3)
        clip_path4 = folder_paths.get_full_path_or_raise("text_encoders", clip_name4)
        clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2, clip_path3, clip_path4], embedding_directory=folder_paths.get_folder_paths("embeddings"))
        return (clip,)
 
 
NODE_CLASS_MAPPINGS = {
    "QuadrupleCLIPLoader": QuadrupleCLIPLoader,
}

QuadrupleCLIPLoader Node Example Workflow

Please visit the tutorial below to see examples of using the QuadrupleCLIPLoader node ComfyUI HiDream-I1 Text-to-Image Workflow Example