Skip to content

Commit

Permalink
Merge pull request #843 from baberabb/master_bugfix
Browse files Browse the repository at this point in the history
[bugfix] openai
  • Loading branch information
haileyschoelkopf authored Sep 11, 2023
2 parents 3326c54 + 51f4994 commit 00209e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lm_eval/models/gpt3.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,13 @@ def sameuntil_chunks(xs, size):
context_enc = self.tok_encode(context)
inp = context_enc[-(self.max_length - self.max_gen_toks) :]
inps.append(inp)

response = oa_completion(
engine=self.engine,
prompt=inps,
max_tokens=self.max_gen_toks,
temperature=0.0,
logprobs=10,
stop=until,
stop=until["until"],
)

for resp, (context, until_) in zip(response.choices, chunk):
Expand Down

0 comments on commit 00209e1

Please sign in to comment.