Commit
•
4c6ea13
1
Parent(s):
65062c0
Create inference_c4.sh
Browse files- inference_c4.sh +26 -0
inference_c4.sh
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
#SBATCH --job-name=inferencec4
|
3 |
+
#SBATCH --partition=gpu_p5
|
4 |
+
#SBATCH --constraint=a100
|
5 |
+
#SBATCH --nodes=1
|
6 |
+
#SBATCH --ntasks-per-node=1 # crucial - only 1 task per dist per node!
|
7 |
+
#SBATCH --cpus-per-task=8 # number of cores per tasks
|
8 |
+
#SBATCH --hint=nomultithread # we get physical cores not logical
|
9 |
+
#SBATCH --gres=gpu:1 # number of gpus
|
10 |
+
#SBATCH --time 12:00:00 # maximum execution time (HH:MM:SS)
|
11 |
+
#SBATCH --output=%x-%j.out # output file name
|
12 |
+
#SBATCH --account=ajs@a100
|
13 |
+
|
14 |
+
set -x -e
|
15 |
+
|
16 |
+
source $six_ALL_CCFRWORK/start-tr13f-6B3-ml-t0
|
17 |
+
echo "START TIME: $(date)"
|
18 |
+
|
19 |
+
NUM_SAMPLES=1024
|
20 |
+
NUM_SAMPLES_PER_JOB=1
|
21 |
+
|
22 |
+
TASK_START=$((($SLURM_ARRAY_TASK_ID) * $NUM_SAMPLES_PER_JOB))
|
23 |
+
TASK_END=$(($TASK_START + $NUM_SAMPLES_PER_JOB))
|
24 |
+
|
25 |
+
echo "Starting task $SLURM_ARRAY_TASK_ID with start $TASK_START and end $TASK_END"
|
26 |
+
python inference_c4.py --start $TASK_START --end $TASK_END
|