#!/usr/bin/env bash # 实验入口(原生替代 packaging/start.sh):bash snf.sh ... set -euo pipefail export PYTHONPATH="/jizhi/jizhi2/worker/trainer/snf/snf-five-models" export HF_HOME=/weights/huggingface TORCH_HOME=/weights/torch XDG_CACHE_HOME=/weights/cache export TORCHINDUCTOR_CACHE_DIR=/weights/torchinductor TRITON_CACHE_DIR=/weights/triton export MPLBACKEND=Agg TOKENIZERS_PARALLELISM=false HF_HUB_DISABLE_TELEMETRY=1 export WANDB_MODE=disabled PYTHONUNBUFFERED=1 HF_ENDPOINT="${HF_ENDPOINT:-https://huggingface.co}" # HF_TOKEN 由调用方内联传入,不落盘 cd "/jizhi/jizhi2/worker/trainer/snf/snf-five-models" exec python3 -m suite.cli "$@"