Point your Hugging Face client at this mirror and keep your model and dataset downloads inside your own infrastructure. The endpoint below is the only thing you need to wire up first.
{{scheme}}://{{netloc}}
Set HF_ENDPOINT, keep your existing download workflow, and let Olah proxy and cache resources as they are requested.
Use the current Olah server as your Hugging Face endpoint before you download anything.
Python, CLI, models, or datasets all keep the same workflow. Only the endpoint changes.
Olah stores fetched metadata and file blocks under your configured repos-path.
export HF_ENDPOINT={{scheme}}://{{netloc}}
$env:HF_ENDPOINT = "{{scheme}}://{{netloc}}"
from huggingface_hub import snapshot_download
snapshot_download(repo_id='Qwen/Qwen-7B', repo_type='model',
local_dir='./model_dir', resume_download=True,
max_workers=8)
pip install -U huggingface_hub
hf download openai-community/gpt2 --local-dir gpt2 --no-force-download
hf download --repo-type dataset Salesforce/wikitext --local-dir wikitext --no-force-download
A few operational details matter when you turn a local Olah instance into a mirror that other tools can depend on.
{{scheme}}://{{netloc}}
Downloaded metadata and file blocks are stored under your configured repos-path.
Update mirror-netloc and mirror-lfs-netloc so clients receive correct mirror URLs.
You do not need to change repo IDs or download commands. In most cases, setting HF_ENDPOINT is enough.