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

#SBATCH --nodes=1
#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/tokenizer_openai_grain_checkpointing"

mkdir -p $ckpt_dir

export PYTHONUNBUFFERED=1
srun python train_tokenizer.py \
    --batch_size 12 \
    --ckpt_dir $ckpt_dir \
    --num_steps 300000 \
    --warmup_steps 10000 \
    --seed 0 \
    --data_dir $data_dir