Discover and explore top open-source AI tools and projects—updated daily.
vtuber-planSelf-hosted Huggingface mirror and cache service
Top 93.3% on SourcePulse
Olah is a self-hosted, lightweight mirror service for Hugging Face resources, designed to address slow download speeds and bandwidth limitations. It targets engineers and researchers who frequently interact with Hugging Face models, datasets, and spaces, offering significant benefits in download acceleration and resource management through intelligent caching.
How It Works
Olah implements a unique file-block level mirroring and caching strategy. Instead of mirroring the entire Hugging Face website, it caches resources incrementally as users download them. This "on-demand" caching mechanism dramatically speeds up subsequent downloads of the same files and conserves network bandwidth. Administrators can further refine this by configuring specific repositories for caching and access through a TOML configuration file, offering granular control over the mirroring process.
Quick Start & Requirements
Installation is straightforward via pip (pip install olah) or from source. To run, execute olah-cli and set the HF_ENDPOINT environment variable to your mirror's address (e.g., http://localhost:8090). This redirects all Hugging Face library download operations through your local mirror. Advanced configurations, including host, port, cache path, cache size limits, and cache cleaning strategies (LRU, FIFO, LARGE_FIRST), can be managed via a configs.toml file. Official documentation and source code are available at olah-docs and olah-source.
Highlighted Details
Maintenance & Community
The provided README does not detail specific contributors, sponsorships, or community channels such as Discord or Slack. Maintenance status and future development plans are outlined in the "Future Work" section of the README, including an administrator/user system and OOS backend support.
Licensing & Compatibility
Olah is released under the permissive MIT License. This license generally allows for broad compatibility, including commercial use and integration within closed-source projects without significant restrictions.
Limitations & Caveats
Cached data is not directly migratable between different versions of Olah, requiring users to delete the cache folder before upgrading. High concurrent downloads may lead to timeout errors for new connections, which can be mitigated by increasing the uvicorn WEB_CONCURRENCY setting.
1 week ago
1 week
scaleapi
zilliztech