|
#!/bin/bash |
|
|
|
export HF_PROJECT="gpt-neo-125M-dutch-3" |
|
|
|
|
|
export VOCAB_SIZE="50257" |
|
export DATASET="${HOME}/data/nedd_wiki_news/nedd_wiki_news.py" |
|
export DATASET_CONFIG="ddwn500_nl" |
|
export DATASET_SPLIT="train" |
|
export TEXT_FIELD="text" |
|
export CONFIG_TYPE="EleutherAI/gpt-neo-125M" |
|
export MODEL_PATH="${HOME}/data/${HF_PROJECT}" |
|
|
|
|
|
python run_clm_flax.py \ |
|
--output_dir="${MODEL_PATH}" \ |
|
--model_type="gpt_neo" \ |
|
--config_name="${MODEL_PATH}" \ |
|
--tokenizer_name="${MODEL_PATH}" \ |
|
--preprocessing_num_workers="96" \ |
|
--do_train --do_eval \ |
|
--dataset_name="${DATASET}" \ |
|
--dataset_config_name="${DATASET_CONFIG}" \ |
|
--block_size="512" \ |
|
--per_device_train_batch_size="16" \ |
|
--per_device_eval_batch_size="16" \ |
|
--learning_rate="0.0024" --warmup_steps="5000" \ |
|
--adam_beta1="0.9" --adam_beta2="0.98" --weight_decay="0.01" \ |
|
--overwrite_output_dir \ |
|
--num_train_epochs="8" \ |
|
--logging_steps="500" \ |
|
--save_steps="10000" \ |
|
--eval_steps="2500" |
|
|
|
|
|
|