Skip to content

Commit

Permalink
Fix the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sadra-barikbin committed Jul 7, 2024
1 parent 843a0f8 commit 663a7ae
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lighteval/tasks/lighteval_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 663a7ae

Please sign in to comment.