Unexpected architecture type in GGUF file (ComfyUI-GGUF doesn’t know the model yet)
The ComfyUI-GGUF custom node rejects the GGUF file because it doesn’t know its model architecture. This almost always happens with new models like Qwen-Image, HunyuanVideo, or Z-Image when the node is outdated.
The message
ValueError: Unexpected architecture type in GGUF file: 'qwen_image'
Affects: ComfyUI
Why is this happening?
ComfyUI-GGUF has a fixed list of allowed architectures in loader.py - separate for image models and text encoders. If the name from the file (for example qwen_image, hyvid, or for the text encoder qwen3) is not in your installed version, you get this error. For text encoders, the message says “Unexpected text model architecture type in GGUF file: …”.
How to fix it
- Update ComfyUI-GGUF through the ComfyUI Manager. If that doesn’t help, delete the
custom_nodes\ComfyUI-GGUFfolder and reinstall the node. - For the portable version, reinstall from the folder with
run_nvidia_gpu.bat:git clone https://github.com/city96/ComfyUI-GGUF ComfyUI/custom_nodes/ComfyUI-GGUFand then.\python_embeded\python.exe -s -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-GGUF\requirements.txt. - For a normal installation, also update the package in the active environment:
pip install --upgrade gguf. - Also update ComfyUI itself to the latest version too (portable:
update\update_comfyui.bat), because new models often need both. - Use the right loader: load the image or video model with “Unet Loader (GGUF)” from
models/unet, and load text encoders as GGUF with “CLIPLoader (GGUF)”. For the Qwen3 text encoder from Z-Image, set the type tolumina2there. - Restart ComfyUI afterward and reload the page in your browser.
Better not: Don’t rely on update_comfyui.bat being enough - that only updates ComfyUI, not the ComfyUI-GGUF custom node, and that’s exactly where the list of supported models is.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Set up and maintain ComfyUI on Windows
Desktop or Portable, where the models belong, sharing models with other programs, safely installing custom nodes, updates, startup options … - Your First Image with ComfyUI
Install Comfy Desktop, learn the interface, and create your first AI image with FLUX.2 [small] 4B or Z-Image Turbo. - Your First AI Video with LTX in ComfyUI
Use LTX-2.3 in ComfyUI to create short videos with sound from text or an image. Template, files, settings, and license.
Terms for this
Similar errors
- lora key not loaded (LoRA does not match the model or the loader)
- ERROR: clip input is invalid: None (Checkpoint contains no text encoder)
- ERROR: Could not detect model type of: … (Model is in the wrong folder or the wrong loader)
- IPAdapter model not found / ClipVision model not found (IPAdapter files are missing or named incorrectly)
- clip missing: ['text_projection.weight'] (usually a harmless warning)
Sources
- https://github.com/Comfy-Org/ComfyUI/issues/9211
- https://github.com/city96/ComfyUI-GGUF
- https://huggingface.co/city96/HunyuanVideo-gguf/discussions/2
- https://huggingface.co/T5B/Z-Image-Turbo-FP8/discussions/1
Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.