fix(scripts): 加 HF_HUB_OFFLINE 跳过在线检查

embedding 模型已有本地缓存,网络不通时避免连接 huggingface.co 失败。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-09 13:56:25 -04:00
parent d6ae0d85cd
commit 38a855b33e
+4
View File
@@ -13,6 +13,10 @@ cd "$(dirname "$0")/.."
CUDA_VISIBLE_DEVICES="${CUDA_VISIBLE_DEVICES:-0}"
export CUDA_VISIBLE_DEVICES
# Embedding 模型已缓存本地,跳过 HuggingFace Hub 在线检查
export HF_HUB_OFFLINE=1
export TRANSFORMERS_OFFLINE=1
# 加载环境变量(API key 等)
set -a
source .env