From 38a855b33e5ba024840dc1a07bfc3be91deec9ad Mon Sep 17 00:00:00 2001 From: iomgaa Date: Thu, 9 Jul 2026 13:56:25 -0400 Subject: [PATCH] =?UTF-8?q?fix(scripts):=20=E5=8A=A0=20HF=5FHUB=5FOFFLINE?= =?UTF-8?q?=20=E8=B7=B3=E8=BF=87=E5=9C=A8=E7=BA=BF=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit embedding 模型已有本地缓存,网络不通时避免连接 huggingface.co 失败。 Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/infer_video_mme.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/infer_video_mme.sh b/scripts/infer_video_mme.sh index 025d5e5..82337de 100755 --- a/scripts/infer_video_mme.sh +++ b/scripts/infer_video_mme.sh @@ -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