To verify a GGUF download on a Mac, run shasum -a 256 on the finished local file and compare the output with the SHA-256 for that exact file and revision on the publisher’s page. A match confirms that the local bytes agree with the recorded bytes. Keep the download outside your model app until the comparison is complete.
You need the downloaded file, Terminal, and a trusted file record that publishes a digest. A GGUF model can exist in several quantizations, sizes, and revisions at once. The correct comparison uses the publisher, repository, file name, and revision together. A digest taken from a neighbouring model variant will give you a mismatch even when both files downloaded successfully. Perl’s shasum command reference.
Find the reference for the exact download
Start at the page where the model maintainer publishes the file. Find the repository’s file list and open the page for the file itself. A model card may discuss a family of models, while the individual file page is where the platform reports storage information. Copy the displayed SHA-256 and record the filename beside it. The digest is sixty-four hexadecimal characters. Compare the entire value, including any leading zeroes.
For a concrete example, Qwen’s GGUF repository for Qwen2.5-1.5B-Instruct has a page for its Q4_K_M file. Open that exact file page and locate its SHA-256 field if you are using that build. The family’s other quantizations have their own file pages. Follow the link for the release revision you downloaded. If a repository moves forward while your browser holds a prior copy, use the earlier revision’s file record to verify the earlier bytes. Qwen’s Q4_K_M GGUF file record.
Save the reference as a small local note with the web address and date you checked it. The digest should come from a source you already trust for that model. A file and a checksum posted together by a party you cannot identify provide less assurance. The comparison verifies identity with the reference you chose, and the trust question depends on where that reference came from.
Pay attention to the way the host describes hashes. A short commit identifier is useful for selecting a revision. A displayed storage identifier can help a platform find a file. The value to compare with the Terminal output here is the one explicitly identified as the SHA-256 for the downloaded file. Preserve the reference as text so you can search and compare it without copying adjacent labels or punctuation.
Point Terminal at the finished local file
Wait for the download manager to show completion. In Finder, open the folder where the browser placed the file. Use the file’s name and path rather than searching only for the model family. If you have downloaded similar builds before, you may see a copy with a number appended by your browser. Check which copy you intend to import.
Open Terminal and run the following command with the actual path. The example uses a file called model.gguf in Downloads. Let your shell expand the home folder, and keep the path inside quotes if it contains spaces.
shasum -a 256 "$HOME/Downloads/model.gguf"
Terminal prints a digest followed by the filename. Keep the window open until it finishes. For a large model, a short delay can simply mean the command is reading the file. A missing-file error means the local path needs attention. Dragging the correct file from Finder into a Terminal command after typing shasum -a 256 can help you enter the path without guessing the folder or escaping its spaces yourself.
You can check the command with a small known input before reading a large file. The following sends the three characters abc to the hashing command without an added newline.
printf '%s' abc | shasum -a 256
The expected digest begins with ba7816bf and ends with f20015ad. Its full value is shown below. Adding a newline to the input changes the bytes and gives a different answer. This small check makes it easier to recognize the long line the command will print for a GGUF.
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Compare the entire value and record the result
Look at the hash printed next to the file you intend to use and the copied reference. Once they match, record the exact downloaded filename and the model revision. This is useful if you move the file to an external drive and want to check your copy later. Running the same command on a copy should give the same digest when the byte contents agree, even if the filename changed.
If you want the shell to check for you, replace the example values below. Keep the digest exactly as displayed by the reference, use the quoted file path, and watch for the match output. A source may display uppercase hexadecimal letters, which still encode the same bytes. Converting the reference to lowercase before the comparison makes the text consistent with the usual command output.
expected='paste-the-published-digest-here'
file="$HOME/Downloads/model.gguf"
expected=$(printf '%s' "$expected" | LC_ALL=C tr 'A-F' 'a-f')
if result=$(shasum -a 256 "$file") && [ "${result%% *}" = "$expected" ]; then
printf '%s\n' 'match'
else
printf '%s\n' 'mismatch or unreadable file'
fi
A spelling mistake in the reference or a path error results in the mismatch branch. If you see a mismatch, first run the single-command form again and read both its digest and any error. The printed filename helps catch accidental selection of the wrong copy. You can check the file’s approximate size against the publisher as another clue, while the hash remains the check for the exact bytes.
Recover when the hash does not match
Check the four identifiers before downloading the file again. Verify the publisher, repository, exact quantization filename, and revision. Check for a similar download with a suffix appended by the browser. Make sure you selected the completed data file. A page saved from a browser as an HTML document, a partial download, and a storage pointer copied from a repository may each have a different size from the intended model.
If the identifiers still align and the two hashes differ, keep that file out of the model importer. Download the exact file again from the reference page, preferably into a folder with a clear name, and wait until the browser finishes. Check the new copy before removing or renaming the earlier one. If the mismatch persists, compare the location and revision shown in the download application with the model file page. Reports of a vendor changing an artifact are a reason to investigate the revision rather than assume the local copy is good.
A model distributed in multiple GGUF parts needs each part checked against its own digest. Keep the publisher’s file names and place the parts together according to that model’s instructions. Hashing the first part gives you evidence for those bytes alone. A missing or wrong later shard can still prevent the model from loading. If a distributor publishes one digest only for a compressed archive, check the archive against that digest before extracting it, then use any separate reference it gives for the extracted files.
Import the verified file and follow its model instructions
After the hash matches, use the import flow for the app you intend to use. A checksum comparison checks the downloaded bytes. Model loading also depends on the architecture, available runtime, model variant, and memory. If the application rejects a verified artifact, read the import or load message before attempting another download. It may report a format or architecture issue unrelated to the transfer. LM Studio’s GGUF import instructions.
Keep your original reference until the first useful reply passes. A small synthetic local chat gives you another independent check. For example, ask the model to reply with the code Cedar 16 and verify that code appears in the completed answer. If you later upgrade to a different revision, make a new note and check the new file against its own record. That keeps the working model identity and the local inference result traceable to the actual artifact you used.
Keep provenance when the file moves
A colleague might give you an external drive containing the file you verified yesterday. Hash the copy on that drive and compare it with the recorded source digest. The location and filename can change while the legitimate bytes remain identical. If an app imported the file by moving it, confirm the importer’s result in its model library and keep the original reference associated with the package name rather than continuing to use the old Downloads path.
The small abc case can also show what happens when identical names hide different contents. In a scratch directory, make one test file using the command below. Make a second file containing the same three characters followed by a newline and check both. Their sizes and hashes should differ. That experiment explains why a harmless-looking change in an artifact breaks the exact comparison.
printf '%s' abc > first-example.txt
printf '%s\n' abc > second-example.txt
shasum -a 256 first-example.txt second-example.txt
Keep the trusted digest separate from app metadata that describes the architecture or quantization. A support note can say that the file bytes match the publisher and that the app reported an incompatible architecture. Those findings can both be true. If the model card links to a list of supported runtimes, use that list to choose the next action. The successful checksum lets you avoid downloading the same verified file again while you investigate support.
If you cannot find a trusted reference digest for a file, record that the exact publisher comparison is unavailable. A hash you calculated yourself can help verify later copies of the same file. It is a starting value for your local records. It does not give you evidence that the initial bytes match a publisher’s release. Ask the distributor for its exact artifact record if a publisher comparison is required for your workflow.
Distinguish the file hash from a storage or revision identifier
A model host can show several long values next to each other. The Qwen file page for the example displayed both an Xet hash and a separately labeled SHA-256. Use the value attached to SHA-256 in the file record. A hash of a pointer, a storage object identifier, or a repository commit value identifies something else. Comparing one of those strings to the digest of the downloaded GGUF can produce an apparent mismatch even when the file itself is correct. Qwen’s file record and Xet details, Hugging Face large-file storage overview.
Write down the distinguishing parts of the artifact. Start with the organization and repository name, then the full filename and revision. Note which hash field you copied. A model page’s publication date may be quite different from the date on which a file in the repository was updated. A checked revision lets you return to the matching file without relying on the default branch to stay unchanged. Where the website supports it, get the file URL for that historical revision rather than recording only the page for the current branch.
If you obtained the file through an app, check what provenance that app can show before judging the digest. The model may have arrived from a community converter that used the original model’s public name in the title. Its GGUF contents can legitimately differ from the files published by the upstream organization. The difference matters when you choose the reference. Use the converter’s own exact artifact record if you chose that conversion and trust its publisher. A correct comparison cannot use the digest of some other distribution merely because the download has a familiar name.
Check a saved manifest before a larger transfer
When more than one model file is involved, make a small check list that associates each trusted digest with one exact local filename. Store it separately from any files you have not yet verified. The command can verify a list in its normal checksum format, which includes a marker for binary input. This example uses a synthetic file to explain the format. Work in a new scratch directory. The first verification should succeed, then a deliberate byte change should fail.
printf '%s' abc > 'small model fixture.txt'
printf '%s *%s\n' \
'ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad' \
'small model fixture.txt' > SHA256SUMS
shasum -a 256 --check SHA256SUMS
printf '\n' >> 'small model fixture.txt'
shasum -a 256 --check SHA256SUMS
The first check should report that the sample file is OK. The second should flag a failed digest comparison for that same name. The name stayed constant while the file contents changed, which makes this a small analogue for a model duplicated or replaced in the wrong folder. With a manifest passed to a verification command, confirm that it names all the files you intend to check. Matching every listed file can still leave an expected model unverified if it was omitted from the list. Perl’s shasum verification format.
Create a real manifest by copying each digest from the trusted file records, checking the exact filenames and keeping any needed revision note separately. Do this only with filenames controlled by your own local staging directory and a list you have reviewed. Run the verification from that directory so each relative filename refers to the intended artifact. A checksum list from a different folder can identify unrelated files elsewhere or fail to find the intended ones. The working directory is an important part of repeating a list-based check.
Investigate a mismatch in a specific order
First check whether the real data file is present. The downloaded size should be in the expected range. On the Mac, Finder’s information or a file count command can show whether the object consists of a few hundred bytes, while the model record describes a file far larger than that. Check extensions and the browser’s download status. A temporarily incomplete download should stay separate until its transfer finishes. If you copied a repository pointer or a web document, use the supported file download from the artifact’s page after confirming its provenance.
Next inspect the filename and revision. A two-part quantization suffix that looks similar to another can encode a different variant. The file’s approximate size can help distinguish variants, but equal size is entirely possible for two different byte sequences. An exact digest comparison is the required final check. If the page has a current and historical file with the same visible name, use the one that matches your recorded download and compare the corresponding digest.
When the bytes still disagree, preserve enough information from the mismatch to understand a future retry. Record the reference name and digest, observed digest, local size, download date, and source revision. Fetch a fresh copy of the intended artifact through its trusted record, preferably to a separate directory. Compare the new copy independently. A fresh download that agrees with the publisher’s record provides a clear replacement. If two independent attempts give the same mismatched result, recheck the published variant, the requested revision, and the downloaded location before spending time repeating the same steps.
Some model artifacts are used on more than one host. A team can verify the clean copy at acquisition and again after moving it to another disk. This avoids assuming that a shared filename or folder shortcut points to the same bytes. Record each check at the path your model server will read where practical. If the runtime copies it into managed storage, consult the import flow and verify that library location using its supported method. Keep older and newer variants distinguishable by exact source records throughout.
Carry forward the verification outcome
A useful local model record can identify a verified original, a verified transfer, or an artifact whose origin comparison is still missing. Preserve the actual category in a review record. If you have a hash calculated on your Mac but the publisher supplied no trusted digest, the local value can track later copies. It cannot decide whether the first copy was the intended publisher’s file. A separately distributed signature or checksum can be useful if you already have a trusted way to identify who supplied it. The expected digest derives its authority from that chain.
When the import and chat test follow the file check, keep their results distinct in your notes. A working reply establishes that an instance generated text. It gives no guarantee that it used the intended revision unless you also checked the selected model path or identifier. A verified binary that fails to load can be a supported issue for the runtime team, and the exact hash helps them distinguish a file problem from a system setup issue. Record its local outcome, model version, and error before starting over with a different download.
If a teammate needs help repeating the process, share the exact source record and a small tested manifest example alongside the instructions. The synthetic file can show how a successful or failed check appears without requiring a large model transfer. They can then verify their own local artifact using the same published comparison and record the exact path they will use. The successful check belongs to those bytes and that reference, which gives the handoff a concrete basis even if the app configuration changes later.
Check a public example without downloading the model
The Qwen record used here displayed the following SHA-256 when checked for this guide. Read the live record yourself before using the value with a current download. The reference page may reflect a later revision, so combine the digest with a recorded revision and its filename in any durable manifest. The first eight characters of the file SHA begin with 6a1a2eb6. The separately displayed storage hash begins with 6ca5463c. Seeing one where you expected the other is enough to return to the file record and inspect the labels before you spend time hashing the large download. Qwen’s published file details.
6a1a2eb6d15622bf3c96857206351ba97e1af16c30d7a74ee38970e434e9407e
The static digest documents what was visible on that page. It supplies a reading example without establishing an observed result from a local model download. For a reader using another model or quantization, the one-file fixture above is a better test of the command. Use the corresponding publisher record for the actual file and note whether you copied or downloaded a verified duplicate later. This prevents the illustrative digest from being confused with the value for a different model.