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

Error / Models and files

SafetensorError: incomplete metadata / MetadataIncompleteBuffer

The model file is shorter than its own file header says it should be, usually because the download was not complete.

The message

safetensors_rust.SafetensorError: Error while deserializing header: incomplete metadata, file not fully covered (ältere Versionen: MetadataIncompleteBuffer) … Stable diffusion model failed to load

Affects: AUTOMATIC1111 Stable Diffusion WebUI, Stable Diffusion WebUI Forge, Stable Diffusion WebUI Forge – Neo, ComfyUI, SwarmUI, InvokeAI

Why is this happening?

A .safetensors file starts with a header that says how many bytes follow. If the file is shorter, the safetensors library reports "file not fully covered". This almost always happens because of an interrupted download, a full drive, or a Git clone without support for large files. In A1111 and Forge, this is often followed by "Stable diffusion model failed to load".

How to fix it

  1. Compare the file size on your drive with the size on the download page (Hugging Face or Civitai). If they differ, the file is broken.
  2. Delete the file and download it again. Make sure the download is really finished before you start the program.
  3. It’s best to download Hugging Face models with hf download <repo-id> <dateiname> --local-dir <modellordner> instead of using the browser. The Hugging Face CLI automatically handles large files.
  4. If you got a repository with git clone, large files are just tiny placeholders without the Git Xet extension (git xet install). In that case, download the model file separately with hf download.
  5. Check whether there is enough free space on the drive. A full drive can also create truncated files.

Better not: Do not reinstall the entire program if only one model file is broken.

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.