szang18 commited on
Commit
e9dd801
·
verified ·
1 Parent(s): 341a160

Upload setup_cluster.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. setup_cluster.sh +6 -1
setup_cluster.sh CHANGED
@@ -29,6 +29,9 @@ export NCCL_TIMEOUT=1200
29
  export OMP_NUM_THREADS=4
30
  export TOKENIZERS_PARALLELISM=false
31
 
 
 
 
32
  # --- Activate venv ---
33
  cd /global/scratch/users/ghr/Projects/szang/GR00TN1.7
34
  source .venv/bin/activate
@@ -43,6 +46,8 @@ print('CUDA version:', torch.version.cuda)
43
  print('cuDNN version:', torch.backends.cudnn.version())
44
  print('GPU count:', torch.cuda.device_count())
45
  for i in range(torch.cuda.device_count()):
46
- print(f' GPU {i}: {torch.cuda.get_device_name(i)} ({torch.cuda.get_device_properties(i).total_mem / 1024**3:.1f} GB)')
 
47
  "
 
48
  python -c "import flash_attn; print('Flash Attention version:', flash_attn.__version__)"
 
29
  export OMP_NUM_THREADS=4
30
  export TOKENIZERS_PARALLELISM=false
31
 
32
+ # --- tmux ---
33
+ tmux set mouse on 2>/dev/null || true
34
+
35
  # --- Activate venv ---
36
  cd /global/scratch/users/ghr/Projects/szang/GR00TN1.7
37
  source .venv/bin/activate
 
46
  print('cuDNN version:', torch.backends.cudnn.version())
47
  print('GPU count:', torch.cuda.device_count())
48
  for i in range(torch.cuda.device_count()):
49
+ print(f' GPU {i}: {torch.cuda.get_device_name(i)} ({torch.cuda.get_device_properties(i).total_memory / 1024**3:.1f} GB)')
50
+ print('Current device:', torch.cuda.current_device() if torch.cuda.is_available() else 'N/A')
51
  "
52
+ python -c "import transformers; print('Transformers version:', transformers.__version__)"
53
  python -c "import flash_attn; print('Flash Attention version:', flash_attn.__version__)"