p-doom/crowd-code-dataset-0.2 huggingface dataset:
[tab] experiments/dynamics_grain_tok_lam_restore.sh (shellscript)
#!/usr/bin/env bash
source .venv/bin/activate

data_dir="$PWD/data_arrayrecord/dummy"
ckpt_dir="$PWD/checkpoints/dynamics_openai_grain_tok_lam_restore"
tokenizer_ckpt_dir="$PWD/checkpoints/tokenizer_openai_grain_checkpointing"
lam_ckpt_dir="$PWD/checkpoints/lam_openai_grain_checkpointing"

export XLA_FLAGS=--xla_gpu_autotune_level=0
srun python train_dynamics.py \
    --dyna_type 'causal' \
    --batch_size 12 \
    --tokenizer_checkpoint $tokenizer_ckpt_dir \
    --lam_checkpoint $lam_ckpt_dir \
    --log_checkpoint_interval 3 \
    --save_ckpt \
    --ckpt_dir $ckpt_dir \
    --num_steps 300000 \
    --warmup_steps 10000 \
    --seed 0 \
    --init_lr=0.0000866 \
    --max_lr=0.0000866 \
    --data_dir $data_dir
[tab] experiments/dynamics_grain_tok_restore.sh (shellscript)
#!/usr/bin/env bash

#SBATCH --nodes=2
#SBATCH --ntasks-per-node=8
#SBATCH --time=12:00:00
#SBATCH --cpus-per-task=1
#SBATCH --gres=gpu:8
#SBATCH --mem=100GB

source .venv/bin/activate

data_dir="${PWD}/data_arrayrecord/dummy"
ckpt_dir="${PWD}/checkpoints/causal_dynamics_openai_grain_tok_restore"
tokenizer_ckpt_dir="${PWD}/checkpoints/tokenizer_openai_grain_checkpointing"

export PYTHONUNBUFFERED=1
srun python train_dynamics.py \
    --dyna_type 'causal' \
    --log_checkpoint_interval 10 \
    --batch_size 12 \
    --tokenizer_checkpoint $tokenizer_ckpt_dir \
    --ckpt_dir $ckpt_dir \
    --num_steps 300000 \
    --warmup_steps 10000 \
    --seed 0 \
    --init_lr=0.0000866 \
    --max_lr=0.0000866 \
    --data_dir $data_dir