Skip to main content

A tiny cache widget for accessing hugging face models easier and faster!

Project description

HuggingFace Model Cache

简体中文

HuggingFace Model Cache (referred to as "HFMC") is a compact and efficient tool designed to help users use models on HuggingFace faster and more easily. HFMC assists users in the following ways:

  1. Sharing model files between different HFMC nodes to avoid downloading the same model repeatedly from hf.co;
  2. Automatically selecting the best download method from local networks, mirror sites, and hf sources;
  3. Supporting resuming model downloads from the point of interruption to reduce wasted bandwidth and precious time due to unstable networks;
  4. Quickly viewing, adding, and deleting local model files to make model management easier.

Features of HFMC

Model Sharing

Within the same local network, HFMC nodes can share models with each other. For instance, if node "Pegasus" has downloaded the meta-llama-3.1-8B model and node "Cygnus" wants to download it, HFMC will fetch the model from node "Pegasus" over the local network. This is faster, more stable, and more cost-effective than downloading from huggingface.co.

In this way, colleagues within the same lab or office can quickly share models, and users can also use HFMC to rapidly distribute models within a GPU cluster.

Multi-Source Download

HFMC integrates multiple download sources to provide model download functionality. Specifically, when a user downloads a model via HFMC, it will sequentially attempt to download the target model from the local network (from other HFMC nodes), hf mirror sites (such as hf-mirror.com), and hf source sites.

Resume Interrupted Downloads

Compared to manually downloading models from HuggingFace via a browser, HFMC offers resuming interrupted downloads. HFMC supports "cross-source resume" functionality, meaning an interrupted download on a local network can seamlessly continue from a mirror site.

Model Management

HFMC provides a command-line tool to help users browse, download, and delete local model files. Information about model file sizes, quantities, and paths can be easily reviewed with a single command.

Installing HFMC

HFMC supports Python version 3.8 and above, and can run on Windows, MacOS, and Linux.

Install HFMC using the following command:

pip install hfmc

Detailed Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hfmc-0.1.10.tar.gz (573.8 kB view details)

Uploaded Source

Built Distribution

hfmc-0.1.10-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file hfmc-0.1.10.tar.gz.

File metadata

  • Download URL: hfmc-0.1.10.tar.gz
  • Upload date:
  • Size: 573.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for hfmc-0.1.10.tar.gz
Algorithm Hash digest
SHA256 6f5f69817a6a6e5cdefb635150c52e38a8332a7285590bc0e93a005a3d3494cc
MD5 416224ad813161b3ce11e2021f197a4d
BLAKE2b-256 125ef0f2cc287251c8b9a38a2de1dd43571d230b7aa9ba7600eebe8a8e863bbd

See more details on using hashes here.

File details

Details for the file hfmc-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: hfmc-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for hfmc-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a0eb45c24b85224e8344ee559ca50de9538bad6908f2f5e4268f0df0db3a15
MD5 2aec069a97cc4268f9341a807b514107
BLAKE2b-256 5f0b78c3afd58992a7f6b297ceda42914e06f68289250f4d2ce5e963ea2a0909

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page