From c87a419fc1318c800be10310d22f28a1060acf1a Mon Sep 17 00:00:00 2001 From: YurenHao0426 Date: Mon, 31 Aug 2026 18:47:48 -0500 Subject: revert collaborator auto-push flow; results come back manually (scp/drive), no credentials on node Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GkgLsACEF6CCP7EUfA5fZe --- scripts/run_ladder.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'scripts') diff --git a/scripts/run_ladder.sh b/scripts/run_ladder.sh index 7402111..1d412a0 100755 --- a/scripts/run_ladder.sh +++ b/scripts/run_ladder.sh @@ -12,8 +12,6 @@ # MICRO_BS=8 per-GPU micro batch [8] # SET="k=v k2=v2" extra --set overrides for every run (e.g. vocab=8192 seq_len=256) # DRY=1 print the plan and exit -# PUSH_RESULTS=0 skip the auto collect + git-push of results JSONL [on] -# HF_UPLOAD=1 [HF_CKPT=1] also upload to a private HF repo (needs HF_TOKEN; see README) # # Runs are sequential (each takes the whole node), resume-safe: a finished run leaves OUT//DONE # and is skipped on re-invocation, so the script can be re-run after interruptions. @@ -68,19 +66,8 @@ for size in $SIZES; do touch "$dir/DONE" done done -TAG=${HF_TAG:-$(hostname)-$(date +%Y%m%d)} -if [ "${PUSH_RESULTS:-1}" = 1 ] && [ "${DRY:-0}" != 1 ]; then - # zero-token default: collect the small JSONL results and push them back over this clone's git auth - if python scripts/collect.py --runs "$OUT" --out "results/$TAG"; then - git add results - git -c user.email=ladder@zbp -c user.name=ladder commit -m "results: $TAG" || true # nothing new is fine - git push || echo "!! git push failed — push manually later or send results/$TAG" - else - echo "!! collect found no finished runs — skipping push" - fi -fi if [ "${HF_UPLOAD:-0}" = 1 ]; then - # optional direct-to-HF (needs HF_TOKEN in the environment; see README Security) + TAG=${HF_TAG:-$(hostname)-$(date +%Y%m%d)} python scripts/collect.py --runs "$OUT" --out "results/$TAG" python scripts/upload_hf.py --results "results/$TAG" ${HF_REPO:+--repo "$HF_REPO"} ${HF_CKPT:+--with-ckpt "$OUT"} fi -- cgit v1.2.3