diff --git a/src/lighteval/tasks/lighteval_task.py b/src/lighteval/tasks/lighteval_task.py index 33934caa..fa70b61d 100644 --- a/src/lighteval/tasks/lighteval_task.py +++ b/src/lighteval/tasks/lighteval_task.py @@ -538,6 +538,18 @@ def construct_requests( generation_size=self.generation_size, ) ] + if self.has_metric_category[MetricCategory.LLM_AS_JUDGE]: + requests[RequestType.GREEDY_UNTIL] += [ + GreedyUntilRequest( + task_name=current_task_name, + example_index=document_id_seed, + request_index=0, + context=context, + stop_sequence=self.stop_sequence, + generation_size=self.generation_size, + num_samples=1, + ) + ] return requests