Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ inputs:
enum:
- epoch
- steps
- "no"
- disable
description: The evaluation strategy to adopt during training. If set to "steps", either the `evaluation_steps_interval` or `eval_steps` needs to be specified, which helps to determine the step at which the model evaluation needs to be computed else evaluation happens at end of each epoch.

evaluation_steps_interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ inputs:
enum:
- epoch
- steps
- "no"
- disable
description: The evaluation strategy to adopt during training. If set to "steps", either the `evaluation_steps_interval` or `eval_steps` needs to be specified, which helps to determine the step at which the model evaluation needs to be computed else evaluation happens at end of each epoch.

evaluation_steps_interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ def get_parser():
type=str,
default="epoch",
choices=(
"no",
"disable",
"steps",
"epoch",
),
Expand Down Expand Up @@ -1275,6 +1275,10 @@ def finetune(args: Namespace):

validate_learning_rate(args)

# Fix: Ev2 rollout fails when using no as string in the spec.
if args.evaluation_strategy == 'disable':
args.evaluation_strategy = 'no'

if not hasattr(args, "eval_strategy"):
args.eval_strategy = args.evaluation_strategy
# validate early stop settings
Expand Down
Loading