Skip to content

Commit

Permalink
unify generate kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmercat committed Jan 9, 2025
1 parent 3aa4298 commit b0bd923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eval/chat_benchmarks/IFEval/eval_instruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def generate_responses(self, model: LM) -> Dict[str, Any]:
(
inputs,
{
"max_new_tokens": self.max_tokens,
"max_gen_toks": self.max_tokens,
"do_sample": False,
},
),
Expand Down
2 changes: 1 addition & 1 deletion eval/chat_benchmarks/zeroeval/eval_instruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def generate_responses(self, model: LM) -> Dict[str, Any]:
inputs,
{
"temperature": self.config.temperature,
"max_length": self.config.max_tokens,
"max_gen_toks": self.config.max_tokens,
"do_sample": self.config.do_sample,
},
),
Expand Down

0 comments on commit b0bd923

Please sign in to comment.