mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 11:54:52 +00:00
Update client.py : Adding missing arg "best_of" in generate_stream function
Missing the "best_of" arg in generate_stream function
This commit is contained in:
parent
e943a294bc
commit
5cdd242fec
@ -152,6 +152,7 @@ class Client:
|
||||
def generate_stream(
|
||||
self,
|
||||
prompt: str,
|
||||
best_of: Optional[int] = None,
|
||||
do_sample: bool = False,
|
||||
max_new_tokens: int = 20,
|
||||
repetition_penalty: Optional[float] = None,
|
||||
@ -204,7 +205,7 @@ class Client:
|
||||
"""
|
||||
# Validate parameters
|
||||
parameters = Parameters(
|
||||
best_of=None,
|
||||
best_of=best_of,
|
||||
details=True,
|
||||
decoder_input_details=False,
|
||||
do_sample=do_sample,
|
||||
|
Loading…
Reference in New Issue
Block a user