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

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

High/low dual-model loader, GGUF edition

By wjluoxiao·Created 5 months ago·Updated 6 days ago· 302
XB-BOX - 📦 模型加载大全V2 (GGUF)
    • Model High
    • Model Low
    • CLIP
    • VAE
    model_type
    model_high
    lora_high_1
    lora_high_1_ontrue
    lora_high_1_strength1.00
    sage_high关闭
    blockswap_high0
    model_low
    lora_low_1
    lora_low_1_ontrue
    lora_low_1_strength1.00
    sage_low关闭
    blockswap_low0
    clip
    clip_typestable_diffusion
    vae
    lora_high_2
    lora_high_2_onfalse
    lora_high_2_strength1.00
    lora_high_3
    lora_high_3_onfalse
    lora_high_3_strength1.00
    lora_high_4
    lora_high_4_onfalse
    lora_high_4_strength1.00
    lora_low_2
    lora_low_2_onfalse
    lora_low_2_strength1.00
    lora_low_3
    lora_low_3_onfalse
    lora_low_3_strength1.00
    lora_low_4
    lora_low_4_onfalse
    lora_low_4_strength1.00

    The GGUF version of the pack's dual-model loader. XB_ModelLoaderV2_GGUF loads a high-noise and low-noise model from .gguf files - each with its own LoRA stack, SageAttention preset, and block-swap count - plus the shared CLIP and VAE, all from one node. If you're running the refiner/high-low pattern and you need quantization to fit, this is the node that does both in one box.

    Everything from the safetensors V2 carries over: the model_type keyword filter, the four-LoRA-per-side layout with _on/_strength toggles, independent sage_high/sage_low and blockswap_high/blockswap_low, and the shared clip/clip_type/vae. The differences are the two things that make it a GGUF node: the model dropdowns list .gguf files, and there's no weight_dtype selector because the quantization lives in the file.

    Outputs are Model High, Model Low, CLIP, VAE - same contract as V2, so it drops into an existing high/low workflow without rewiring the rest of the graph.

    How it works

    Same runtime borrow as the other GGUF variants: it needs the ComfyUI-GGUF node pack installed in custom_nodes, finds it by directory name, and calls its UnetLoaderGGUFAdvanced for both model_high and model_low. Missing that dependency is a hard error, not a warning - the node refuses to run until ComfyUI-GGUF is present.

    The two models load independently, their LoRAs apply independently, and the Sage/block-swap hooks fire per side. CLIP loads through ComfyUI-GGUF's CLIPLoaderGGUF (quantized text encoders - the Q4/Q8 T5s and Qwen encoders are the usual suspects), and the VAE stays a plain safetensors VAELoader.

    The inputs that matter

    • model_high / model_low - two .gguf UNets. This is where the Q ladder does the heavy lifting: Q4_K_M high model + Q8 low model is a common pairing, letting the detail finish stay crisp while the structure pass stays small.
    • lora_high_1 / lora_low_1 - both default to on, same as V2. Check the toggles before assuming a LoRA leak.
    • blockswap_high / blockswap_low - per-model block offload. On a tight card, run the high side with blocks swapped and the low side at 0.
    • clip_type - shared, must match both models' text encoder family.

    Install

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

    Without step 1 you'll hit the "ComfyUI-GGUF 未安装" error as soon as the node executes.

    Notes

    Two things to weigh before reaching for this. First, dual GGUF models + LoRAs is the worst-case combo for the dequant tax - every LoRA on a quantized model forces dequantize-patch-requantize per layer, and you're doing it on two models. If your refiner pair is small enough to run at fp8, V2 might be faster than V2_GGUF. Second, loading two quantized models is still loading two models; the node saves VRAM per-file, not the second residency. If your goal is strictly "one model, fits on card," the V1_GGUF is the honest pick.

    CategoryXB_ToolBox/Model_Loader_GGUF

    Inputs (34)

    NameTypeDefaultDescription
    model_typeSTRING
    model_highCOMBO1 options: (请先输入模型类型)
    lora_high_1COMBO1 options:
    lora_high_1_onBOOLEANtrue
    lora_high_1_strengthFLOAT1.00-100–100
    sage_highCOMBO关闭9 options: 关闭, 自动, 内置模式 A (128x128x32), 内置模式 B (128x64x96), 内置模式 C (128x16x16), 内置模式 D (64x64x16), +3
    blockswap_highINT00–200
    model_lowCOMBO1 options: (请先输入模型类型)
    lora_low_1COMBO1 options:
    lora_low_1_onBOOLEANtrue
    lora_low_1_strengthFLOAT1.00-100–100
    sage_lowCOMBO关闭9 options: 关闭, 自动, 内置模式 A (128x128x32), 内置模式 B (128x64x96), 内置模式 C (128x16x16), 内置模式 D (64x64x16), +3
    blockswap_lowINT00–200
    clipCOMBO1 options: (请先输入模型类型)
    clip_typeCOMBOstable_diffusion28 options: stable_diffusion, stable_cascade, sd3, stable_audio, mochi, ltxv, +22
    vaeCOMBO1 options: (请先输入模型类型)
    lora_high_2COMBO1 options:
    lora_high_2_onBOOLEANfalse
    lora_high_2_strengthFLOAT1.00-100–100
    lora_high_3COMBO1 options:
    lora_high_3_onBOOLEANfalse
    lora_high_3_strengthFLOAT1.00-100–100
    lora_high_4COMBO1 options:
    lora_high_4_onBOOLEANfalse
    lora_high_4_strengthFLOAT1.00-100–100
    lora_low_2COMBO1 options:
    lora_low_2_onBOOLEANfalse
    lora_low_2_strengthFLOAT1.00-100–100
    lora_low_3COMBO1 options:
    lora_low_3_onBOOLEANfalse
    lora_low_3_strengthFLOAT1.00-100–100
    lora_low_4COMBO1 options:
    lora_low_4_onBOOLEANfalse
    lora_low_4_strengthFLOAT1.00-100–100

    Outputs (4)

    NameTypeDescription
    Model HighMODEL
    Model LowMODEL
    CLIPCLIP
    VAEVAE