PAT-code / scripts /train_pat32_200m.sh
ICLRPAT27's picture
Publish reviewed PAT training and inference supplement
643267a verified
Raw History Blame Contribute Delete
697 Bytes
#!/usr/bin/env bash
# Start a 200M-token training check from the released PAT-32 weights.
# This starts a new optimizer and schedule; it does not resume the paper run.
set -euo pipefail
: "${DATA:?Set DATA to the prepared training directory}"
: "${VALIDATION:?Set VALIDATION to the prepared validation directory}"
: "${CHECKPOINT:?Set CHECKPOINT to the verified PAT-32 model bundle}"
PAT_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
exec torchrun --standalone --nproc_per_node=4 -m pat.train \
--config "$PAT_ROOT/configs/pat32_200m.json" \
--data "$DATA" \
--validation "$VALIDATION" \
--output "${OUTPUT:-runs/pat32-200m}" \
--init-checkpoint "$CHECKPOINT" \
"$@"