@@ -536,10 +536,12 @@ def _add_logging_args(parser):
536
536
help = 'Project name for Weights & Biases.' )
537
537
group .add_argument ('--wandb_entity' , type = str , default = "meditron" ,
538
538
help = 'Entity/team name for Weights & Biases.' )
539
+ group .add_argument ('--wandb_name' , type = str , default = None ,
540
+ help = 'Name for this run, alternatively can set `WANDB_NAME`.' )
539
541
group .add_argument ('--wandb_id' ,type = str ,default = None ,
540
542
help = "Unique ID to identify this run, alternatively can set `WANDB_RUN_ID`." )
541
- group .add_argument ('--wandb_resume' ,action = "store_true " ,
542
- help = "If set, we resume logging for the id given instead of launching a new run (errors if id given and resume=False )." )
543
+ group .add_argument ('--wandb_resume' ,type = str , default = "allow " ,
544
+ help = "If set, we resume logging for the id given instead of launching a new run (errors if id given and resume=None )." )
543
545
group .add_argument ("--wandb_api_key" ,type = str ,default = None ,
544
546
help = "API key for Weights & Biases, needs to be set if not set in environment variable `WANDB_API_KEY`." )
545
547
group .add_argument ("--metrics" , default = [], nargs = "+" , choices = list (METRICS ) + ["all" ],
@@ -878,6 +880,8 @@ def _add_distributed_args(parser):
878
880
879
881
def _add_validation_args (parser ):
880
882
group = parser .add_argument_group (title = 'validation' )
883
+ group .add_argument ('--eval_only' , action = 'store_true' ,
884
+ help = 'Run evaluation only.' )
881
885
group .add_argument ('--eval_iters' , type = int , default = 100 ,
882
886
help = 'Number of iterations to run for evaluation'
883
887
'validation/test for.' )
0 commit comments