Download paper_export/evidence/code/snf.sh from CharlesZhang-USTC/snf_experiments: direct link, hf CLI and curl.
- Browser
- Download file 676 Bytes
-
https://huggingface.co/CharlesZhang-USTC/snf_experiments/resolve/main/paper_export/evidence/code/snf.sh
- Command line
-
hf download hf://CharlesZhang-USTC/snf_experiments/paper_export/evidence/code/snf.sh
-
curl -L -o snf.sh https://huggingface.co/CharlesZhang-USTC/snf_experiments/resolve/main/paper_export/evidence/code/snf.sh
676 Bytes
| # 实验入口(原生替代 packaging/start.sh):bash snf.sh <command> ... | |
| 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 "$@" | |