p-doom/crowd-code-dataset-0.2 huggingface dataset:
[tab] slurm/jobs/mihir/horeka/yolo-runs/train_dynamics_new_arch.sbatch (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=2
#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/%x_%j.log
#SBATCH --error=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/logs/logs_mihir/%x_%j.log
#SBATCH --job-name=train_dyn_new_arch-bugfixed-temporal-shift

# 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

CHECKPOINT_DIR=$ws_dir/checkpoints/$job_name/$slurm_job_id
mkdir -p $CHECKPOINT_DIR

tokenizer_ckpt_dir=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/checkpoints/big-runs/tokenizer-lr-scaling/train_tokenizer_lr_sweep_1e-4

env | grep SLURM

srun python train_dynamics.py \
    --save_ckpt \
    --num_steps=50000 \
    --warmup_steps=2500 \
    --wsd_decay_steps=5000 \
    --ckpt_dir $CHECKPOINT_DIR \
    --batch_size=96 \
    --max_lr=1e-4 \
    --log_image_interval=1000 \
    --log \
    --log_checkpoint_interval=1000 \
    --name=dynamics-new-arch-bugfix-temporal-shift-$slurm_job_id \
    --tags dynamics new-arch bug-fix \
    --entity instant-uv \
    --project jafar \
    --tokenizer_checkpoint=$tokenizer_ckpt_dir \
    --data_dir $array_records_dir \
[tab] slurm/jobs/mihir/horeka/yolo-runs/sampling.sh (shellscript)

# 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

CHECKPOINT_DIR=$ws_dir/checkpoints/$job_name/$slurm_job_id
mkdir -p $CHECKPOINT_DIR

tokenizer_ckpt_dir=/hkfs/work/workspace/scratch/tum_ind3695-jafa_ws_shared/checkpoints/big-runs/tokenizer-lr-scaling/train_tokenizer_lr_sweep_1e-4
dynamics_ckpt_dir=$1
echo $dynamics_ckpt_dir

env | grep SLURM

python sample.py \
    --checkpoint $dynamics_ckpt_dir \
    --dyna_dim=128 \
    --dyna_num_blocks=2 \
    --dyna_num_heads=4 \
    --seq_len=16 \
    --data_dir $array_records_dir
[content] genie.py (python)

        if self.use_maskgit:
            self.dynamics = DynamicsMaskGIT(
                model_dim=self.dyna_dim,
                num_latents=self.num_patch_latents,
                num_blocks=self.dyna_num_blocks,
                num_heads=self.dyna_num_heads,
                dropout=self.dropout,
                mask_limit=self.mask_limit,
                param_dtype=self.param_dtype,
                dtype=self.dtype,
            use_flash_attention=self.use_flash_attention,
            ) 
        else:
            self.dynamics = DynamicsAutoregressive(
                model_dim=self.dyna_dim,
                num_latents=self.num_patch_latents,
                num_blocks=self.dyna_num_blocks,
                num_heads=self.dyna_num_heads,
                dropout=self.dropout,
                param_dtype=self.param_dtype,
                dtype=self.dtype,
            )
[tab] /hkfs/home/project/hk-project-p0023960/tum_cte0515/Projects/jafar/.git/COMMIT_EDITMSG (git-commit)

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch new-arch-sampling
# Changes to be committed:
#	modified:   genie.py
#	modified:   models/dynamics.py
#	modified:   models/lam.py
#	modified:   train_dynamics.py
#	modified:   utils/nn.py
#
# Untracked files:
#	diff.diff
#	diff.log
#	logs/
#	read_tf_record.py
#	requirements-franz.txt
#	scripts_cremers/
#	scripts_horeka/
#	slurm-3359333.out
#	slurm-3359334.out
#	slurm-3359338.out
#	slurm/
#	utils/logger_bak.py
#	utils/visualizer.py
#	weekend-job-requeuer.sh
#	weekend-job-starter.sh
#