Load GGUF Path
A Clean Dropdown That Spits Out a GGUF File Path
- MODEL_PATH
Load GGUF Path doesn't load any model. It solves a dumber, more annoying problem: getting a full file path into a node that needs one, without typing it. You pick a GGUF file from a dropdown, and out pops the absolute path as a string. That's it - and if you've ever fought with GGUF text encoders in ComfyUI, you know exactly why this exists.
Here's the context. GGUF is the quantized single-file format that made large models runnable on consumer cards - the KB's quality ladder has Q8 at essentially fp16 quality with half the VRAM, and the text encoders (the T5s and Qwen models that turn your prompt into conditioning) are among the most-quantized pieces of a modern stack. Loading those in ComfyUI means a loader node that wants a full path to the .gguf file. The loader's dropdowns only show files in its own folders, and hand-typing an absolute Windows or Linux path into a widget is a misery nobody should endure - especially since a missed slash fails at runtime, not at the moment you type it.
This node turns "which file?" into a dropdown. The model_name combo is populated by scanning for .gguf files in ComfyUI's text_encoders folder, plus any extra folders you list in the pack's config.json. The output MODEL_PATH is the full absolute path string, ready to wire into a GGUF loader (city96's ComfyUI-GGUF being the ecosystem's standard for consuming these).
Setup: the config.json bit
The pack scans two places for GGUF files: ComfyUI's text_encoders folder (automatic) and any folders you add. To add your own model directories, create a config.json in the pack's folder:
{
"model_folders": [
"C:\\Users\\YourUsername\\models",
"D:\\AI\\LLM\\models",
"/home/user/models"
]
}
Restart ComfyUI after dropping new .gguf files in - the dropdown is populated at load time.
Behavior worth knowing
This is the general picker, so it deliberately filters out files whose names contain mmproj or draft - those get their own nodes (Load GGUF MPROJ Path and Load GGUF DRAFT Path in this same pack). If nothing's found, the dropdown shows "No GGUF models found" and the node raises a clear error if you run it anyway. The source also double-checks that the chosen file ends in .gguf before it returns the path, so a stray file that snuck into the scan gets rejected rather than silently handed downstream.
A small warning: this returns a string path, and a plain string isn't a loaded model. Somewhere after this node you still need an actual GGUF loader that accepts a path string - if the connection gets rejected, that's the usual "convert the loader's input to a wire and bridge with an Any Adapter" dance.
Install
Part of comfyui-sg-nodes by sebagallo. ComfyUI Manager → search comfyui-sg-nodes, or:
cd ComfyUI/custom_nodes
git clone https://github.com/sebagallo/comfyui-sg-nodes
Restart ComfyUI; it's under SGNodes/GGUF Loaders. No model downloads - the pack downloads nothing, you bring your own GGUF files.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| model_name | COMBO | Select GGUF model file |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MODEL_PATH | STRING | — |