Update HF_HUB_CACHE export to set HF_HOME for huggingface cache directory

This commit is contained in:
Guofang committed 2026-11-10 10:20:04 +08:00
1 parent 13ceac889e
commit 9c003e48f8
1 file changed
+1 -1
+1 -1
View File
@@ -2,6 +2,6 @@ alias claude='env -u TERM_PROGRAM https_proxy=http://localhost:3128 claude'
alias codex="all_proxy=http://localhost:3128 codex --dangerously-bypass-approvals-and-sandbox" alias codex="all_proxy=http://localhost:3128 codex --dangerously-bypass-approvals-and-sandbox"
alias hf="env -u HF_HUB_OFFLINE all_proxy=http://localhost:3128 hf" alias hf="env -u HF_HUB_OFFLINE all_proxy=http://localhost:3128 hf"
if [ -d /data/guofang ]; then if [ -d /data/guofang ]; then
export HF_HUB_CACHE=/data/guofang/.cache/huggingface/hub export HF_HOME=/data/guofang/.cache/huggingface
fi fi
export HF_HUB_OFFLINE=1 export HF_HUB_OFFLINE=1