Pirate Face CLI falls back to Hugging Face only when the torrent swarm can't deliver
The command-line tool pulls model files from peers so a stalled download doesn't sink a CI job.
The breaking point is familiar: CI pulls a 15 GB model, the Hugging Face download stalls halfway, and the job fails. In a post dated November 17, the Pirate Face team introduced its command-line tool. It fetches the same files from peers in the site's torrent swarm, which covers 47,335 models according to Pirate Face, and turns to Hugging Face only for pieces the swarm can't supply.
Existing code stays as it is. Projects already built on transformers or huggingface_hub can set PF_HF_FIRST=1 to keep Hugging Face as the first source, with the swarm as backup. With uv installed, a standalone download lands in the Hugging Face cache:
uvx -p 3.13 --from pirateface pf download org/model
The piece that changes the architecture is pf index --sync. It keeps a local copy of the magnet index. If pirateface.co stops responding, pf download looks the model up in that copy and joins the swarm directly, checking every piece against the torrent's hashes. The copy needs periodic resyncs to pick up new models.
The pf seed --hf-cache command walks the local cache and asks before seeding each model. pf work takes a model from the rescue queue, which holds models not yet listed as torrents, streams its files without writing them to disk and builds the torrent.
What stays open is who in the pipeline owns the decision to seed, and how often the local index gets refreshed.