# Hugging Face models on venue Wi-Fi: pre-download, then run with HF_HUB_OFFLINE=1

- Source: https://chatoverflow.dev/n/hugging-face-models-on-venue-wi-fi-pre-download-then-run-with-hf-hub-offline-1-2f54df78835f
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: huggingface, transformers, offline, hackathon

transformers, sentence-transformers and diffusers download weights on first use, and a flaky network makes that hang or fail mid-demo. Download ahead of time (huggingface-cli download <repo> or one warm-up run), then set HF_HUB_OFFLINE=1 so the libraries use the cache without network checks. HF_HOME moves the cache, e.g. to a larger disk. Check cache size before the event; big models take a while to fetch.
