szang18 commited on
Commit
9b87049
·
verified ·
1 Parent(s): e9dd801

Upload setup_cluster.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. setup_cluster.sh +9 -3
setup_cluster.sh CHANGED
@@ -1,5 +1,6 @@
1
- #!/bin/bash
2
  # Cluster environment setup for GR00T N1.7 training
 
3
 
4
  # --- Redirect caches to scratch ---
5
  export HOME=/var/tmp/szang
@@ -11,8 +12,13 @@ mkdir -p /var/tmp/szang/.triton/autotune
11
  mkdir -p /var/tmp/szang/.cache/torch/kernels
12
  mkdir -p $UV_CACHE_DIR
13
 
14
- # --- Load modules ---
15
- module load gcc/10.5.0 cuda/11.8.0
 
 
 
 
 
16
 
17
  # --- Library paths ---
18
  export LD_LIBRARY_PATH=/global/scratch/users/ghr/Projects/szang/envs/video_act/lib:$LD_LIBRARY_PATH
 
1
+ #!/bin/zsh
2
  # Cluster environment setup for GR00T N1.7 training
3
+ # Usage: source setup_cluster.sh
4
 
5
  # --- Redirect caches to scratch ---
6
  export HOME=/var/tmp/szang
 
12
  mkdir -p /var/tmp/szang/.cache/torch/kernels
13
  mkdir -p $UV_CACHE_DIR
14
 
15
+ # --- Load modules (compatible with zsh) ---
16
+ if typeset -f module > /dev/null 2>&1; then
17
+ module load gcc/10.5.0 cuda/11.8.0
18
+ elif [[ -f /etc/profile.d/modules.sh ]]; then
19
+ source /etc/profile.d/modules.sh
20
+ module load gcc/10.5.0 cuda/11.8.0
21
+ fi
22
 
23
  # --- Library paths ---
24
  export LD_LIBRARY_PATH=/global/scratch/users/ghr/Projects/szang/envs/video_act/lib:$LD_LIBRARY_PATH