Make targets¶
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.
Run from private-model-hub/. make all runs every target from registry-up to freeze in
order; each one is also safe to run on its own once the ones before it have run.
| Target | Script | What it does | Page |
|---|---|---|---|
registry-up |
registry/up.sh, lab-hub/up.sh |
Starts the ak-hf stack (generates registry/.env, exports the CA) and the lab Hub at .200 |
Step 1 |
bootstrap |
registry/bootstrap.sh |
Package proxies, hf-hub and hf-lab (frozen), users and tokens, the podman auth file |
Step 1 |
client |
client/build.sh |
Builds localhost/ak-hf/workstation:latest through the registry |
Step 1 |
proxy |
flows/proxy.sh |
snapshot_download, hf download, encode through hf-lab and hf-hub; a second pull |
Step 2 |
gated |
flows/gated.sh |
hf-lab-gated with the Hub token, group ml-team, alice and bob |
Step 3 |
allowlist |
flows/allowlist.sh |
hf-curated with an upstream filter |
Step 4 |
host |
flows/host.sh |
hf-local, hf-models; publishes acme/embedder and uses it |
Step 5 |
hold |
flows/hold.sh |
hf-staging: hold, scan on upload, block_unscanned, reviewer actions |
Step 6 |
freeze |
flows/freeze.sh |
Seeds, disconnects, loads from a workstation with no route out, reconnects | Step 7 |
gates |
gates/run-all.sh |
G1-G8; one line per check, out/gates/results.tsv, per-gate logs |
Step 8 |
screens |
screens/shoot.sh |
Web UI screenshots into out/screens/ (Playwright) |
Results |
screens-ready |
Prints the UI URL and where the admin password is | ||
registry-down |
lab-hub/down.sh, registry/down.sh |
Stops everything, keeps the volumes | |
clean |
lab-hub/down.sh, registry/clean.sh |
Removes the ak-hf-* containers, ak-hf_* volumes, both networks, the workstation image and all local state |
Environment variables read by the scripts:
| Variable | Default | Effect |
|---|---|---|
AK_BACKEND_IMAGE, AK_WEB_IMAGE |
BACKEND_IMAGE, WEB_IMAGE in registry/.env |
Images for one run (the nightly runner sets them) |
READY_TIMEOUT |
300 | Seconds registry/up.sh waits for /readyz |
RUST_LOG |
info,artifact_keeper=debug,tower_http=info |
Backend log level |
Ports, names and subnets (all in registry/.env and registry/lib.sh): host port
127.0.0.1:30449; containers ak-hf-*; volumes ak-hf_*; networks ak-hf-net
(172.31.80.0/24) and ak-hf-offline (172.31.81.0/24, internal).