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

Error / Models and files

Error while deserializing header (corrupted model file)

The model file can't be read, usually because the download is incomplete or corrupted.

The message

safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge

Affects: ComfyUI

Why is this happening?

A .safetensors file starts with a header that describes what's inside the file. If the download was interrupted, the drive was full, or a website was saved instead of the model, that header is broken.

How to fix it

  1. Compare the file size with the information on the download page (e.g. Hugging Face). If the file is much smaller, it's incomplete.
  2. Delete the file and download it again, ideally using the download button on the model page or the ComfyUI Manager.
  3. Check whether enough free storage is available. Models are often 2 to 15 GB or more.
  4. Check whether ComfyUI has read permissions for the folder (e.g. on network drives or protected folders).
  5. Test a different model to see whether only this one file is affected.

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 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.