Skip to content

Commit

Permalink
Fix the bug (#216)
Browse files Browse the repository at this point in the history
Co-authored-by: Clémentine Fourrier <[email protected]>
  • Loading branch information
sadra-barikbin and clefourrier authored Jul 8, 2024
1 parent 6064695 commit 0528f29
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 0528f29

Please sign in to comment.