Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyschoelkopf committed Feb 22, 2024
1 parent a672e72 commit 77b627f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lm_eval/models/openai_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ def sameuntil_chunks(xs, size):
max_tokens=self.max_gen_toks,
stop=until,
seed=self.seed,
**{k: v for k, v in request_args.items() if k not in ["do_sample", "max_gen_toks"]},
**{
k: v
for k, v in request_args.items()
if k not in ["do_sample", "max_gen_toks"]
},
)
for resp, (context, args_) in zip(response.choices, chunk):
s = getattr(resp, "text")
Expand Down

0 comments on commit 77b627f

Please sign in to comment.