p-doom/crowd-code-dataset-0.2 huggingface dataset:
[content] slurm/dev/franz/helmholtz_cluster/coinrun/flash_attention_throughput_investigation/dynamics_1B_4096_seqlen_spatial_FA_temporal_XLA_max_bs.sh (shellscript)
current_branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$current_branch" != "prepend-action-maskgit" ]; then
    echo "This script must be run from the prepend-action-maskgit branch. Current branch is $current_branch. Exiting."
    exit 1
fi
[tab] slurm/dev/alfred/helmholtz_cluster/train_tok_dev/train_tok.sbatch (shellscript)
#!/usr/bin/env bash

source .venv/bin/activate


# array_records_dir="/home/alfred.nguyen/projects/jafar/tests/data/dummy_arrayrecord/"
array_records_dir="/fast/project/HFMI_SynergyUnit/jafar_ws/avocadoali/test_set_uncompressed"

job_name="debug"
slurm_job_id="0000"

CHECKPOINT_DIR=/fast/project/HFMI_SynergyUnit/jafar_ws/checkpoints/dev/mock_tok/
mkdir -p $CHECKPOINT_DIR


export xla_flags=--xla_gpu_autotune_level=0

srun python jasmine/train_tokenizer.py \
    --ckpt_dir $CHECKPOINT_DIR \
    --save_ckpt \
    --batch_size=12 \
    --log_image_interval=20 \
    --log \
    --name=test-wandb-tags-$slurm_job_id \
    --tags test tokenizer debug \
    --entity instant-uv \
    --project jafar \
    --log_checkpoint_interval 10 \
    --data_dir $array_records_dir
[content] slurm/dev/franz/helmholtz_cluster/coinrun/flash_attention_throughput_investigation/tokenizer.sh (shellscript)
#!/usr/bin/env bash

source .venv/bin/activate


# array_records_dir="/home/alfred.nguyen/projects/jafar/tests/data/dummy_arrayrecord/"
array_records_dir="/fast/project/HFMI_SynergyUnit/jafar_ws/avocadoali/test_set_uncompressed"

job_name="debug"
slurm_job_id="0000"

CHECKPOINT_DIR=/fast/project/HFMI_SynergyUnit/jafar_ws/checkpoints/dev/mock_tok/
mkdir -p $CHECKPOINT_DIR


export xla_flags=--xla_gpu_autotune_level=0

srun python jasmine/train_tokenizer.py \
    --ckpt_dir $CHECKPOINT_DIR \
    --save_ckpt \
    --batch_size=12 \
    --log_image_interval=20 \
    --log \
    --name=test-wandb-tags-$slurm_job_id \
    --tags test tokenizer debug \
    --entity instant-uv \
    --project jafar \
    --log_checkpoint_interval 10 \
    --data_dir $array_records_dir
[content] slurm/dev/franz/helmholtz_cluster/coinrun/flash_attention_throughput_investigation/tokenizer.sh (shellscript)

current_branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$current_branch" != "prepend-action-maskgit" ]; then
    echo "This script must be run from the prepend-action-maskgit branch. Current branch is $current_branch. Exiting."
    exit 1
