mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-05 22:00:09 +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>
12 lines
342 B
Bash
Executable File
12 lines
342 B
Bash
Executable File
# the proper usage is documented in the README, you need to specify data_dir, output_dir and model_name_or_path
|
|
# run ./finetune.sh --help to see all the possible options
|
|
python finetune.py \
|
|
--learning_rate=3e-5 \
|
|
--fp16 \
|
|
--gpus 1 \
|
|
--do_train \
|
|
--do_predict \
|
|
--n_val 1000 \
|
|
--val_check_interval 0.1 \
|
|
"$@"
|