Joshua69 commited on
Commit
d4e2525
·
verified ·
1 Parent(s): b9c9264

add h100 hlen6 artifact run_formal4_hlen6_stage12_20260728.sh

Browse files
scripts/h100/formal4_window_ablation_hlen6_20260728/run_formal4_hlen6_stage12_20260728.sh ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ ROOT=/dev/shm/muse/src/ViTacDreamer_policy
4
+ ENV=/dev/shm/muse/envs/vitacdreamer_prior512
5
+ cd "$ROOT"
6
+ export PATH="$ENV/bin:$PATH"
7
+ export PYTHONPATH="$ROOT:${PYTHONPATH:-}"
8
+ export TMPDIR=/dev/shm/muse/tmp
9
+ export CUDA_VISIBLE_DEVICES=0,1,2,3
10
+ export HF_HUB_OFFLINE=1
11
+ export TRANSFORMERS_OFFLINE=1
12
+ export VITACDREAMER_VIT_CHECKPOINT="$ROOT/.hf_cache/google_vit_base_patch16_224"
13
+ mkdir -p "$TMPDIR" logs/formal4_hlen6_stage12_policy_20260728
14
+ OUT_ROOT=/dev/shm/muse/checkpoints/formal4_window_ablation_20260728
15
+ TRAIN_DATA="$ROOT/dataset_encoder500_multitask4_formal_hlen6_h100_20260728/train"
16
+ VAL_DATA="$ROOT/dataset_encoder500_multitask4_formal_hlen6_h100_20260728/val"
17
+ STAGE1_OUT="$OUT_ROOT/stage1_prior512_encoder500_multitask4_hlen6_stride5_e30_b160"
18
+ STAGE2_OUT="$OUT_ROOT/stage2_prior512_encoder500_multitask4_hlen6_stride5_e20_b160_from_stage1e30b160"
19
+ mkdir -p "$STAGE1_OUT" "$STAGE2_OUT"
20
+ echo "[$(date '+%F %T')] Stage1 hlen=6 on GPUs $CUDA_VISIBLE_DEVICES" | tee -a logs/formal4_hlen6_stage12_policy_20260728/pipeline.log
21
+ "$ENV/bin/torchrun" --standalone --nproc_per_node=4 -m vitacdreamer.train_v2 \
22
+ --train_data "$TRAIN_DATA" --val_data "$VAL_DATA" \
23
+ --output_dir "$STAGE1_OUT" \
24
+ --stage 1 --epochs_stage1 30 --lr_stage1 1e-4 --batch_size 160 \
25
+ --num_workers 8 --prefetch_factor 4 --no_tf32 --amp_dtype none \
26
+ --history_len 6 --sample_stride 5 --num_tail_frames 2 \
27
+ --latent_dim 512 --num_memory_layers 4 --num_latent_layers 4 --max_delta_t 32 \
28
+ --tactile_temporal_mode raw --no_action_conditioning \
29
+ --contrastive_temp 0.07 --stage1_cross_weight 1.0 --stage1_temporal_weight 1.0 --stage1_consistency_weight 1.0 \
30
+ --ddp_contrastive_all_gather --trainable_vit_layers 3 \
31
+ --plot_curve_render_every 30 --wandb_mode offline --wandb_project vitacdreamer \
32
+ --wandb_group formal4_hlen6_h100_20260728 --wandb_name stage1_formal4_hlen6_b160_g4_e30 \
33
+ 2>&1 | tee logs/formal4_hlen6_stage12_policy_20260728/stage1.log
34
+ if [ ! -f "$STAGE1_OUT/stage1_v2_best.pth" ]; then
35
+ echo "[$(date '+%F %T')] ERROR: missing stage1 best checkpoint" | tee -a logs/formal4_hlen6_stage12_policy_20260728/pipeline.log
36
+ exit 2
37
+ fi
38
+ echo "[$(date '+%F %T')] Stage2 hlen=6 on GPUs $CUDA_VISIBLE_DEVICES" | tee -a logs/formal4_hlen6_stage12_policy_20260728/pipeline.log
39
+ "$ENV/bin/torchrun" --standalone --nproc_per_node=4 -m vitacdreamer.train_v2 \
40
+ --train_data "$TRAIN_DATA" --val_data "$VAL_DATA" \
41
+ --output_dir "$STAGE2_OUT" \
42
+ --stage 2 --resume "$STAGE1_OUT/stage1_v2_best.pth" \
43
+ --epochs_stage2 20 --lr_stage2 1e-4 --batch_size 160 \
44
+ --num_workers 8 --prefetch_factor 4 --no_tf32 --amp_dtype none \
45
+ --history_len 6 --sample_stride 5 --num_tail_frames 2 \
46
+ --latent_dim 512 --num_memory_layers 4 --num_latent_layers 4 --max_delta_t 32 \
47
+ --tactile_temporal_mode raw --tactile_flow_target_mode depth_delta \
48
+ --depth_delta_clip 0.5 --tactile_flow_clip 0.25 --marker_flow_clip 1.0 \
49
+ --perceptual_weight 0.0 --val_random_tail_mask --no_action_conditioning \
50
+ --stage2_reuse_frozen_encoder_tokens --stage2_frozen_encoders_eval \
51
+ --plot_curve_render_every 30 --wandb_mode offline --wandb_project vitacdreamer \
52
+ --wandb_group formal4_hlen6_h100_20260728 --wandb_name stage2_formal4_hlen6_b160_g4_e20 \
53
+ 2>&1 | tee logs/formal4_hlen6_stage12_policy_20260728/stage2.log
54
+ echo "[$(date '+%F %T')] Stage1+Stage2 finished. Policy needs ACT data check/feature precompute next." | tee -a logs/formal4_hlen6_stage12_policy_20260728/pipeline.log