r/HPC • • 7d ago

Open-source Hugging Face mirror for clusters: one binary, no root, works for air-gapped nodes

I built a self-hosted registry that mirrors Hugging Face model repositories, and I’d like feedback from people who run this on real clusters.

The problem I had was batch inference jobs that all start by pulling the same weights from Hugging Face. That made an outside service a dependency of every job, and on nodes with no outbound access it doesn’t work at all.

What it does:

  • Mirror a repo once from a machine that has internet, then serve it inside the cluster. Existing tools just need HF_ENDPOINT set; nothing else changes.
  • One static Go binary with SQLite inside. No root, no container runtime, no database server.
  • Every file is checked against the digest Hugging Face publishes, and stored once by SHA-256, so shared files across models aren’t duplicated.
  • A registry can mirror from another registry, so a site-wide mirror can feed per-cluster ones.

Limits worth knowing: it’s a single server with no replication, there’s no scheduled sync yet, and its data directory has to be on local disk, not a network filesystem (model files can go to S3-compatible storage instead).

Apache 2.0. Repo: https://github.com/model-delivery/registry

What would you need before running something like this on a cluster? Slurm integration, a module file, parallel filesystem support?

4 Upvotes

1 comment sorted by

0

u/DJ_Mixto 7d ago

Nice.