#!/bin/bash #SBATCH -t 7-00:0:0 #SBATCH -J medsam2-tr-tiny #SBATCH --mem=450G #SBATCH -c 60 #SBATCH -N 3 #SBATCH --ntasks-per-node=1 #SBATCH --gres=gpu:4 #SBATCH -o out_mnodes_tiny.out export PATH=/usr/local/cuda/bin:$PATH timestamp=$(date +"%Y%m%d-%H%M") # Set the master node address (first node in the allocation) export MASTER_ADDR=$(scontrol show hostnames $SLURM_JOB_NODELIST | head -n 1) # export MASTER_PORT=29500 export MASTER_PORT=$(python - <