This commit is contained in:
Xi Yan 2024-11-07 18:43:21 -08:00
parent 6525b43906
commit 4ae1d37c2f

View file

@ -41,7 +41,7 @@ class BenchmarkEvalTaskConfig(BaseModel):
type: Literal["benchmark"] = "benchmark" type: Literal["benchmark"] = "benchmark"
eval_candidate: EvalCandidate eval_candidate: EvalCandidate
num_examples: Optional[int] = Field( num_examples: Optional[int] = Field(
description="Number of examples to evaluate (useful for quick debugging), if not provided, all examples in the dataset will be evaluated", description="Number of examples to evaluate (useful for testing), if not provided, all examples in the dataset will be evaluated",
default=None, default=None,
) )
@ -55,7 +55,7 @@ class AppEvalTaskConfig(BaseModel):
default_factory=dict, default_factory=dict,
) )
num_examples: Optional[int] = Field( num_examples: Optional[int] = Field(
description="Number of examples to evaluate (useful for quick debugging), if not provided, all examples in the dataset will be evaluated", description="Number of examples to evaluate (useful for testing), if not provided, all examples in the dataset will be evaluated",
default=None, default=None,
) )
# we could optinally add any specific dataset config here # we could optinally add any specific dataset config here