ComfyUI GGUF: Loader, Model Folder, and No Module Named 'gguf'
Use the right ComfyUI-GGUF loader, place diffusion and text encoder GGUF files in the folders ComfyUI scans, and fix missing gguf imports.
If you searched for comfyui gguf not showing, unet loader gguf comfyui, where to put gguf in comfyui, or comfyui-gguf modulenotfounderror: no module named 'gguf', the practical answer is:
install or update ComfyUI-GGUF, put each .gguf file in the model folder its loader scans, and use a GGUF loader instead of the normal checkpoint or diffusion loader.
GGUF in ComfyUI is not just a file extension swap. The official ComfyUI issue tracker has repeated reports where users placed GGUF files in a model folder and expected the stock loader to see them. The fix is usually not moving the file again; it is using the custom loader that understands GGUF.
Quick Answer
| Goal | What to Do |
|---|---|
Load a Flux, Wan, SD3.5, Z-Image, or other diffusion .gguf | Use Unet Loader (GGUF) or the GGUF loader required by the workflow |
| Choose the model folder | Prefer ComfyUI/models/diffusion_models; ComfyUI/models/unet is a legacy-compatible path many GGUF guides still use |
| Load a GGUF T5 or text encoder | Use CLIPLoader (GGUF), DualCLIPLoader (GGUF), or the GGUF CLIP loader in the workflow |
| Choose the text encoder folder | Prefer ComfyUI/models/text_encoders; ComfyUI/models/clip is still scanned as a compatible path |
Fix No module named 'gguf' | Install ComfyUI-GGUF requirements with the exact Python that launches ComfyUI |
| Fix a missing GGUF node | Check startup logs for IMPORT FAILED, update ComfyUI-GGUF, then restart ComfyUI |
Do not start with Load Checkpoint for a GGUF diffusion model. Do not assume Load Diffusion Model will load .gguf just because the file is under models/diffusion_models.
What the Official Issue Trail Shows
The current evidence points to one important distinction: ComfyUI can scan model folders, but core ComfyUI loaders are not the same as ComfyUI-GGUF loaders.
- In ComfyUI issue
#6352, a user placed GGUF models indiffusion_modelsand expected Load Diffusion Model to list them. The answer was to use the loaders fromcity96/ComfyUI-GGUF. - In ComfyUI issue
#6098, a user expected coreDualCLIPLoaderto show a T5 GGUF file. A ComfyUI maintainer stated that core nodes did not support.gguf; the user needed ComfyUI-GGUF. - The ComfyUI feature request
#4598for built-in GGUF support is still a useful signal: GGUF demand is real, but working local setups still commonly depend on the custom node. - In ComfyUI-GGUF issue
#348and#206, the visible symptom wasModuleNotFoundError: No module named 'gguf'. In both patterns, the repair is installing requirements into the environment that actually runs ComfyUI, not the system Python you happen to have in PATH.
That is why this guide treats GitHub Issues as evidence of real failure modes, but uses the ComfyUI source and ComfyUI-GGUF README for the actual folder and loader behavior.
When Should You Use GGUF?
Use GGUF when the workflow or model page explicitly provides a .gguf model and a matching GGUF loader. It is most common for large transformer or DiT-style models where quantization can reduce VRAM pressure, such as Flux-style workflows, Wan video workflows, SD3.5 variants, and newer community quantized model releases.
GGUF is a good choice when:
- your GPU is short on VRAM
- the workflow was built around a GGUF diffusion model or GGUF text encoder
- the model author provides tested GGUF files and loader instructions
- you are willing to trade some setup simplicity for lower memory use
GGUF is not the right first fix when:
- you are running a normal
.safetensorscheckpoint workflow - the workflow says
Load Checkpointand does not mention GGUF - the GGUF custom node is not importing cleanly
- the model architecture is not supported by your GGUF loader yet
Do not rename .safetensors to .gguf, and do not put a random GGUF file into checkpoints hoping a normal checkpoint workflow will load it.
Fix No Module Named 'gguf'
That error means ComfyUI-GGUF tried to import its Python dependency and failed. The usual cause is that gguf was installed into the wrong Python environment.
| Install Type | Safer Repair |
|---|---|
| GitHub Windows portable package | Run .\python_embeded\python.exe -s -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-GGUF\requirements.txt from the portable root |
| Manual Git + venv install | Activate the venv that starts ComfyUI, then run python -m pip install -r ComfyUI/custom_nodes/ComfyUI-GGUF/requirements.txt |
| ComfyUI Desktop or managed launcher | Use the app's managed terminal, custom-node manager, or repair flow instead of a random system pip |
For the official Windows portable package, the portable root is the folder that contains run_nvidia_gpu.bat, python_embeded, and the ComfyUI folder.
After installing requirements, restart ComfyUI and confirm the startup log no longer shows:
IMPORT FAILED
ModuleNotFoundError: No module named 'gguf'
Cannot import ... ComfyUI-GGUFInstall into the right Python
If pip list says gguf is installed but ComfyUI still says No module named 'gguf', you probably installed it into a different Python. Run the install command through the same Python executable that starts ComfyUI.
Install or Update ComfyUI-GGUF
For a manual install, open a terminal in your ComfyUI folder and clone the custom node:
cd ComfyUI/custom_nodes
git clone https://github.com/city96/ComfyUI-GGUFThen install its requirements in the same Python environment used by ComfyUI:
cd ComfyUI-GGUF
python -m pip install -r requirements.txtFor a Windows portable package, run from the portable root:
git clone https://github.com/city96/ComfyUI-GGUF ComfyUI\custom_nodes\ComfyUI-GGUF
.\python_embeded\python.exe -s -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-GGUF\requirements.txtIf the custom node already exists, update it from the custom node manager or run git pull inside ComfyUI/custom_nodes/ComfyUI-GGUF, then reinstall requirements if the README or logs suggest it.
Where to Put GGUF Files
Current ComfyUI source maps the newer folder names and legacy folder names together:
diffusion_modelsscans bothComfyUI/models/diffusion_modelsandComfyUI/models/unettext_encodersscans bothComfyUI/models/text_encodersandComfyUI/models/clip
ComfyUI-GGUF also adds GGUF-specific file lists on top of those model categories. That is why older guides may say models/unet, while newer ComfyUI docs and templates usually point to models/diffusion_models.
| File You Downloaded | Prefer This Folder | Compatible Folder | Loader to Use |
|---|---|---|---|
Flux/Wan/SD3.5/Z-Image diffusion .gguf | ComfyUI/models/diffusion_models | ComfyUI/models/unet | Unet Loader (GGUF) |
T5/text encoder .gguf | ComfyUI/models/text_encoders | ComfyUI/models/clip | CLIPLoader (GGUF) or DualCLIPLoader (GGUF) |
Normal .safetensors checkpoint | ComfyUI/models/checkpoints | none | Load Checkpoint |
Normal Flux/Wan .safetensors diffusion model | ComfyUI/models/diffusion_models | ComfyUI/models/unet | Load Diffusion Model |
Do not put a GGUF diffusion model here:
ComfyUI/models/checkpointsThat folder is for checkpoint loader workflows. A GGUF diffusion model is a split diffusion model file, not an all-in-one Stable Diffusion checkpoint.
For a broader folder map, see Where to Put Safetensors in ComfyUI.
Use the Right GGUF Loader
After installing ComfyUI-GGUF, search for nodes such as:
Unet Loader (GGUF)
CLIPLoader (GGUF)
DualCLIPLoader (GGUF)
TripleCLIPLoader (GGUF)Use Unet Loader (GGUF) in place of Load Diffusion Model when the workflow expects a GGUF diffusion model. Use a GGUF CLIP loader when the workflow expects a GGUF T5 or text encoder.
If you have several similar loader nodes from different extensions, follow the workflow author's exact node names. If a workflow uses a loader from a different GGUF-related extension, installing only city96/ComfyUI-GGUF may not satisfy that workflow.
Do not spend twenty minutes moving model files around until you confirm the loader node itself exists. If the node is absent, the real problem is usually the custom node install or import.
Fast Diagnosis
| Symptom | What It Usually Means | First Thing to Check |
|---|---|---|
Unet Loader (GGUF) is missing | ComfyUI-GGUF did not load or the workflow expects another extension | Startup log for IMPORT FAILED |
| GGUF file does not appear in the GGUF dropdown | Wrong folder, stale file list, or unsupported architecture | Folder, file extension, restart, and model page instructions |
| GGUF file does not appear in Load Diffusion Model | You are using the stock loader | Replace it with a GGUF loader |
T5 GGUF does not appear in core DualCLIPLoader | Core CLIP loaders are not GGUF loaders | Use DualCLIPLoader (GGUF) |
No module named 'gguf' | Dependency installed in the wrong Python or not installed | Run requirements install with ComfyUI's Python |
No module named 'llama_cpp' in a local LLM or QwenVL GGUF node | A text/VLM GGUF custom node needs llama-cpp-python | Use the llama_cpp missing guide |
requirements.txt cannot be found | Command was run from the wrong folder or the custom node path is different | Confirm the portable root and ComfyUI\custom_nodes\ComfyUI-GGUF path |
| Workflow still runs out of memory | Quantization helped, but not enough | Try smaller quant, lower resolution, CPU/offload options, or a smaller workflow |
Template and Download Popup Caveat
ComfyUI workflow templates can embed model names, URLs, and target directories. Official docs note that current missing-file detection checks the corresponding top-level directory, and that some model formats such as .gguf can be treated as unsafe for embedded template downloads.
Practical result: a GGUF workflow may still require manual model download even if a template or workflow knows which file it wants. Download from the model author's page, place the file in the matching top-level folder, restart or refresh ComfyUI, then choose it in the GGUF loader.
Common Problems
| Problem | Cause | Fix |
|---|---|---|
Load Diffusion Model does not show .gguf | Stock loader path, not GGUF support | Use Unet Loader (GGUF) |
DualCLIPLoader does not show T5 .gguf | Core CLIP loader is not the GGUF CLIP loader | Use DualCLIPLoader (GGUF) |
No module named 'gguf' | Missing dependency in ComfyUI's Python | Install ComfyUI-GGUF requirements with the active environment |
ERROR UNSUPPORTED UNET or architecture errors | The loader cannot detect that model architecture | Check the model page and ComfyUI-GGUF issues before forcing it |
| LoRA behaves differently with GGUF | GGUF LoRA support is more conditional than normal safetensors workflows | Test with a simple workflow first |
| Model exists in a subfolder but template says missing | Current template detection checks top-level folders | Select the model manually or place it where the template expects |
GGUF vs Checkpoint vs Safetensors
| Format | Typical Folder | Typical Loader |
|---|---|---|
.safetensors checkpoint | models/checkpoints | Load Checkpoint |
.safetensors diffusion model | models/diffusion_models | Load Diffusion Model |
.gguf diffusion model | models/diffusion_models or models/unet | Unet Loader (GGUF) |
.gguf text encoder | models/text_encoders or models/clip | CLIPLoader (GGUF) family |
The file extension alone is not enough. The workflow and loader node decide where the file belongs.
How Wonderful Launcher Helps
GGUF setup can touch custom nodes, model folders, Python packages, and workflow loaders at the same time. Wonderful Launcher helps when you want to:
- keep a stable non-GGUF environment separate from a GGUF experiment
- preserve working workflows before adding custom nodes
- collect startup logs when loader nodes fail
- recover models and workflows before rebuilding ComfyUI
If GGUF install breaks other nodes, start with ComfyUI Dependency Conflicts.
Related Guides
- Where to Put Safetensors in ComfyUI
- How to Save a Workflow in ComfyUI
- Download Models
- Install ComfyUI Custom Nodes
- ComfyUI Plugin Import Failed
- ComfyUI No Module Named 'llama_cpp'
- ComfyUI Dependency Conflicts
- GPU Compatibility
Source References
- ComfyUI-GGUF README
- ComfyUI-GGUF node source
- ComfyUI folder path source
- Official ComfyUI model concepts
- Official ComfyUI CLIPLoader docs
- Official ComfyUI workflow template docs
- ComfyUI issue #4598: Support GGUF
- ComfyUI issue #6352: Load Diffusion Model does not list GGUF
- ComfyUI issue #6098: DualCLIPLoader does not see GGUF CLIP models
- ComfyUI-GGUF issue #348: No module named gguf import failure
- ComfyUI-GGUF issue #206: gguf installed in the wrong environment
Start with Wonderful Launcher if this issue touches your real ComfyUI environment. Use the docs to understand the fix, and use the app to inspect the machine you already have.
Download Wonderful LauncherDid this fix your issue?
Your answer helps prioritize verified ComfyUI repairs.