Skip to content

Commit

Permalink
remove default do_sample
Browse files Browse the repository at this point in the history
  • Loading branch information
wyx authored and wyx committed Mar 13, 2023
1 parent d3f0c31 commit 7fd04bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openicl/icl_inferencer/icl_gen_inferencer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def __init__(self,
model_config: Optional[PretrainedConfig] = None,
batch_size: Optional[int] = 1,
gen_field_replace_token: Optional[str] = '',
generation_kwargs={"max_new_tokens": 100,
"do_sample": False},
generation_kwargs={"max_new_tokens": 100},
accelerator: Optional[Accelerator] = None,
output_json_filepath: Optional[str] = "./icl_inference_output",
output_json_filename: Optional[str] = "predictions",
Expand Down

0 comments on commit 7fd04bb

Please sign in to comment.