Skip to content

Commit

Permalink
Support min_tokens parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dyastremsky committed Apr 5, 2024
1 parent c1c88fa commit 25511c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def get_sampling_params_dict(self, params_json):
if k in params_dict:
params_dict[k] = float(params_dict[k])

int_keys = ["best_of", "max_tokens", "n", "top_k"]
int_keys = ["best_of", "max_tokens", "min_tokens", "n", "top_k"]
for k in int_keys:
if k in params_dict:
params_dict[k] = int(params_dict[k])
Expand Down

0 comments on commit 25511c3

Please sign in to comment.