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(): ...@@ -432,10 +432,6 @@ def main():
default=32, default=32,
type=int, type=int,
help="Total batch size for training.") 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", parser.add_argument("--learning_rate",
default=3e-5, default=3e-5,
type=float, type=float,
...@@ -505,8 +501,8 @@ def main(): ...@@ -505,8 +501,8 @@ def main():
if n_gpu > 0: if n_gpu > 0:
torch.cuda.manual_seed_all(args.seed) torch.cuda.manual_seed_all(args.seed)
if not args.do_train and not args.do_eval: if not args.do_train:
raise ValueError("At least one of `do_train` or `do_eval` must be True.") 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): 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)) 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