fi
[tab] slurm/jobs/franz/berlin/coinrun/coinrun_tokenizer/coinrun_tokenizer_repoduction.sbatch (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --time=24:00:00
#SBATCH --cpus-per-task=8
#SBATCH --gres=gpu:1
#SBATCH --output=/fast/project/HFMI_SynergyUnit/jafar_ws/logs/franz/coinrun/tokenizer/%x_%j.log
#SBATCH --error=/fast/project/HFMI_SynergyUnit/jafar_ws/logs/franz/coinrun/tokenizer/%x_%j.log
#SBATCH --job-name=train_tokenizer_coinrun_reproduction_codebook_normal_init

# Log the sbatch script
cat $0

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

job_name=$SLURM_JOB_NAME
slurm_job_id=$SLURM_JOB_ID

tags="coinrun reproduction 10m_dataset tokenizer codebook_normal_init"

array_records_dir="/fast/project/HFMI_SynergyUnit/jafar_ws/data/coinrun/array_records_10m"

CHECKPOINT_DIR="/fast/project/HFMI_SynergyUnit/jafar_ws/checkpoints/coinrun/tokenizer/${job_name}_${slurm_job_id}"
mkdir -p $CHECKPOINT_DIR

env | grep SLURM

srun python jasmine/train_tokenizer.py \
    --wandb_id $SLURM_JOB_ID \
    --ckpt_dir $CHECKPOINT_DIR \
    --batch_size=48 \
    --image_height=64 \
    --image_width=64 \
    --init_lr=0 \
    --max_lr=3e-4 \
    --log_image_interval=1000 \
    --log_checkpoint_interval=1000 \
    --log \
    --name="${job_name}_${slurm_job_id}" \
    --tags $tags \
    --entity instant-uv \
    --project jafar \
    --data_dir $array_records_dir &

child_pid=$!

wait $child_pid
[tab] slurm/dev/franz/helmholtz_cluster/coinrun/flash_attention_throughput_investigation/tokenizer.sh (shellscript)
#!/usr/bin/env bash

source .venv/bin/activate

array_records_dir="/lustre/groups/haicu/workspace/alfred.nguyen/jafar_worksapce/data/throughput_dataset_chunks_size_160_chunks_per_file_100"

job_name="mock_tokenizer"
slurm_job_id="0000"

CHECKPOINT_DIR="/lustre/groups/haicu/workspace/franz.srambical/checkpoints/coinrun/dynamics/${job_name}/${slurm_job_id}"
mkdir -p $CHECKPOINT_DIR

current_branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$current_branch" != "flash-attn-only-spatial" ]; then
    echo "This script must be run from the flash-attn-only-spatial branch. Current branch is $current_branch. Exiting."
    exit 1
fi

srun python jasmine/train_tokenizer.py \
    --ckpt_dir $CHECKPOINT_DIR \
    --save_ckpt \
    --log \
    --name=${job_name}_${slurm_job_id} \
    --tags flash_attention_throughput_investigation tokenizer \
    --entity instant-uv \
    --project jafar \
    --log_checkpoint_interval 10 \
    --data_dir $array_records_dir
[content] slurm/dev/franz/helmholtz_cluster/coinrun/flash_attention_throughput_investigation/tokenizer.sh (shellscript)
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --gres=gpu:1
#SBATCH --time=24:00:00
#SBATCH --cpus-per-task=8
#SBATCH --output=/lustre/groups/haicu/workspace/franz.srambical/logs/coinrun/tokenizer/%x_%j.log
#SBATCH --error=/lustre/groups/haicu/workspace/franz.srambical/logs/coinrun/tokenizer/%x_%j.log
#SBATCH --job-name=train_tokenizer_coinrun_flash_attention_throughput_investigation
[tab] slurm/dev/franz/helmholtz_cluster/coinrun/flash_attention_throughput_investigation/dynamics_1B_4096_seqlen_spatial_FA_temporal_XLA_max_bs.sh (shellscript)


current_branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$current_branch" != "prepend-action-maskgit" ]; then
    echo "This script must be run from the prepend-action-maskgit branch. Current branch is $current_branch. Exiting."
    exit 1
fi
[content] slurm/dev/franz/helmholtz_cluster/coinrun/flash_attention_throughput_investigation/dynamics_1B_4096_seqlen_spatial_FA_temporal_XLA_max_bs.sh (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --gres=gpu:1
#SBATCH --time=24:00:00
#SBATCH --cpus-per-task=8
#SBATCH --output=/lustre/groups/haicu/workspace/franz.srambical/logs/coinrun/tokenizer/%x_%j.log
#SBATCH --error=/lustre/groups/haicu/workspace/franz.srambical/logs/coinrun/tokenizer/%x_%j.log
#SBATCH --job-name=train_tokenizer_coinrun_flash_attention_throughput_investigation

source .venv/bin/activate

array_records_dir="/lustre/groups/haicu/workspace/alfred.nguyen/jafar_worksapce/data/throughput_dataset_chunks_size_160_chunks_per_file_100"

job_name=$SLURM_JOB_NAME
slurm_job_id=$SLURM_JOB_ID

CHECKPOINT_DIR="/lustre/groups/haicu/workspace/franz.srambical/checkpoints/coinrun/dynamics/${job_name}/${slurm_job_id}"
mkdir -p $CHECKPOINT_DIR

current_branch=$(git rev-parse --abbrev-ref HEAD)
if [ "$current_branch" != "ablation/flash-attn-only-spatial" ]; then
    echo "This script must be run from the ablation/flash-attn-only-spatial branch. Current branch is $current_branch. Exiting."
    exit 1
fi

srun python jasmine/train_tokenizer.py \
    --ckpt_dir $CHECKPOINT_DIR \
    --save_ckpt \
    --log \
    --name=${job_name}_${slurm_job_id} \
    --tags flash_attention_throughput_investigation tokenizer \
    --entity instant-uv \
    --project jafar \
    --log_checkpoint_interval 10 \
    --data_dir $array_records_dir