Spaces:
Sleeping
Sleeping
File size: 575 Bytes
249c88f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from pydantic import BaseModel
from typing import List, Optional, Union, Any
class LMHarnessTaskRequest(BaseModel):
model: str
model_args: Optional[Union[str, dict]] = None
tasks: Optional[List[Union[str, dict, object]]] = None
num_fewshot: Optional[int] = None
batch_size: Optional[int] = None
device: Optional[str] = None
limit: Optional[Union[int, float]] = None
write_out: bool = False # Whether to write out an example document and model input, for checking task integrity
class LMHarnessTaskResponse(BaseModel):
results: dict[Any] |