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
- 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.
- Delete the file and download it again. Make sure the download is really finished before you start the program.
- 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. - 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 withhf download. - 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:
- 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
Sources
- https://raw.githubusercontent.com/huggingface/safetensors/main/safetensors/src/tensor.rs
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/10199
- https://huggingface.co/docs/hub/repositories-getting-started
- https://huggingface.co/docs/huggingface_hub/guides/cli
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.