-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Emanuele Ballarin <[email protected]>
- Loading branch information
1 parent
ae263b4
commit 2d7acab
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/bash -li | ||
#SBATCH --job-name=eval_carso_sc_a_agg | ||
#SBATCH --mail-type=FAIL,END | ||
#SBATCH --partition=DGX | ||
#SBATCH --time=0-12:00:00 | ||
#SBATCH --nodes=1 # Nodes | ||
#SBATCH --ntasks-per-node=7 # GPUs per node | ||
#SBATCH --cpus-per-task=4 # Cores per node / GPUs per node | ||
#SBATCH --mem=96G # 4 * Cores per node | ||
#SBATCH --gres=gpu:7 # GPUs per node | ||
################################################################################ | ||
# | ||
sleep 3 | ||
# | ||
#source $HOME/.bashrc | ||
# | ||
export CODEHOME="$HOME/Downloads/" | ||
export MYPYTHON="$HOME/micromamba/envs/nightorch/bin/python" | ||
# | ||
export MASTER_PORT=$(expr 10000 + $(echo -n $SLURM_JOBID | tail -c 4)) | ||
export WORLD_SIZE=$(($SLURM_NNODES * $SLURM_NTASKS_PER_NODE)) | ||
export MASTER_ADDR=$(scontrol show hostnames "$SLURM_JOB_NODELIST" | head -n 1) | ||
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK | ||
# | ||
echo " " | ||
echo "hostname="$(hostname) | ||
echo "WORLD_SIZE="$WORLD_SIZE | ||
echo "OMP_NUM_THREADS="$OMP_NUM_THREADS | ||
echo "MASTER_ADDR="$MASTER_ADDR | ||
echo "MASTER_PORT="$MASTER_PORT | ||
echo " " | ||
# | ||
################################################################################ | ||
cd "$CODEHOME/CARSO/src/" | ||
# | ||
echo "-----------------------------------------------------------------------------------------------------------------" | ||
echo " " | ||
echo "START TIME "$(date +'%Y_%m_%d-%H_%M_%S') | ||
echo " " | ||
echo "-----------------------------------------------------------------------------------------------------------------" | ||
srun "$MYPYTHON" -O "$CODEHOME/CARSO/src/eval_a.py" --dist --e2e --batchsize 70 --agg "logit" | ||
echo "-----------------------------------------------------------------------------------------------------------------" | ||
echo " " | ||
echo "STOP TIME "$(date +'%Y_%m_%d-%H_%M_%S') | ||
echo " " | ||
echo "-----------------------------------------------------------------------------------------------------------------" | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters