[tab] /hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/logs/logs_mihir/doom/lam/train_lam_default_single_node_120x160_3546743.log (log)
#!/usr/bin/env bash

#SBATCH --nodes=1
#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/doom/lam/%x_%j.log
#SBATCH --error=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/logs/logs_mihir/doom/lam/%x_%j.log
#SBATCH --job-name=train_lam_default_single_node_120x160

# 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_train=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/data_doom/doom_episodes_10m_120x160_fixed/train
array_records_dir_val=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/data_doom/doom_episodes_10m_120x160_fixed/val


job_name=$SLURM_JOB_NAME
slurm_job_id=$SLURM_JOB_ID

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 jasmine/train_lam.py \
    --save_ckpt \
    --num_latents=18 \
    --image_height=120 \
    --image_width=160 \
    --ckpt_dir $CHECKPOINT_DIR \
    --batch_size=48 \
    --name=doom-lam-default-120x160-$slurm_job_id \
    --tags lam doom default 120x160 \
    --entity instant-uv \
    --project jafar \
    --data_dir $array_records_dir_train \
    --val_data_dir $array_records_dir_valSLURM_JOB_USER=tum_cte0515
SLURM_TASKS_PER_NODE=4
SLURM_JOB_UID=999226
SLURM_TASK_PID=2452592
SLURM_JOB_GPUS=0,1,2,3
SLURM_LOCALID=0
SLURM_SUBMIT_DIR=/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine
SLURMD_NODENAME=hkn0602
SLURM_JOB_START_TIME=1759769212
SLURM_CLUSTER_NAME=hk
SLURM_JOB_END_TIME=1759942012
SLURM_CPUS_ON_NODE=24
SLURM_JOB_CPUS_PER_NODE=24
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=1
SLURM_JOBID=3546743
SLURM_JOB_QOS=normal
SLURM_PROCID=0
SLURM_CPUS_PER_TASK=5
SLURM_NTASKS=4
SLURM_TOPOLOGY_ADDR=hkibb.hkibbi1.hkibbi1e29.hkn0602
SLURM_TOPOLOGY_ADDR_PATTERN=switch.switch.switch.node
SLURM_SCRIPT_CONTEXT=prolog_task
SLURM_NODELIST=hkn0602
SLURM_JOB_ACCOUNT=hk-project-p0023960
SLURM_PRIO_PROCESS=0
SLURM_NPROCS=4
SLURM_NNODES=1
SLURM_SUBMIT_HOST=hkn1990.localdomain
SLURM_JOB_ID=3546743
SLURM_NODEID=0
SLURM_CONF=/etc/slurm/slurm.conf
SLURM_JOB_NAME=train_lam_default_single_node_120x160
SLURM_NTASKS_PER_NODE=4
SLURM_JOB_GID=502226
SLURM_JOB_NODELIST=hkn0602
GpuFreq=control_disabled
wandb: Currently logged in as: mihir-mahajan2002 (instant-uv) to https://api.wandb.ai. Use `wandb login --relogin` to force relogin
wandb: Tracking run with wandb version 0.22.0
wandb: Run data is saved locally in /hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/wandb/run-20251006_184743-n8pld4b8
wandb: Run `wandb offline` to turn off syncing.
wandb: Syncing run doom-lam-default-120x160-3546743
wandb: ⭐️ View project at https://wandb.ai/instant-uv/jafar
wandb: 🚀 View run at https://wandb.ai/instant-uv/jafar/runs/n8pld4b8
E1006 18:47:46.502022 2452655 pjrt_stream_executor_client.cc:3314] Execution of replica 0 failed: INTERNAL: NCCL operation ncclGroupEnd() failed: unhandled cuda error (run with NCCL_DEBUG=INFO for details). Last NCCL warning(error) log entry (may be unrelated) 'Cuda failure 2 'out of memory''.
E1006 18:47:46.502101 2452656 pjrt_stream_executor_client.cc:3314] Execution of replica 0 failed: INTERNAL: NCCL operation ncclGroupEnd() failed: unhandled cuda error (run with NCCL_DEBUG=INFO for details). Last NCCL warning(error) log entry (may be unrelated) 'Cuda failure 2 'out of memory''.
E1006 18:47:46.502159 2452657 pjrt_stream_executor_client.cc:3314] Execution of replica 0 failed: INTERNAL: NCCL operation ncclGroupEnd() failed: unhandled cuda error (run with NCCL_DEBUG=INFO for details). Last NCCL warning(error) log entry (may be unrelated) 'Cuda failure 2 'out of memory''.
E1006 18:47:46.504826 2452658 pjrt_stream_executor_client.cc:3314] Execution of replica 0 failed: INTERNAL: NCCL operation ncclGroupEnd() failed: unhandled cuda error (run with NCCL_DEBUG=INFO for details). Last NCCL warning(error) log entry (may be unrelated) 'Cuda failure 2 'out of memory''.
Running on 4 devices.
Counting all components: ['action_in', 'action_up', 'decoder', 'encoder', 'patch_up', 'vq']
Parameter counts:
{'action_in': 768, 'action_up': 16896, 'decoder': 17474816, 'encoder': 17228832, 'patch_up': 393728, 'vq': 576, 'total': 35115616}
Running on 4 devices.
Counting all components: ['action_in', 'action_up', 'decoder', 'encoder', 'patch_up', 'vq']
Parameter counts:
{'action_in': 768, 'action_up': 16896, 'decoder': 17474816, 'encoder': 17228832, 'patch_up': 393728, 'vq': 576, 'total': 35115616}
Traceback (most recent call last):
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 598, in <module>
    main(args)
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 335, in main
Running on 4 devices.
Counting all components: ['action_in', 'action_up', 'decoder', 'encoder', 'patch_up', 'vq']
Parameter counts:
{'action_in': 768, 'action_up': 16896, 'decoder': 17474816, 'encoder': 17228832, 'patch_up': 393728, 'vq': 576, 'total': 35115616}
Traceback (most recent call last):
    checkpoint_manager = build_checkpoint_manager(args)
Traceback (most recent call last):
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 598, in <module>
Running on 4 devices.
Counting all components: ['action_in', 'action_up', 'decoder', 'encoder', 'patch_up', 'vq']
Parameter counts:
{'action_in': 768, 'action_up': 16896, 'decoder': 17474816, 'encoder': 17228832, 'patch_up': 393728, 'vq': 576, 'total': 35115616}
Traceback (most recent call last):
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 598, in <module>
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 222, in build_checkpoint_manager
    main(args)
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 598, in <module>
    main(args)
    main(args)
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 335, in main
    checkpoint_manager = build_checkpoint_manager(args)
    checkpoint_manager = ocp.CheckpointManager(
                         ^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 335, in main
    checkpoint_manager = build_checkpoint_manager(args)
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/checkpoint_manager.py", line 844, in __init__
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 335, in main
    checkpoint_manager = build_checkpoint_manager(args)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 222, in build_checkpoint_manager
    checkpoint_manager = ocp.CheckpointManager(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 222, in build_checkpoint_manager
    checkpoint_manager = ocp.CheckpointManager(
                         ^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/checkpoint_manager.py", line 844, in __init__
                         ^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/checkpoint_manager.py", line 844, in __init__
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/jasmine/train_lam.py", line 222, in build_checkpoint_manager
    checkpoint_manager = ocp.CheckpointManager(
                         ^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/checkpoint_manager.py", line 844, in __init__
    _create_root_directory(
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/checkpoint_manager.py", line 558, in _create_root_directory
    multihost.sync_global_processes(
    _create_root_directory(
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/checkpoint_manager.py", line 558, in _create_root_directory
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/_src/multihost/multihost.py", line 347, in sync_global_processes
    multihost_utils.sync_global_devices(key)
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 91, in sync_global_devices
    assert_equal(h, f"sync_global_devices name mismatch ('{name}')")
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 163, in assert_equal
    expected = broadcast_one_to_all(in_tree)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 83, in broadcast_one_to_all
    out_tree = jax.jit(_psum, out_shardings=jax.sharding.NamedSharding(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    multihost.sync_global_processes(
    _create_root_directory(
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/checkpoint_manager.py", line 558, in _create_root_directory
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/_src/multihost/multihost.py", line 347, in sync_global_processes
jaxlib._jax.XlaRuntimeError: INTERNAL: NCCL operation ncclGroupEnd() failed: unhandled cuda error (run with NCCL_DEBUG=INFO for details). Last NCCL warning(error) log entry (may be unrelated) 'Cuda failure 2 'out of memory''.
    _create_root_directory(
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/checkpoint_manager.py", line 558, in _create_root_directory
--------------------
For simplicity, JAX has removed its internal frames from the traceback of the following exception. Set JAX_TRACEBACK_FILTERING=off to include these.
    multihost_utils.sync_global_devices(key)
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 91, in sync_global_devices
    assert_equal(h, f"sync_global_devices name mismatch ('{name}')")
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 163, in assert_equal
    multihost.sync_global_processes(
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/_src/multihost/multihost.py", line 347, in sync_global_processes
    expected = broadcast_one_to_all(in_tree)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 83, in broadcast_one_to_all
    multihost.sync_global_processes(
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/orbax/checkpoint/_src/multihost/multihost.py", line 347, in sync_global_processes
    out_tree = jax.jit(_psum, out_shardings=jax.sharding.NamedSharding(
    multihost_utils.sync_global_devices(key)
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 91, in sync_global_devices
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jaxlib._jax.XlaRuntimeError: INTERNAL: NCCL operation ncclGroupEnd() failed: unhandled cuda error (run with NCCL_DEBUG=INFO for details). Last NCCL warning(error) log entry (may be unrelated) 'Cuda failure 2 'out of memory''.
--------------------
For simplicity, JAX has removed its internal frames from the traceback of the following exception. Set JAX_TRACEBACK_FILTERING=off to include these.
    multihost_utils.sync_global_devices(key)
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 91, in sync_global_devices
    assert_equal(h, f"sync_global_devices name mismatch ('{name}')")
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 163, in assert_equal
    assert_equal(h, f"sync_global_devices name mismatch ('{name}')")
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 163, in assert_equal
    expected = broadcast_one_to_all(in_tree)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 83, in broadcast_one_to_all
    expected = broadcast_one_to_all(in_tree)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/.venv/lib64/python3.12/site-packages/jax/experimental/multihost_utils.py", line 83, in broadcast_one_to_all
    out_tree = jax.jit(_psum, out_shardings=jax.sharding.NamedSharding(
    out_tree = jax.jit(_psum, out_shardings=jax.sharding.NamedSharding(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jaxlib._jax.XlaRuntimeError: INTERNAL: NCCL operation ncclGroupEnd() failed: unhandled cuda error (run with NCCL_DEBUG=INFO for details). Last NCCL warning(error) log entry (may be unrelated) 'Cuda failure 2 'out of memory''.
--------------------
For simplicity, JAX has removed its internal frames from the traceback of the following exception. Set JAX_TRACEBACK_FILTERING=off to include these.
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
jaxlib._jax.XlaRuntimeError: INTERNAL: NCCL operation ncclGroupEnd() failed: unhandled cuda error (run with NCCL_DEBUG=INFO for details). Last NCCL warning(error) log entry (may be unrelated) 'Cuda failure 2 'out of memory''.
--------------------
For simplicity, JAX has removed its internal frames from the traceback of the following exception. Set JAX_TRACEBACK_FILTERING=off to include these.
wandb: 
wandb: 🚀 View run doom-lam-default-120x160-3546743 at: https://wandb.ai/instant-uv/jafar/runs/n8pld4b8
wandb: Find logs at: ../../../../../hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jasmine/wandb/run-20251006_184743-n8pld4b8/logs
W1006 18:47:47.479810 2452978 pjrt_client.cc:1469] WatchJobStateAsync failed for task goo.gle/debugonly  job_name: "jax_worker": UNAVAILABLE: failed to connect to all addresses; last error: UNKNOWN: ipv4:10.0.1.106:65143: Failed to connect to remote host: Connection refused
Additional GRPC error information from remote target coordination_service while calling /tensorflow.CoordinationService/WatchJobState:
:UNKNOWN:Error received from peer  {grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:10.0.1.106:65143: Failed to connect to remote host: Connection refused"}
W1006 18:47:47.479914 2452975 pjrt_client.cc:1469] WatchJobStateAsync failed for task goo.gle/debugstr  job_name: "jax_worker" task_id: 2: UNAVAILABLE: failed to connect to all addresses; last error: UNKNOWN: ipv4:10.0.1.106:65143: Failed to connect to remote host: Connection refused
Additional GRPC error information from remote target coordination_service while calling /tensorflow.CoordinationService/WatchJobState:
:UNKNOWN:Error received from peer  {grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:10.0.1.106:65143: Failed to connect to remote host: Connection refused"}
W1006 18:47:47.480270 2452977 pjrt_client.cc:1469] WatchJobStateAsync failed for task goo.gle/debugstr   job_name: "jax_worker" task_id: 1: UNAVAILABLE: failed to connect to all addresses; last error: UNKNOWN: ipv4:10.0.1.106:65143: Failed to connect to remote host: Connection refused
Additional GRPC error information from remote target coordination_service while calling /tensorflow.CoordinationService/WatchJobState:
:UNKNOWN:Error received from peer  {grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:10.0.1.106:65143: Failed to connect to remote host: Connection refused", grpc_status:14}
W1006 18:47:47.480328 2452976 pjrt_client.cc:1469] WatchJobStateAsync failed for task goo.gle/debugonly    job_name: "jax_worker" task_id: 3: UNAVAILABLE: failed to connect to all addresses; last error: UNKNOWN: ipv4:10.0.1.106:65143: Failed to connect to remote host: Connection refused
Additional GRPC error information from remote target coordination_service while calling /tensorflow.CoordinationService/WatchJobState:
:UNKNOWN:Error received from peer  {grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:10.0.1.106:65143: Failed to connect to remote host: Connection refused", grpc_status:14}
srun: error: hkn0602: task 3: Exited with exit code 1
srun: error: hkn0602: tasks 1-2: Exited with exit code 1
srun: error: hkn0602: task 0: Exited with exit code 1

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

Job ID: 3546743
Cluster: hk
User/Group: tum_cte0515/hk-project-p0023960
Account: hk-project-p0023960
State: FAILED (exit code 1)
Partition: accelerated
Nodes: 1
Cores per node: 24
Nodelist: hkn0602
CPU Utilized: 00:00:48
CPU Efficiency: 3.57% of 00:22:24 core-walltime
Job Wall-clock time: 00:00:56
Starttime: Mon Oct  6 18:46:52 2025
Endtime: Mon Oct  6 18:47:48 2025
Memory Utilized: 7.51 GB
Memory Efficiency: 1.55% of 485.84 GB (485.84 GB/node)
The task which had the largest memory consumption differs by 103.49% from the average task max memory consumption
Energy Consumed: 12448 Joule / 3.45777777777778 Watthours
Average node power draw: 222.285714285714 Watt