#!/usr/bin/env bash # 两卡并行 KB 今译回填(填充用):优先用 MODEL_PREF(如新臂合并权重),不存在则退回 27B 零样本 # 用法: STOP_AT= bash scripts/backfill_pair.sh GA=$1; GB=$2; MP=$3; TP=$4 if [ -f "$MP/config.json" ]; then M=$MP; T=$TP; else M=/root/autodl-tmp/llm_sft_20260918/models/Qwen3.8-27B; T=zs27; fi echo "[backfill_pair] model=$M tag=$T gpus=$GA,$GB" bash /root/autodl-tmp/llm_rag_20261023/scripts/backfill_loop.sh "$GA" "$M" "$T" & a=$! bash /root/autodl-tmp/llm_rag_20261023/scripts/backfill_loop.sh "$GB" "$M" "$T" & b=$! wait $a; wait $b; exit 0