|
export CORES=`grep -c ^processor /proc/cpuinfo` |
|
export XLA_PYTHON_CLIENT_PREALLOCATE=false |
|
|
|
export HF_PROJECT="long-t5-local-small-dutch-english" |
|
export DATASET="yhavinga/mc4_nl_cleaned" |
|
export DATASET_CONFIG="tiny_en_nl" |
|
export DATASET_SPLIT="train" |
|
export CONFIG_NAME="../config/config-long-t5-local-small.json" |
|
export TOKENIZER_NAME="yhavinga/t5-small-24L-ccmatrix-multi" |
|
export MODEL_PATH="${HOME}/data/${HF_PROJECT}" |
|
|
|
mkdir -p "${MODEL_PATH}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
python ../train/run_t5_mlm_flax_pmap.py \ |
|
--output_dir="${MODEL_PATH}" \ |
|
--model_type="longt5" \ |
|
--config_name="${CONFIG_NAME}" \ |
|
--tokenizer_name="${TOKENIZER_NAME}" \ |
|
--preprocessing_num_workers="${CORES}" \ |
|
--do_train --do_eval \ |
|
--dataset_name="${DATASET}" \ |
|
--dataset_config_name="${DATASET_CONFIG}" \ |
|
--max_seq_length="1024" \ |
|
--per_device_train_batch_size="64" \ |
|
--per_device_eval_batch_size="64" \ |
|
--gradient_accumulation_steps="1" \ |
|
--mean_noise_span_length="3" \ |
|
--gradient_checkpointing="false" \ |
|
--dtype="bfloat16" \ |
|
--z_loss="1e-4" \ |
|
--optim="adafactor" \ |
|
--learning_rate="0.005" \ |
|
--lr_scheduler_type="linear" \ |
|
--overwrite_output_dir \ |
|
--num_train_epochs="6" \ |
|
--logging_steps="80" \ |
|
--save_steps="4000" \ |
|
--eval_steps="4000" \ |
|
--warmup_steps="1200" \ |
|
--wandb_project="long-t5-local-small" \ |
|
--wandb_job_type="pmap" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|