Download src/InternVLA-M1/scripts/train_internvla.sh from Tinghong-Ye22/code-Psi0-yth-v21: direct link, hf CLI and curl.
- Browser
- Download file 957 Bytes
-
https://huggingface.co/Tinghong-Ye22/code-Psi0-yth-v21/resolve/main/src/InternVLA-M1/scripts/train_internvla.sh
- Command line
-
hf download hf://Tinghong-Ye22/code-Psi0-yth-v21/src/InternVLA-M1/scripts/train_internvla.sh
-
curl -L -o train_internvla.sh https://huggingface.co/Tinghong-Ye22/code-Psi0-yth-v21/resolve/main/src/InternVLA-M1/scripts/train_internvla.sh
957 Bytes
| export CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-0} | |
| export TORCH_HOME=$TORCH_HOME # e.g. /hfm/user/torch_cache | |
| export HF_HOME=$HF_HOME # e.g. /hfm/user/torch_cache/huggingface | |
| export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True | |
| export OMP_NUM_THREADS=1 | |
| # export DS_BUILD_OPS=0 | |
| # export DS_SKIP_CUDA_CHECK=1 | |
| source .venv/bin/activate | |
| nprocs=$(echo $CUDA_VISIBLE_DEVICES | tr ',' '\n' | wc -l) | |
| ulimit -n 65535 | |
| echo "Training with $nprocs GPUs" | |
| accelerate launch \ | |
| --config_file InternVLA/config/deepseeds/deepspeed_zero2.yaml \ | |
| --main_process_port 0 \ | |
| --num_processes 1 InternVLA/training/train_internvla.py \ | |
| --config_yaml InternVLA/config/training/internvla_cotrain_humanoid.yaml \ | |
| --wandb_entity ${WANDB_ENTITY} \ | |
| --wandb_project ${WANDB_PROJECT} \ | |
| --datasets.vla_data.data_root_dir /hfm/data/real_teleop_g1/lerobot/Push_cart_grasp_and_place_grapes_on_plate \ | |
| --run_id Push_cart_grasp_and_place_grapes_on_plate | |