How to verify a GGUF download with SHA-256
Keep the file on your computer. Calculate its SHA-256 locally and compare it with the checksum for that exact file in the publisher’s repository. No upload, model launch or extra copy is required.
Pick the right number before opening a terminal
The Qwen filename and SHA-256 below are examples; for your download, use the filename and checksum published for that exact file, source repository and revision. On Qwen’s page for Qwen3-4B-Q4_K_M.gguf, the SHA256 field at revision a9a60d0 is 7485fe6f11af29433bc51cab58009521f205840f5b4ae3a32fa7f92e8534fdf5. The Xet hash next to it is a different identifier, and the Git commit identifies the repository snapshot, not the weights file. Use the 64-character SHA256 from the file page, not a project-wide hash or another uploader’s checksum.
Open the official Qwen3 4B file used in this example
Hash the file you actually downloaded
Open a terminal in the directory containing the finished file. Use one command for your operating system; if you downloaded a different file, replace the quoted filename.
Windows PowerShell:
(Get-FileHash -LiteralPath '.\Qwen3-4B-Q4_K_M.gguf' -Algorithm SHA256).HashmacOS with shasum:
shasum -a 256 'Qwen3-4B-Q4_K_M.gguf'Linux with GNU Coreutils:
sha256sum 'Qwen3-4B-Q4_K_M.gguf'On macOS and Linux the output can include the filename. Compare only the 64 hexadecimal characters. PowerShell may use capital letters; case doesn’t change the value.
If the numbers differ, don’t guess why
First check the repository owner, revision, quantization suffix and filename. Another build can have the same rounded size and a different valid checksum. If your file is tiny and opens as three short lines beginning with a Git LFS version, you saved the pointer, not the model. Use the publisher’s download link for the actual file. If the exact intended file still gives a mismatch, don’t rely on it; obtain a fresh copy from that trusted revision and verify again.
What a match proves
A match is evidence that the local bytes agree with the published reference. It does not establish that an unfamiliar uploader is trustworthy, that the model’s license permits your use, or that it will fit your GPU. Keep the pinned file link alongside the checksum if you need to repeat the check later.
Compare two SHA-256 values
Paste the full reference SHA-256 and the SHA-256 you calculated. This compares values on this page; it does not read files or send them anywhere.