Nodes/Kinburg-Nodes/Diffusion Safetensors -> GGUF (city96)
ComfyUI Node

Diffusion Safetensors -> GGUF (city96)

A ComfyUI node in Kinburg-Nodes/LLM/GGUF with 13 inputs and 3 outputs.

By Kinburg·Created 2 months ago·Updated 3 days ago· 1
Diffusion Safetensors -> GGUF (city96)
    • gguf_path
    • log
    • help
    model
    model_path
    output_dir
    output_name
    quantizenone
    quantize_binary
    quantize_binary_path
    fix_5d_tensorsauto
    tool_dir
    auto_clonetrue
    hf_token
    keep_intermediatefalse
    forcefalse
    CategoryKinburg-Nodes/LLM/GGUF

    Inputs (13)

    NameTypeDefaultDescription
    modelCOMBODiffusion model from ComfyUI/models/diffusion_models or /unet. Choose the placeholder to type a path/URL in model_path. The dropdown is searchable.
    model_pathSTRINGUsed when 'model' is the placeholder: a local .safetensors/.ckpt path, a HF file URL (…/resolve/main/model.safetensors), or 'owner/name::model.safetensors'. Give the single diffusion model file, not a folder.
    output_dirSTRINGFolder for the .gguf. Created if missing. Blank -> ComfyUI/models/diffusion_models.
    output_nameSTRINGBase filename without extension. Blank -> derived from the source file. The precision/quant tag and .gguf are added automatically.
    quantizeCOMBOnoneOptional 2nd pass to shrink the model (e.g. Q4_K_S, Q8_0). none = keep the F16 gguf. Needs the PATCHED llama-quantize from city96's llama.cpp fork.
    quantize_binaryCOMBOPatched llama-quantize executable (auto-listed from ComfyUI/models/llm). Choose the placeholder to type a path in quantize_binary_path. Only used when quantize != none.
    quantize_binary_pathSTRINGFull path to the patched llama-quantize(.exe), used when the dropdown is the placeholder.
    fix_5d_tensorsoptCOMBOautoWan 2.1 / HunyuanVideo need a post-quantize pass to re-add 5-D tensors. auto = run it only when the gguf's arch is wan/hyvid. Ignored when quantize = none.
    tool_diroptSTRINGPath to a ComfyUI-GGUF checkout (holds tools/convert.py). Blank -> use an installed custom_nodes/ComfyUI-GGUF or auto-clone it there.
    auto_cloneoptBOOLEANtrueIf ComfyUI-GGUF isn't found, git clone it into custom_nodes. Needs git on PATH. (You'll want it installed anyway — its Unet Loader (GGUF) loads the output.)
    hf_tokenoptSTRINGHuggingFace token for gated/private files. Leave blank for public models.
    keep_intermediateoptBOOLEANfalseWhen quantizing, keep the intermediate F16 gguf (and the pre-fix file) as well. Off -> delete them after.
    forceoptBOOLEANfalseRe-run even if the target .gguf exists. Off -> return the existing file without redoing the work.

    Outputs (3)

    NameTypeDescription
    gguf_pathSTRING
    logSTRING
    helpSTRING