From e6674bdba43d3c914957d39dee71207fe9b2af05 Mon Sep 17 00:00:00 2001 From: Liu Jiang Date: Thu, 5 Mar 2026 12:58:27 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E8=AE=AD=E7=BB=83?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runs/speedrundiy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/runs/speedrundiy.sh b/runs/speedrundiy.sh index 2fc1181..3d290fa 100755 --- a/runs/speedrundiy.sh +++ b/runs/speedrundiy.sh @@ -65,7 +65,13 @@ torchrun --standalone --nproc_per_node=$NPROC_PER_NODE -m scripts.base_eval -- - # ----------------------------------------------------------------------------- # 指令微调数据集下载,并进行指令微调和评测 -curl -L -o $NANOCHAT_BASE_DIR/identity_conversations.jsonl https://karpathy-public.s3.us-west-2.amazonaws.com/identity_conversations.jsonl +IDENTITY_FILE="$NANOCHAT_BASE_DIR/identity_conversations.jsonl" +if [ ! -f "$IDENTITY_FILE" ]; then + echo "文件不存在,正在从 S3 下载..." + curl -L -o "$IDENTITY_FILE" https://karpathy-public.s3.us-west-2.amazonaws.com/identity_conversations.jsonl +else + echo "文件已存在,跳过下载: $IDENTITY_FILE" +fi torchrun --standalone --nproc_per_node=$NPROC_PER_NODE -m scripts.chat_sft -- --device-batch-size=1 --run=$WANDB_RUN torchrun --standalone --nproc_per_node=$NPROC_PER_NODE -m scripts.chat_eval -- -i sft