Download a model
With the hf CLI
Section titled “With the hf CLI”Public repos don’t need a token:
HF_ENDPOINT=https://siahub.app hf download <owner>/<repo>By default files land in the standard hf cache
(~/.cache/huggingface/hub/...). For a direct dump into the current
directory:
HF_ENDPOINT=https://siahub.app hf download <owner>/<repo> --local-dir .Single file
Section titled “Single file”HF_ENDPOINT=https://siahub.app \ hf download <owner>/<repo> model.safetensors --local-dir ./mWith Python
Section titled “With Python”import osos.environ["HF_ENDPOINT"] = "https://siahub.app"
from huggingface_hub import snapshot_downloadpath = snapshot_download("<owner>/<repo>")print(path)Private repos
Section titled “Private repos”Same as upload — prefix the command with HF_TOKEN=<your-key>. The key
must have download scope (or upload, which implies download).