Next steps¶
Preview: needs Artifact Keeper main (coming in 1.12.0)
The Hugging Face format is in released Artifact Keeper, but this walkthrough needs two fixes
that are on main and not in a release yet: the HTTP Range fix that lets interrupted
downloads resume (#5145),
and snapshot_download from a hosted (Local) repository
(#5280, fixed by
#5300, main at
6c701cd4). Both will ship in the next release, 1.12.0. The reference run used a backend
built from the #5300 branch (709e3f15), the same code as main at 6c701cd4 for this
format. On a release without them, gate G5 reports the hosted snapshot_download check
BLOCKED(ak-fix). Details may still change before 1.12.0.
What to change before you use this beyond a lab, and where to go from here.
Before production¶
- Use real names and a real CA. Replace
ak.internaland Caddy's internal CA with your hostname and certificate; distribute the CA (or use a public one) instead of baking it into an image. - Freeze when you create a Remote, not later. A raised
cache-ttlonly applies to an entry from its next revalidation (Step 7). If you decide to go offline after the cache is warm, invalidate what you need (POST /api/v1/repositories/<key>/cache/invalidate?path=...) and pull it again. - Seed with the revision spelling clients use. The cache key includes the revision as it
was requested: a file pulled at
mainis not the same entry as the same file at its commit.snapshot_downloadrequests files at the commit; seed with it, and pull any files in subdirectories explicitly at the same commit until the tree listing is recursive. - Set
HF_HUB_OFFLINE=1on disconnected workstations once their cache is filled. Without it, every optional file a library probes for becomes a 502 and a retry loop (#5282). - Do not rely on the scan for model files. Nothing in Artifact Keeper reads pickle,
safetensors or GGUF yet (#5285).
Accept safetensors only, load with
weights_only=True, and keep the reviewer's hold (Step 6) for anything else. - Rotate the Hub token with
PUT /api/v1/repositories/<key>/upstream-auth; nothing on a workstation changes. - Keep tokens short-lived. The lab mints 30-day tokens; use your identity provider and
per-team tokens with only
read:artifacts. - Watch the double download. A cold
HEADfetches the whole file upstream and keeps nothing (findings F5). On multi-gigabyte weights that doubles egress on first use.
Where to go next¶
- AI coding agents through one registry: the Python and npm packages agents install, through the same kind of Remotes.
- A private marketplace for agent plugins.
- Artifact Keeper's own Hugging Face documentation.
- The issues this walkthrough leans on: hosted
snapshot_download(#5280), a cache-only mode (#5282), commit-pinned paths as immutable (#5283), seeding from a manifest (#5284), a model-file scanner (#5285), the Hub commit API (#5291), documentation (#5290).