Skip to content

Commit

Permalink
enum for early_stopping parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin committed Aug 29, 2024
1 parent 1c79694 commit 649facb
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/tasks/src/tasks/common-definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,9 @@
"description": "Whether to use sampling instead of greedy decoding when generating new tokens."
},
"early_stopping": {
"type": ["boolean", "string"],
"description": "Controls the stopping condition for beam-based methods.",
"oneOf": [
{
"type": "boolean"
},
{
"const": "never",
"type": "string"
}
]
"enum": ["never", true, false]
},
"num_beams": {
"type": "integer",
Expand Down

0 comments on commit 649facb

Please sign in to comment.