[tab] /hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/logs/logs_mihir/lam/train_lam_minecraft_8node_darkness_filter_37M_3463210.log (log)
slurmstepd: error: couldn't chdir to `/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jafar_jobs': No such file or directory: going to /tmp instead
slurmstepd: error: couldn't chdir to `/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jafar_jobs': No such file or directory: going to /tmp instead
#!/usr/bin/env bash

#SBATCH --nodes=8
#SBATCH --ntasks-per-node=4
#SBATCH --time=48:00:00
#SBATCH --partition=accelerated
#SBATCH --cpus-per-task=5
#SBATCH --gres=gpu:4
#SBATCH --output=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/logs/logs_mihir/lam/%x_%j.log
#SBATCH --error=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/logs/logs_mihir/lam/%x_%j.log
#SBATCH --job-name=train_lam_minecraft_8node_darkness_filter_37M
#SBATCH --requeue
#SBATCH --signal=b:usr1@300 # 5 min before timeout

# --- signal trap to requeue job before timeout ---
requeue_job() {
    echo "[$(date)] caught sigusr1 (timeout warning), requeueing slurm job $SLURM_JOB_ID..."
    scontrol requeue $SLURM_JOB_ID
    exit 0
}

trap requeue_job sigusr1

# set checkpoint flag based on restart count
restart_count=$(scontrol show job $SLURM_JOB_ID | grep -o 'Restarts=[0-9]*' | cut -d'=' -f2)

if [ $restart_count -eq 0 ]; then
    restore_ckpt_flag="--no-restore-ckpt"
else
    restore_ckpt_flag="--restore-ckpt"
fi

# Log the sbatch script
cat $0

module unload mpi/openmpi/5.0
module unload devel/cuda/12.4
source .venv/bin/activate

array_records_dir=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/data_new/open_ai_minecraft_arrayrecords_chunked

job_name=$SLURM_JOB_NAME
# slurm_job_id=$SLURM_JOB_ID
slurm_job_id=3454953

CHECKPOINT_DIR=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/checkpoints/mihir/lam/$job_name/$slurm_job_id
mkdir -p $CHECKPOINT_DIR

env | grep SLURM

srun python train_lam.py \
    --save_ckpt \
    --restore_ckpt \
    --wandb_id $slurm_job_id \
    --ckpt_dir $CHECKPOINT_DIR \
    --batch_size=160 \
    --init_lr=0 \
    --max_lr=1e-4 \
    --darkness_threshold=50 \
    --log_image_interval=1000 \
    --log \
    --log_checkpoint_interval=1000 \
    --name=lam-minecraft-8-node-darkness-filter-37M-$slurm_job_id \
    --tags lam minecraft 8-node darkness-filter 37M \
    --entity instant-uv \
    --project jafar \
    --num_latents=100 \
    --data_dir $array_records_dir &

child_pid=$!

wait $child_pid
/var/spool/slurmd/job3463210/slurm_script: line 38: .venv/bin/activate: No such file or directory
SLURM_JOB_USER=tum_cte0515
SLURM_TASKS_PER_NODE=4(x8)
SLURM_JOB_UID=999226
SLURM_TASK_PID=2836931
SLURM_JOB_GPUS=0,1,2,3
SLURM_LOCALID=0
SLURM_SUBMIT_DIR=/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jafar_jobs
SLURMD_NODENAME=hkn0414
SLURM_JOB_START_TIME=1756922773
SLURM_CLUSTER_NAME=hk
SLURM_JOB_END_TIME=1757095573
SLURM_CPUS_ON_NODE=24
SLURM_JOB_CPUS_PER_NODE=24(x8)
SLURM_GPUS_ON_NODE=4
SLURM_GTIDS=0
SLURM_JOB_PARTITION=accelerated
SLURM_TRES_PER_TASK=cpu=5
SLURM_OOM_KILL_STEP=0
SLURM_JOB_NUM_NODES=8
SLURM_JOBID=3463210
SLURM_JOB_QOS=normal
SLURM_PROCID=0
SLURM_CPUS_PER_TASK=5
SLURM_NTASKS=32
SLURM_TOPOLOGY_ADDR=hkibb.hkibbi1.hkibbi1e12.hkn0414
SLURM_TOPOLOGY_ADDR_PATTERN=switch.switch.switch.node
SLURM_SCRIPT_CONTEXT=prolog_task
SLURM_NODELIST=hkn[0414,0518,0620,0624,0627,0716,0730,0804]
SLURM_JOB_ACCOUNT=hk-project-p0023960
SLURM_PRIO_PROCESS=0
SLURM_NPROCS=32
SLURM_NNODES=8
SLURM_SUBMIT_HOST=hkn1993.localdomain
SLURM_JOB_ID=3463210
SLURM_NODEID=0
SLURM_CONF=/etc/slurm/slurm.conf
SLURM_JOB_NAME=train_lam_minecraft_8node_darkness_filter_37M
SLURM_NTASKS_PER_NODE=4
SLURM_JOB_GID=502226
SLURM_JOB_NODELIST=hkn[0414,0518,0620,0624,0627,0716,0730,0804]
GpuFreq=control_disabled
GpuFreq=control_disabled
GpuFreq=control_disabled
GpuFreq=control_disabled
GpuFreq=control_disabled
GpuFreq=control_disabled
GpuFreq=control_disabled
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
GpuFreq=control_disabled
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
srun: error: hkn0414: tasks 0-3: Exited with exit code 2
srun: error: hkn0716: tasks 20-23: Exited with exit code 2
srun: error: hkn0804: tasks 28-31: Exited with exit code 2
srun: error: hkn0620: tasks 8-11: Exited with exit code 2
srun: error: hkn0627: tasks 16-19: Exited with exit code 2
srun: error: hkn0730: tasks 24-27: Exited with exit code 2
srun: error: hkn0518: tasks 4-7: Exited with exit code 2
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
/usr/bin/python: can't open file '/tmp/train_lam.py': [Errno 2] No such file or directory
srun: error: hkn0624: tasks 12-15: Exited with exit code 2

============================= JOB FEEDBACK =============================

Job ID: 3463210
Cluster: hk
User/Group: tum_cte0515/hk-project-p0023960
Account: hk-project-p0023960
State: FAILED (exit code 2)
Partition: accelerated
Nodes: 8
Cores per node: 24
Nodelist: hkn[0414,0518,0620,0624,0627,0716,0730,0804]
CPU Utilized: 00:00:01
CPU Efficiency: 0.02% of 01:29:36 core-walltime
Job Wall-clock time: 00:00:28
Starttime: Wed Sep  3 20:06:13 2025
Endtime: Wed Sep  3 20:06:41 2025
Memory Utilized: 10.48 MB
Memory Efficiency: 0.00% of 0.00 MB
Energy Consumed: 2180926 Joule / 605.812777777778 Watthours
Average node power draw: 77890.2142857143 Watt