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.
HuggingFace Diffusion Model Loader
- MODEL
◄repo_idblack-forest-labs/FLUX.1-dev►
◄weight_dtype▾►
◄subfoldertransformer►
◄filename►
Categoryduanyll/loaders
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| repo_id | STRING | black-forest-labs/FLUX.1-dev | The Hugging Face repo ID, an absolute path (/path/to/model), or a relative path (./models/...) from the ComfyUI root. |
| weight_dtype | COMBO | 4 options: default, fp8_e4m3fn, fp8_e4m3fn_fast, fp8_e5m2 | |
| subfolderopt | STRING | transformer | The subfolder where the model is located. Applies to both Hugging Face repos and local paths. |
| filenameopt | STRING | The checkpoint file to load. If not specified, will auto-detect. For sharded checkpoints, use the index file (e.g., 'model.index.json'). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |