sayakpaul HF staff commited on
Commit
6ca0c6c
1 Parent(s): 4fcfeed

Upload run_allocated.slurm with huggingface_hub

Browse files
Files changed (1) hide show
  1. run_allocated.slurm +49 -0
run_allocated.slurm ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ #SBATCH --job-name=benchmarking
3
+ #SBATCH --nodes=1
4
+ #SBATCH --qos=normal
5
+ # set 2h for job wall time limit
6
+ #SBATCH --time=02:00:00
7
+ # activate the requeue option
8
+ #SBATCH --requeue
9
+ #SBATCH --ntasks-per-node=1
10
+ #SBATCH --cpus-per-task=12
11
+ #SBATCH --gres=gpu:1
12
+ #SBATCH --mem-per-cpu=10G
13
+ #SBATCH --partition=production-cluster
14
+ #SBATCH -o /fsx/sayak/logs/benchmarking-job/sdxl-fast-%x-%j.out
15
+
16
+ set -x -e
17
+
18
+ source /admin/home/sayak/.bashrc
19
+ source /admin/home/sayak/miniconda3/etc/profile.d/conda.sh
20
+ conda activate /fsx/sayak
21
+
22
+ echo "START TIME: $(date)"
23
+
24
+ REPO=/fsx/sayak/sdxl-fast
25
+ OUTPUT_DIR=/fsx/sayak/benchmarking
26
+ LOG_PATH=$OUTPUT_DIR/main_log.txt
27
+
28
+ mkdir -p $OUTPUT_DIR
29
+ touch $LOG_PATH
30
+ pushd $REPO
31
+
32
+ PROGRAM="run_specific.sh"
33
+ export LAUNCHER="CUDA_VISIBLE_DEVICES=0 bash"
34
+ export CMD="$LAUNCHER $PROGRAM"
35
+ echo $CMD
36
+
37
+ # AWS specific
38
+ export NCCL_PROTO=simple
39
+ export RDMAV_FORK_SAFE=1
40
+ export FI_EFA_FORK_SAFE=1
41
+ export FI_EFA_USE_DEVICE_RDMA=1
42
+ export FI_PROVIDER=efa
43
+ export FI_LOG_LEVEL=1
44
+ export NCCL_IB_DISABLE=1
45
+ export NCCL_SOCKET_IFNAME=ens
46
+
47
+ clear; srun --wait=60 --jobid 937441 bash -c "$CMD" 2>&1 | tee $LOG_PATH
48
+
49
+ echo "END TIME: $(date)"