mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-18 20:18:24 +06:00

improve unittests for finetuning, especially w.r.t testing frozen parameters fix freeze_embeds for T5 add streamlit setup.cfg
14 lines
344 B
Bash
Executable File
14 lines
344 B
Bash
Executable File
# Add parent directory to python path to access lightning_base.py
|
|
export PYTHONPATH="../":"${PYTHONPATH}"
|
|
|
|
python finetune.py \
|
|
--data_dir=$CNN_DIR \
|
|
--learning_rate=3e-5 \
|
|
--train_batch_size=$BS \
|
|
--eval_batch_size=$BS \
|
|
--output_dir=$OUTPUT_DIR \
|
|
--max_source_length=512 \
|
|
--val_check_interval=0.1 --n_val=200 \
|
|
--do_train --do_predict \
|
|
$@
|