Download openwam_v3/code/train_mmb.sh from prlq/mobilemanipbench-data: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/datasets/prlq/mobilemanipbench-data/resolve/main/openwam_v3/code/train_mmb.sh
- Command line
-
hf download hf://datasets/prlq/mobilemanipbench-data/openwam_v3/code/train_mmb.sh
-
curl -L -o train_mmb.sh https://huggingface.co/datasets/prlq/mobilemanipbench-data/resolve/main/openwam_v3/code/train_mmb.sh
1.32 kB
| # 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 \ | |
| "$@" | |