p-doom/crowd-code-dataset-0.2 huggingface dataset:
[tab] slurm/jobs/mihir/berlin/diffusion/coinrun/sample_coinrun.sh (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --time=01:00:00
#SBATCH --partition=accelerated
#SBATCH --cpus-per-task=5
#SBATCH --gres=gpu:4
#SBATCH --output=/fast/project/HFMI_ProFOUND/mihir/logs/sample/coinrun/diffusion/sample_coinrun_%j.log
#SBATCH --error=/fast/project/HFMI_ProFOUND/mihir/logs/sample/coinrun/diffusion/sample_coinrun_%j.log
#SBATCH --job-name=sample_coinrun

# Activate virtual environment
source .venv/bin/activate

array_records_dir=/fast/project/HFMI_ProFOUND/mihir/data/data_coinrun/coinrun_episodes_50m/val

CHECKPOINT_PATH=/fast/project/HFMI_ProFOUND/mihir/checkpoints/dyn/train_dyn_dit/32419

echo "Sampling from checkpoint: $CHECKPOINT_PATH"

srun python jasmine/sample.py \
    --checkpoint "$CHECKPOINT_PATH" \
    --data_dir=$array_records_dir \
    --seq_len=32 \
    --batch_size=12 \
    --start_frame=4 \
    --image_height=64 \
    --image_width=64 \
    --dyna_type=diffusion \
    --diffusion_denoise_steps=128 \
    --no-print-action-indices \
    --output_dir "gifs/diffusion/coinrun/diffusion_forcing"
[tab] slurm/jobs/mihir/berlin/diffusion/breakout/sample_breakout.sh (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --time=01:00:00
#SBATCH --partition=accelerated
#SBATCH --cpus-per-task=5
#SBATCH --gres=gpu:4
#SBATCH --output=/fast/project/HFMI_ProFOUND/mihir/logs/sample/breakout/diffusion/sample_breakout_%j.log
#SBATCH --error=/fast/project/HFMI_ProFOUND/mihir/logs/sample/breakout/diffusion/sample_breakout_%j.log
#SBATCH --job-name=sample_breakout

# Activate virtual environment
source .venv/bin/activate

array_records_dir=/fast/project/HFMI_ProFOUND/mihir/data/data_breakout/breakout_episodes_80m/val

CHECKPOINT_PATH=/fast/project/HFMI_ProFOUND/mihir/checkpoints/dyn/train_dyn_dit/32420

echo "Sampling from checkpoint: $CHECKPOINT_PATH"

srun python jasmine/sample.py \
    --checkpoint "$CHECKPOINT_PATH" \
    --data_dir=$array_records_dir \
    --seq_len=16 \
    --batch_size=12 \
    --start_frame=4 \
    --image_height=10 \
    --image_width=10 \
    --dyna_type=diffusion \
    --diffusion_denoise_steps=128 \
    --no-print-action-indices \
    --output_dir "gifs/diffusion/breakout/diffusion_forcing"
[content] jasmine/genie.py (python)
currupted_vid_BSHWC = noise * (1 - t_vector[:, :, None, None, None]) + vid_BSHWC * t_vector[:, :, None, None, None]
            #vid_BSHWC = jnp.where(
                #(jnp.arange(window_size).reshape(1, window_size, 1, 1, 1) < frame_i_window),
                #currupted_vid_BSHWC,
                #vid_BSHWC
            #)
[tab] slurm/jobs/mihir/berlin/diffusion/coinrun/dyn_dit_coinrun_lr_1e-4 copy.sh (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --time=24:00:00
#SBATCH --cpus-per-task=5
#SBATCH --gres=gpu:1
#SBATCH --mem=100GB
#SBATCH --output=/fast/project/HFMI_ProFOUND/mihir/logs/train/dyn/diffusion/%x_%j.log
#SBATCH --error=/fast/project/HFMI_ProFOUND/mihir/logs/train/dyn/diffusion/%x_%j.log
#SBATCH --job-name=train_dyn_dit

cat $0

source .venv/bin/activate

array_records_dir_train=/fast/project/HFMI_ProFOUND/mihir/data/data_coinrun/coinrun_episodes_50m/train
array_records_dir_val=/fast/project/HFMI_ProFOUND/mihir/data/data_coinrun/coinrun_episodes_50m/val

job_name=$SLURM_JOB_NAME
slurm_job_id=$SLURM_JOB_ID

CHECKPOINT_DIR=/fast/project/HFMI_ProFOUND/mihir/checkpoints/dyn/$job_name/$slurm_job_id
mkdir -p $CHECKPOINT_DIR

srun python jasmine/train_dynamics.py \
    --save_ckpt \
    --image_height=64 \
    --image_width=64 \
    --ckpt_dir $CHECKPOINT_DIR \
    --batch_size=36 \
    --max_lr=1e-4 \
    --val_interval 1000 \
    --dyna_type=diffusion \
    --diffusion_denoise_steps=128 \
    --name=train_dyn_dit_coinrun_lr_1e-4_$slurm_job_id \
    --tags dyn diffusion coinrun lr_1e-4 \
    --entity instant-uv \
    --project jafar \
    --data_dir $array_records_dir_train \
    --val_data_dir $array_records_dir_val \
[tab] slurm/jobs/mihir/berlin/diffusion/coinrun/dyn_dit_coinrun_lr_1e-4_gt_actions.sh (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --time=24:00:00
#SBATCH --cpus-per-task=5
#SBATCH --gres=gpu:1
#SBATCH --mem=100GB
#SBATCH --output=/fast/project/HFMI_ProFOUND/mihir/logs/train/dyn/diffusion/%x_%j.log
#SBATCH --error=/fast/project/HFMI_ProFOUND/mihir/logs/train/dyn/diffusion/%x_%j.log
#SBATCH --job-name=train_dyn_dit

cat $0

source .venv/bin/activate

array_records_dir_train=/fast/project/HFMI_ProFOUND/mihir/data/data_coinrun/coinrun_episodes_50m/train
array_records_dir_val=/fast/project/HFMI_ProFOUND/mihir/data/data_coinrun/coinrun_episodes_50m/val

job_name=$SLURM_JOB_NAME
slurm_job_id=$SLURM_JOB_ID

CHECKPOINT_DIR=/fast/project/HFMI_ProFOUND/mihir/checkpoints/dyn/$job_name/$slurm_job_id
mkdir -p $CHECKPOINT_DIR

srun python jasmine/train_dynamics.py \
    --save_ckpt \
    --image_height=64 \
    --image_width=64 \
    --ckpt_dir $CHECKPOINT_DIR \
    --batch_size=36 \
    --max_lr=1e-4 \
    --val_interval 1000 \
    --dyna_type=diffusion \
    --diffusion_denoise_steps=128 \
    --name=train_dyn_dit_coinrun_lr_1e-4_$slurm_job_id \
    --tags dyn diffusion coinrun lr_1e-4 \
    --entity instant-uv \
    --project jafar \
    --data_dir $array_records_dir_train \
    --val_data_dir $array_records_dir_val \
[tab] slurm/jobs/mihir/berlin/diffusion/coinrun/dyn_dit_coinrun_lr_gt_actions.sh (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --time=24:00:00
#SBATCH --cpus-per-task=5
#SBATCH --gres=gpu:1
#SBATCH --mem=100GB
#SBATCH --output=/fast/project/HFMI_ProFOUND/mihir/logs/train/dyn/diffusion/%x_%j.log
#SBATCH --error=/fast/project/HFMI_ProFOUND/mihir/logs/train/dyn/diffusion/%x_%j.log
#SBATCH --job-name=train_dyn_dit

cat $0

source .venv/bin/activate

array_records_dir_train=/fast/project/HFMI_ProFOUND/mihir/data/data_coinrun/coinrun_episodes_50m/train
array_records_dir_val=/fast/project/HFMI_ProFOUND/mihir/data/data_coinrun/coinrun_episodes_50m/val

job_name=$SLURM_JOB_NAME
slurm_job_id=$SLURM_JOB_ID

CHECKPOINT_DIR=/fast/project/HFMI_ProFOUND/mihir/checkpoints/dyn/$job_name/$slurm_job_id
mkdir -p $CHECKPOINT_DIR

srun python jasmine/train_dynamics.py \
    --save_ckpt \
    --image_height=64 \
    --image_width=64 \
    --ckpt_dir $CHECKPOINT_DIR \
    --batch_size=36 \
    --max_lr=1e-4 \
    --val_interval 1000 \
    --dyna_type=diffusion \
    --use_gt_actions \
    --diffusion_denoise_steps=128 \
    --name=train_dyn_dit_coinrun_lr_1e-4_gt_actions_$slurm_job_id \
    --tags dyn diffusion coinrun lr_1e-4 gt_actions \
    --entity instant-uv \
    --project jafar \
    --data_dir $array_records_dir_train \
    --val_data_dir $array_records_dir_val \