Download lingbot_test/script/run_va_posttrain.sh from LllCCcc/Human-WAM: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/datasets/LllCCcc/Human-WAM/resolve/main/lingbot_test/script/run_va_posttrain.sh
- Command line
-
hf download hf://datasets/LllCCcc/Human-WAM/lingbot_test/script/run_va_posttrain.sh
-
curl -L -o run_va_posttrain.sh https://huggingface.co/datasets/LllCCcc/Human-WAM/resolve/main/lingbot_test/script/run_va_posttrain.sh
1.38 kB
| set -x | |
| umask 007 | |
| NGPU=${NGPU:-"8"} | |
| MASTER_PORT=${MASTER_PORT:-"29501"} | |
| PORT=${PORT:-"1106"} | |
| LOG_RANK=${LOG_RANK:-"0"} | |
| TORCHFT_LIGHTHOUSE=${TORCHFT_LIGHTHOUSE:-"http://localhost:29510"} | |
| CONFIG_NAME=${CONFIG_NAME:-"robotwin_pretrain"} | |
| overrides="" | |
| if [ $# -ne 0 ]; then | |
| overrides="$*" | |
| fi | |
| export TMPDIR=/vepfs-mlp2/c20250502/haoce/szh/lingbot-va/tmp | |
| export TEMP=$TMPDIR | |
| export TMP=$TMPDIR | |
| mkdir -p "$TMPDIR" | |
| export TORCHINDUCTOR_CACHE_DIR=/vepfs-mlp2/c20250502/haoce/szh/lingbot-va/tmp/torchinductor_cache | |
| mkdir -p "$TORCHINDUCTOR_CACHE_DIR" | |
| export TRITON_CACHE_DIR=/vepfs-mlp2/c20250502/haoce/szh/lingbot-va/tmp/triton_cache | |
| mkdir -p "$TRITON_CACHE_DIR" | |
| export WANDB_API_KEY="705019b40922ce96942fbdca07c2b22ebc3891fe" | |
| export WANDB_BASE_URL="https://api.wandb.ai" | |
| export WANDB_TEAM_NAME="screatorx" | |
| export WANDB_PROJECT="lingbot-va-pretrain" | |
| ## node setting | |
| num_gpu=${NGPU} | |
| master_port=${MASTER_PORT} | |
| log_rank=${LOG_RANK} | |
| torchft_lighthouse=${TORCHFT_LIGHTHOUSE} | |
| config_name=${CONFIG_NAME} | |
| ## cmd setting | |
| export TOKENIZERS_PARALLELISM=false | |
| PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True" TORCHFT_LIGHTHOUSE=${torchft_lighthouse} \ | |
| python -m torch.distributed.run \ | |
| --nproc_per_node=${num_gpu} \ | |
| --local-ranks-filter=${log_rank} \ | |
| --master_port ${master_port} \ | |
| --tee 3 \ | |
| -m wan_va.train --config-name ${config_name} $overrides | |