2020-06-18 01:51:34 +08:00
|
|
|
# Add parent directory to python path to access lightning_base.py
|
|
|
|
export PYTHONPATH="../":"${PYTHONPATH}"
|
|
|
|
|
2020-06-25 11:58:11 +08:00
|
|
|
# the proper usage is documented in the README, you need to specify data_dir, output_dir and model_name_or_path
|
2020-08-02 02:51:07 +08:00
|
|
|
# run ./finetune.sh --help to see all the possible options
|
2020-06-18 01:51:34 +08:00
|
|
|
python finetune.py \
|
|
|
|
--learning_rate=3e-5 \
|
|
|
|
--fp16 \
|
|
|
|
--gpus 1 \
|
|
|
|
--do_train \
|
|
|
|
--do_predict \
|
|
|
|
--n_val 1000 \
|
|
|
|
--val_check_interval 0.1 \
|
2020-08-17 01:36:38 +08:00
|
|
|
"$@"
|