Represents a single inference request for benchmarking.
| 40 | |
| 41 | @dataclass |
| 42 | class SampleRequest: |
| 43 | """ |
| 44 | Represents a single inference request for benchmarking. |
| 45 | """ |
| 46 | |
| 47 | no: int |
| 48 | prompt: Union[str, Any] |
| 49 | history_QA: Union[str, Any] |
| 50 | json_data: Optional[dict] |
| 51 | prompt_len: int |
| 52 | expected_output_len: int |
| 53 | |
| 54 | |
| 55 | class BenchmarkDataset(ABC): |
no outgoing calls