#!/bin/bash # ============================================================= # 如果服务器在国内,无法直接访问 HuggingFace,运行此脚本设置镜像 # Usage: source scripts/set_mirror.sh # ============================================================= # HuggingFace 镜像 (hf-mirror.com 是目前最稳定的国内镜像) export HF_ENDPOINT=https://hf-mirror.com # pip 镜像 (清华源) pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple echo "Mirror configured:" echo " HuggingFace: $HF_ENDPOINT" echo " pip: mirrors.tuna.tsinghua.edu.cn" echo "" echo "Now you can run:" echo " python scripts/download_data.py" echo " python scripts/step1_baseline.py --model qwen3_vl_2b --max_samples 5"