ARTIFACTORY: File Sizes in Artifactory UI Differ from Upstream Registries (like Hugging Face)

Products
Frog_Artifactory
Content Type
Use_Case
AuthorFullName__c
Jeremy Leopold
articleNumber
000007190
FirstPublishedDate
2026-10-25T14:43:53Z
lastModifiedDate
2026-10-25

ARTIFACTORY: File Sizes in Artifactory UI Differ from Upstream Registries (like Hugging Face)

Introduction
After caching large files from a remote repository - for example Hugging Face ML model shards - the size shown in the Artifactory artifact tree can look slightly smaller than the size shown on the upstream site.
This difference occurs because Artifactory calculates sizes in binary units (GiB) while upstream sites often use decimal units (GB). This article will walk you through how to confirm the bytes and checksums match, and explain how these labels are calculated.


Symptoms
  • The same filename (e.g. model-00001-of-00004.safetensors) shows a different human-readable size in Artifactory than on the upstream UI.
  • The gap is usually a few percent on multi-GB files, not orders of magnitude.
  • Downloads from Artifactory succeed; the concern is whether anything was truncated or corrupted during caching.


Example: Hugging Face ML remote cache
A customer pulled model google/gemma-3n-E4B-it through a Hugging Face ML remote. On huggingface.co the shard sizes looked like this:
In the remote -cache repository after download, the same shards showed:
File
Size in Artifactory UI
model-00001-of-00004.safetensors
2.87 GB
model-00002-of-00004.safetensors
4.63 GB
model-00003-of-00004.safetensors
4.65 GB
model-00004-of-00004.safetensors
2.48 GB
For model-00001-of-00004.safetensors, Hugging Face showed 3.08 GB while Artifactory showed 2.87 GB.


Check the stored size in bytes
The UI label is rounded. The Storage API returns the exact byte length.
URL-encode characters in the path (for example : in the revision timestamp). Use the -cache repo key and the path from Artifacts.
Command:

Shell

curl -s -u '<USERNAME>:<PASSWORD_OR_TOKEN>' \
'https://<JFROG_HOST>/artifactory/api/storage/<REPO_KEY>-cache/models/google/gemma-3n-E4B-it/main/2025-07-14T13%3A56%3A17.000Z/model-00001-of-00004.safetensors'
Example response (abbreviated):

JSON

{
  "size": "3077103824",
  "checksums": {
    "sha256": "1af26e1fd61af0dc067252c907bf52900c7cd5864893e29970e6ea87320322a6"
  }
}
The General Info panel for the same file shows the rounded UI size and the same SHA-256:
Optional checks on downloads from Hugging Face and from Artifactory:

Shell

ls -l model-00001-of-00004.safetensors

shasum -a 256 model-00001-of-00004.safetensors
In the reported case, ls -l listed 3077103824 bytes from both sources, and the SHA-256 matched Artifactory’s checksum.


Why the labels differ
The artifact size in the UI is a rounded label built from the stored byte count.
Artifactory uses binary units for that conversion, where 1 KiB = 1,024 bytes (and the same 1024 step up through MiB, GiB, and so on). That is why model-00001-of-00004.safetensors shows as 2.87 GB in Artifactory for 3,077,103,824 bytes.
Hugging Face and many other sites show decimal-style GB labels, where 1 KB = 1,000 bytes. The same file appears as 3.08 GB there. The bytes and checksum match; only the label changes.
To see the same idea with that byte count, use a Convert Byte to Gigabyte tool:
Notes