"utils/check_docstrings.py" did not exist on "122b2657f8f36dbfc8e742ca5ec13fa69138ec64"
Unverified Commit 2dfaf2f2 authored by Thomas Wolf's avatar Thomas Wolf Committed by GitHub
Browse files

Merge pull request #261 from deepset-ai/rm_arg_lm_finetuning

removing unused argument eval_batch_size from LM finetuning #256
parents 58f0a274 9aebc711
......@@ -432,10 +432,6 @@ def main():
default=32,
type=int,
help="Total batch size for training.")
parser.add_argument("--eval_batch_size",
default=8,
type=int,
help="Total batch size for eval.")
parser.add_argument("--learning_rate",
default=3e-5,
type=float,
......@@ -505,8 +501,8 @@ def main():
if n_gpu > 0:
torch.cuda.manual_seed_all(args.seed)
if not args.do_train and not args.do_eval:
raise ValueError("At least one of `do_train` or `do_eval` must be True.")
if not args.do_train:
raise ValueError("Training is currently the only implemented execution option. Please set `do_train`.")
if os.path.exists(args.output_dir) and os.listdir(args.output_dir):
raise ValueError("Output directory ({}) already exists and is not empty.".format(args.output_dir))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment