Nodes/XB_ToolBox/XB-BOX - 📦 模型加载大全V1 (GGUF)
ComfyUI Node

XB-BOX - 📦 模型加载大全V1 (GGUF)

V1's loader, but the model dropdown speaks GGUF

By wjluoxiao·Created 5 months ago·Updated 6 days ago· 302
XB-BOX - 📦 模型加载大全V1 (GGUF)
    • MODEL
    • CLIP
    • VAE
    model_type
    model
    clip
    clip_typestable_diffusion
    lora_1
    lora_1_ontrue
    lora_1_strength1.00
    vae
    sage_preset关闭
    blocks_to_swap0
    lora_2
    lora_2_onfalse
    lora_2_strength1.00
    lora_3
    lora_3_onfalse
    lora_3_strength1.00
    lora_4
    lora_4_onfalse
    lora_4_strength1.00
    lora_5
    lora_5_onfalse
    lora_5_strength1.00
    lora_6
    lora_6_onfalse
    lora_6_strength1.00
    lora_7
    lora_7_onfalse
    lora_7_strength1.00
    lora_8
    lora_8_onfalse
    lora_8_strength1.00

    Same shape as XB_ModelLoaderV1 - one node, MODEL + CLIP + VAE, eight LoRA slots, SageAttention and block-swap hooks - except the model and CLIP dropdowns load GGUF files instead of safetensors. That's the whole difference, and it's a big one if you run big models on a small card.

    GGUF is the llama.cpp quantized-format that jumped to diffusion in the Flux era and became the default way to run 12B+ models on 12GB cards. The Q ladder is the whole appeal: Q8 is basically fp16 at half the size, Q4_K_M is the accepted compromise for tight cards. This node is for people who already decided they're running quantized weights and just want the same one-node loading convenience as the safetensors version.

    How it works

    The crucial mechanism detail is that this node doesn't ship its own GGUF loader - it borrows the ComfyUI-GGUF node pack's. At first run it looks through your custom_nodes folder for a directory named ComfyUI-GGUF, loads that pack's nodes.py at runtime, and calls its UnetLoaderGGUFAdvanced and CLIPLoaderGGUF for the model and CLIP. If it can't find ComfyUI-GGUF installed, it raises a hard error: ComfyUI-GGUF 未安装!请先安装 GGUF 节点包。

    So the honest dependency chain is: XB_ToolBox → ComfyUI-GGUF → llama.cpp backend. The VAE stays a plain safetensors VAELoader call, and LoRAs go through the standard LoraLoader - same as V1.

    Inputs

    Identical layout to V1 minus model_weight_dtype (GGUF quants are baked into the file, so there's no dtype dropdown):

    • model_type - the keyword filter (same subfolder rule: files must live in a folder matching the keyword).
    • model - the .gguf UNet.
    • clip + clip_type - the .gguf text encoder (usually a quantized T5/Qwen).
    • vae - plain VAE.
    • lora_1..8 with _on/_strength.
    • sage_preset, blocks_to_swap.

    Outputs: MODEL, CLIP, VAE. _filter_by_keyword in this module also accepts .gguf extensions, which is how the dropdown sees your quant files in the first place.

    Install

    # 1. the real dependency - the GGUF node pack:
    cd ComfyUI/custom_nodes
    git clone https://github.com/city96/ComfyUI-GGUF.git
    
    # 2. this pack:
    cd ComfyUI/custom_nodes
    git clone https://github.com/WJLUOXIAO/XB_ToolBox.git
    # or: ComfyUI Manager → "XB_ToolBox"
    

    Skip step 1 and the node will load but error the moment it tries to list or load a model. This is the single most common "why doesn't it work" report for the GGUF variants, and the pack's own README doesn't mention it because the README claims zero dependencies generally.

    Notes

    SageAttention's silent-fallback behavior applies here too: no sageattention package installed means no actual speedup, just a log line. And one GGUF-specific warning worth carrying from the format's history - LoRAs on GGUF pay a dequantize-patch-requantize tax per layer, so loading a LoRA onto a Q4 model can be slower than the quant saved you. For heavy LoRA stacks, weigh whether the full-precision V1 loader fits after all.

    CategoryXB_ToolBox/Model_Loader_GGUF

    Inputs (31)

    NameTypeDefaultDescription
    model_typeSTRING
    modelCOMBO1 options: (请先输入模型类型)
    clipCOMBO1 options: (请先输入模型类型)
    clip_typeCOMBOstable_diffusion28 options: stable_diffusion, stable_cascade, sd3, stable_audio, mochi, ltxv, +22
    lora_1COMBO1 options:
    lora_1_onBOOLEANtrue
    lora_1_strengthFLOAT1.00-100–100
    vaeCOMBO1 options: (请先输入模型类型)
    sage_presetCOMBO关闭9 options: 关闭, 自动, 内置模式 A (128x128x32), 内置模式 B (128x64x96), 内置模式 C (128x16x16), 内置模式 D (64x64x16), +3
    blocks_to_swapINT00–200
    lora_2COMBO1 options:
    lora_2_onBOOLEANfalse
    lora_2_strengthFLOAT1.00-100–100
    lora_3COMBO1 options:
    lora_3_onBOOLEANfalse
    lora_3_strengthFLOAT1.00-100–100
    lora_4COMBO1 options:
    lora_4_onBOOLEANfalse
    lora_4_strengthFLOAT1.00-100–100
    lora_5COMBO1 options:
    lora_5_onBOOLEANfalse
    lora_5_strengthFLOAT1.00-100–100
    lora_6COMBO1 options:
    lora_6_onBOOLEANfalse
    lora_6_strengthFLOAT1.00-100–100
    lora_7COMBO1 options:
    lora_7_onBOOLEANfalse
    lora_7_strengthFLOAT1.00-100–100
    lora_8COMBO1 options:
    lora_8_onBOOLEANfalse
    lora_8_strengthFLOAT1.00-100–100

    Outputs (3)

    NameTypeDescription
    MODELMODEL
    CLIPCLIP
    VAEVAE