mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-05 13:50:13 +06:00

* Reorganize example folder * Continue reorganization * Change requirements for tests * Final cleanup * Finish regroup with tests all passing * Copyright * Requirements and readme * Make a full link for the documentation * Address review comments * Apply suggestions from code review Co-authored-by: Lysandre Debut <lysandre@huggingface.co> * Add symlink * Reorg again * Apply suggestions from code review Co-authored-by: Thomas Wolf <thomwolf@users.noreply.github.com> * Adapt title * Update to new strucutre * Remove test * Update READMEs Co-authored-by: Lysandre Debut <lysandre@huggingface.co> Co-authored-by: Thomas Wolf <thomwolf@users.noreply.github.com>
15 lines
371 B
Bash
Executable File
15 lines
371 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 \
|
|
--max_target_length=56 \
|
|
--val_check_interval=0.1 --n_val=200 \
|
|
--do_train --do_predict \
|
|
"$@"
|