Reference only

Safetensors header errors: verify the artifact before changing loaders

A .safetensors header parsing failure can involve an incomplete or wrong download, a different format or a parser/loader mismatch. The message alone does not uniquely prove corruption.

Symptoms and scope

A .safetensors header parsing failure can involve an incomplete or wrong download, a different format or a parser/loader mismatch. The message alone does not uniquely prove corruption.

Error fragments for search; IDs, values and filenames may vary:

HeaderTooLarge
MetadataIncompleteBuffer
Error while deserializing header

Source-supported context

Official model troubleshooting covers header failures. Safetensors specifies a length-prefixed JSON header; a .safetensors extension alone does not establish that the bytes follow that format. Hugging Face documents legacy Git LFS pointer files, which are references rather than weight bytes. Issue #6928 reports continued failure after redownload and a claimed hash comparison; #7659 reports incomplete VAE metadata. These reports are clues, not file-integrity tests performed by this site. Source 1 Source 2 Source 3 Source 4 Safetensors format LFS pointers PowerShell Get-FileHash

Cases to distinguish

1. The saved content is a login/error page, Git LFS pointer or partial download rather than complete weights.

2. The file is intact but belongs to another format/revision or is being read by the wrong loader.

3. Transfer, storage or a parser-version issue needs a comparison with reliable publisher metadata.

Diagnostic sequence

The sequence below is an editorial procedure based on the cited context, not a diagnosis already confirmed for your environment.

Step 1. Record repository, revision, relative path, size and source. Investigate suspiciously tiny files without overwriting weights in a text editor.

Step 2. Compare an upstream checksum using the same algorithm and exact artifact revision. When no trusted expected value exists, mark integrity as unconfirmed rather than judging by approximate size.

Step 3. Download through the author's supported method to a separate file, with no concurrent writers to the same target. Resolve access requirements for restricted resources first.

Step 4. Compare a minimal compatible loader path. If the exact publisher hash matches but parsing still fails, record the file identity, parser/loader version and traceback; report that case rather than repeatedly changing extensions. A matching hash checks bytes against that reference, not parser compatibility.

Commands and request examples

In Windows PowerShell, replace the sample path with your own file. This read-only command was not executed for your machine. Compare the result against a reliable expected hash for the exact upstream artifact; a local hash alone is not proof of origin.

Get-FileHash -Algorithm SHA256 -LiteralPath "D:\models\your-model.safetensors"

Completion check

Artifact identity matches its source and the parser reads the weights. Model-structure compatibility must still be validated afterwards.

Limitations and cautions

Do not bypass parsing by loading an untrusted pickle/.pt file. This site has not downloaded or computed checksums for the large weights referenced here.

Original sources

Sources and English wording rechecked 2026-09-25. No model weight was downloaded or hashed by this site; no GPU run or repair guarantee is supplied.

Didn't solve it?

Check the next possible cause

The same symptom can come from a different cause. Work through these related entries in order.

  1. Value not in list: why a downloaded model does not appear in ComfyUIValue not in listA saved ckpt_name, lora_name or another selection is absent from the current allowed list. Check the input name first: this validation error can also concern non-file options such as samplers.
  2. Hugging Face 401 or 403: browser access and download-process authorization differ401 Client ErrorSeeing a model card does not guarantee that a script is authorized to fetch weights. Verify resource access and credential identity rather than bypassing TLS or repository restrictions.
Paste your full log into the error finder

Was this page helpful?

Anonymous. Only a yes/no counter is stored; no account, IP address or device details.

Sources & references

Official ComfyUI, Safetensors, Hugging Face and PowerShell references plus two explicitly individual issue reports rechecked 2026-09-25. No model weight was downloaded, hashed or GPU-tested by this site.

01ComfyUI model troubleshootingSource checked: 2026-09-2502HeaderTooLarge despite reporter checksum comparisonSource checked: 2026-09-2503VAE MetadataIncompleteBufferSource checked: 2026-09-2504Hugging Face Hub download guideSource checked: 2026-09-2505Safetensors formatSource checked: 2026-09-2506Hugging Face legacy Git LFS pointersSource checked: 2026-09-2507PowerShell Get-FileHashSource checked: 2026-09-25

Report an issue · f8ba0598-d7c9-5cdd-8373-9565460bb7fe