mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-29 10:02:20 +00:00
Merge branch 'main' into add-watsonx-inference-adapter
This commit is contained in:
commit
4b53171139
6 changed files with 79 additions and 4 deletions
|
|
@ -147,6 +147,9 @@ def get_sampling_options(params: SamplingParams) -> dict:
|
|||
if params.repetition_penalty is not None and params.repetition_penalty != 1.0:
|
||||
options["repeat_penalty"] = params.repetition_penalty
|
||||
|
||||
if params.stop is not None:
|
||||
options["stop"] = params.stop
|
||||
|
||||
return options
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue