Hugging Face Acceleration
Hugging Face uses the same URL-prefix proxy as GitHub — prepend your HubProxy host to the full original URL.
Supported URLs
Section titled “Supported URLs”| Type | Example |
|---|---|
| Model / dataset files | huggingface.co/{user}/{repo}/resolve/... |
| Spaces | huggingface.co/spaces/{user}/{repo}/... |
| LFS CDN | cdn-lfs.hf.co/{user}/{repo}/... |
Regex patterns are in githubExps in src/handlers/github.go.
Examples
Section titled “Examples”curl -L -O "https://example.com/https://huggingface.co/bert-base-uncased/resolve/main/config.json"
curl -L -O "https://example.com/huggingface.co/bert-base-uncased/resolve/main/pytorch_model.bin"
curl -L -O "https://example.com/https://cdn-lfs.hf.co/user/model-repo/abc123..."Limits
Section titled “Limits”Same as GitHub Acceleration:
- No HTML browsing
[server].fileSizecap- Same as GitHub: supports
Rangeresume and multi-connection downloads — see Transfer Capabilities [access]allow/deny lists apply