Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
c9ff9e6f
Unverified
Commit
c9ff9e6f
authored
Sep 18, 2025
by
William Song
Committed by
GitHub
Sep 18, 2025
Browse files
[Docs] add the parallel sampling usage in LLMEngine and AsyncLLM (#24222)
parent
eaffe448
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vllm/sampling_params.py
vllm/sampling_params.py
+7
-1
No files found.
vllm/sampling_params.py
View file @
c9ff9e6f
...
...
@@ -81,7 +81,13 @@ class SamplingParams(
"""
n
:
int
=
1
"""Number of output sequences to return for the given prompt."""
"""Number of outputs to return for the given prompt request.
NOTE:
`AsyncLLM` streams outputs by default. When `n > 1`, all `n` outputs
are generated and streamed cumulatively per request. To see all `n`
outputs upon completion, use `output_kind=RequestOutputKind.FINAL_ONLY`
in `SamplingParams`."""
best_of
:
Optional
[
int
]
=
None
"""Number of output sequences that are generated from the prompt. From
these `best_of` sequences, the top `n` sequences are returned. `best_of`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment