Skip to content

Commit

Permalink
Fixed dummy model (EleutherAI#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
Am1n3e authored Sep 24, 2024
1 parent 9a092f3 commit d7734d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lm_eval/models/dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def loglikelihood(self, requests, disable_tqdm: bool = False):
def generate_until(self, requests, disable_tqdm: bool = False):
res = []

for ctx, _ in tqdm(requests, disable=disable_tqdm):
for request in tqdm(requests, disable=disable_tqdm):
res.append("lol")
assert ctx.strip() != ""
assert request.arguments[0].strip() != ""

return res

Expand Down

0 comments on commit d7734d1

Please sign in to comment.