Free | No tracking | Every fact with a source|German and English

Error / Models and files

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

  1. Update ComfyUI-GGUF through the ComfyUI Manager. If that doesn’t help, delete the custom_nodes\ComfyUI-GGUF folder and reinstall the node.
  2. 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-GGUF and then .\python_embeded\python.exe -s -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-GGUF\requirements.txt.
  3. For a normal installation, also update the package in the active environment: pip install --upgrade gguf.
  4. Also update ComfyUI itself to the latest version too (portable: update\update_comfyui.bat), because new models often need both.
  5. 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 to lumina2 there.
  6. 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:

Terms for this

Similar errors

Sources

Checked on Oct 28, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.