Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/lighteval/tasks/lighteval_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,12 +602,6 @@ def create_requests_from_tasks( # noqa: C901
doc.num_effective_few_shots = num_effective_few_shots
doc.num_asked_few_shots = num_fewshot
doc.ctx = ctx
if use_chat_template:
doc.choices = [
lm.tokenizer.apply_chat_template([{"role": "assistant", "content": choice}])
for choice in doc.choices
]

# Constructing the requests
docs[TaskExampleId(cur_task_name, doc_id_seed)] = doc
reqs = task.construct_requests(doc, ctx, doc_id_seed, cur_task_name)
Expand Down