prlq's picture
openwam_v3/code: inference code (patch vs upstream, server, README)
7073aad verified
Raw History Blame Contribute Delete
1.32 kB
#!/bin/bash
# OpenWAM-alpha fine-tuning on all of prlq/mobilemanipbench-data (3 robots, one model), 2x MI325X.
# Run inside `srun --jobid=<id> --pty bash -i`. Extra args are Hydra overrides (e.g. training.debug=true).
set -euo pipefail
unset HISTFILE
O=$HOME/openwam
export PATH=$O/.venv/bin:$PATH PYTHONUNBUFFERED=1 NPROC_PER_NODE=${NPROC_PER_NODE:-2} MASTER_PORT=${MASTER_PORT:-29521}
export HF_HUB_OFFLINE=1
OUT=${OUT:-/home/teams/posttraining/changyi_tmp/gr00t_mmb/runs/openwam80k}
echo "[env] host=$(hostname) job=${SLURM_JOB_ID:-} ROCR=[${ROCR_VISIBLE_DEVICES:-}]"
# RESUME=<run dir with accel_state_step_*>: continue that run (full states) instead of warm-starting from foundation
if [ -n "${RESUME:-}" ]; then
START=(training.finetune_ckpt_path=null training.resume_ckpt_path=$RESUME)
else
START=(training.finetune_ckpt_path=$O/assets/foundation)
fi
cd $O/OpenWAM
bash scripts/train.sh \
dataloader=${DATALOADER:-mmb} \
"${START[@]}" \
model.video_backbone.model_path=$O/assets/Wan2.2-TI2V-5B \
model.video_backbone.encoder.model_path=$O/assets/Wan2.2-TI2V-5B \
training.num_epochs=null \
training.max_steps=${MAX_STEPS:-80000} \
training.save_steps=${SAVE_STEPS:-2000} \
training.save_full_states_for_resume=true \
training.output_path=$OUT \
project.output_dir=$OUT/hydra \
"$@"