πŸ€—
HF-Mirror AI Model Gateway
⚑ Global Anycast Edge Routing · Full HTTP Range Resumable · Zero Token Storage

Hugging Face Mirror Gateway

High-performance, stable model weights & datasets downloading for AI developers, researchers, and universities worldwide. Direct streaming reverse proxy for backend download interfaces. Transparent token pass-through with zero credentials stored.

100%
Official SHA256 Verification
HTTP Range
Full Resumable Downloads
0 Logging
Zero Token Retention
10Gbps+
Backbone Streaming Proxy

πŸš€ Quick Start: One Environment Variable to Accelerate

Compatible with official huggingface-cli, Transformers Python SDK, Git LFS, and Docker containers.

Set HF_ENDPOINT in your terminal, then invoke huggingface-cli:

Linux / macOS (Bash / Zsh):
export HF_ENDPOINT="https://hf-mirror.net"
huggingface-cli download --resume-download deepseek-ai/DeepSeek-R1-Distill-Qwen-32B --local-dir DeepSeek-R1-32B
Windows PowerShell:
$env:HF_ENDPOINT = "https://hf-mirror.net"
huggingface-cli download --resume-download deepseek-ai/DeepSeek-R1-Distill-Qwen-32B --local-dir DeepSeek-R1-32B
πŸ”’ Gated Repo? Set export HF_TOKEN="hf_xxx" to authenticate.
View Detailed Quick Start Manual →
🌐 How It Works

HF-Mirror Gateway Architecture & Data Topology

Traditional international connections frequently drop large files due to cross-border packet loss and TCP window collapse. HF-Mirror utilizes an intelligent, layered proxy pipeline:

1. Client Request

The local CLI or SDK sends resolve requests to hf-mirror.net. The gateway resolves repo metadata and routes requests to high-bandwidth edge backbones.

2. Zero-Copy Streaming

Data streams are forwarded on the fly via high-speed transit with zero disk caching, ensuring maximum download speeds up to your local physical bandwidth limit.

3. Token Pass-Through

Authorization headers (Bearer Token) are forwarded directly to official verification endpoints without intermediate logging or storage.

βš–οΈ Performance Benchmark

Direct Connection vs HF-Mirror Acceleration

Comparing download reliability and throughput when pulling modern 30GB+ large language models:

Dimension Direct Connection HF-Mirror Gateway
Peak Speed 100KB/s ~ 2MB/s (Fluctuating) 20MB/s ~ 100MB/s+ (Max Out Wire)
Stability Frequent Connection Reset (EOF) Dedicated High-Availability Backbone
Resume Support Broken pipe restarts from 0% Native HTTP Range partial chunks
Gated Repo Tokens Manual VPN / Proxy config needed Transparent pass-through, zero config