Skip to content

Commit

Permalink
Remove : as EoS token from GSM8K task
Browse files Browse the repository at this point in the history
  • Loading branch information
arkapal3 committed May 31, 2024
1 parent b281b09 commit c5269f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lm_eval/tasks/gsm8k.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def construct_requests(self, doc, ctx):
"""
# NOTE: The paper implements "verifiers" that assign a score to multiple
# solutions and output the highest ranked solution.
completion = rf.greedy_until(ctx, {"until": [":", "Question:", "Question"]})
completion = rf.greedy_until(ctx, {"until": ["Question:", "Question"]})
return completion

def _extract_answer(self, completion):
Expand Down

0 comments on commit c5269f4

Please sign in to comment.