Nodes/Duanyll Nodepack/HuggingFace Diffusion Model Loader
ComfyUI Node

HuggingFace Diffusion Model Loader

Downloads a model from Hugging Face or loads it from a local path. Supports single-file and sharded checkpoints.

By Duanyll·Created about a year ago·Updated 3 months ago· 2
HuggingFace Diffusion Model Loader
    • MODEL
    repo_idblack-forest-labs/FLUX.1-dev
    weight_dtype
    subfoldertransformer
    filename
    Categoryduanyll/loaders

    Inputs (4)

    NameTypeDefaultDescription
    repo_idSTRINGblack-forest-labs/FLUX.1-devThe Hugging Face repo ID, an absolute path (/path/to/model), or a relative path (./models/...) from the ComfyUI root.
    weight_dtypeCOMBO4 options: default, fp8_e4m3fn, fp8_e4m3fn_fast, fp8_e5m2
    subfolderoptSTRINGtransformerThe subfolder where the model is located. Applies to both Hugging Face repos and local paths.
    filenameoptSTRINGThe checkpoint file to load. If not specified, will auto-detect. For sharded checkpoints, use the index file (e.g., 'model.index.json').

    Outputs (1)

    NameTypeDescription
    MODELMODEL