Skip to content

Commit

Permalink
[vllm] standardize input parameters (deepjavalibrary#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Nov 9, 2023
1 parent 31d7d92 commit 9015c08
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def inference(self, input_data, parameters):
for request in new_requests:
request_id = random_uuid()
request.parameters.pop('seed', None)
request.parameters.pop('do_sample', None)
if "max_new_tokens" in request.parameters.keys():
request.parameters["max_tokens"] = request.parameters.pop(
"max_new_tokens")
Expand Down

0 comments on commit 9015c08

Please sign in to comment.