File size: 697 Bytes
643267a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/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" \
"$@"
|