NewsCrawler.org

Pirate Face CLI: loading AI models from a torrent swarm first, Hugging Face second

Pirate Face CLI: loading AI models from a torrent swarm first, Hugging Face second
Image: pirateface.co

Pirate Face is a project that lists 38,835 models as torrents. Its command-line tool, Pirate Face CLI, gets model files from people who already have them and goes to Hugging Face only for what the swarm cannot send.

Existing code that uses transformers or huggingface_hub does not change. Users can add pirateface to a single uv run with PF_HF_FIRST=1, or install it with pip and set PF_HF_FIRST=1 in the environment. The pf download command works like hf download and puts the model in the Hugging Face cache.

The pf seed --hf-cache command seeds cached models one at a time and asks before each one, and submits models the project does not list yet. The pf work command streams a model from Hugging Face without writing it to disk, then builds the torrent and submits it. Seeding and rescue work both earn points on a leaderboard. If the Pirate Face site is down, pf index --sync keeps a local copy of the magnet index, and pf download uses it to join the swarm and checks every piece against the torrent's hashes.

Read the original pirateface.coDiscussion

Sources

Terms

  1. swarm — All the computers that are sharing the same torrent, both those that have the full file and those downloading it.
  2. seeding — Keeping a file available to others in a torrent network after you have downloaded it, so they can take pieces from you.
  3. magnet index — A list of torrent magnet links, which identify files by hash and let a client find peers without a .torrent file.
  4. hashes — Short fingerprints computed from a piece of data; a downloaded piece is compared with its expected hash to confirm it is not corrupted or altered.

Published: First seen: Читать по-русски

Open as a page