Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
ad46550d
Unverified
Commit
ad46550d
authored
Mar 13, 2025
by
yang_zcybb
Committed by
GitHub
Mar 12, 2025
Browse files
[Doc] Fix typo in backend/sampling_params (#3835)
Co-authored-by:
yangzhice.124
<
yangzhice.124@bytedance.com
>
parent
14344caa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/backend/sampling_params.md
docs/backend/sampling_params.md
+1
-1
No files found.
docs/backend/sampling_params.md
View file @
ad46550d
...
@@ -8,7 +8,7 @@ If you want a high-level endpoint that can automatically handle chat templates,
...
@@ -8,7 +8,7 @@ If you want a high-level endpoint that can automatically handle chat templates,
The
`/generate`
endpoint accepts the following parameters in JSON format. For in detail usage see the
[
native api doc
](
./native_api.ipynb
)
.
The
`/generate`
endpoint accepts the following parameters in JSON format. For in detail usage see the
[
native api doc
](
./native_api.ipynb
)
.
*
`
promp
t: Optional[Union[List[str], str]] = None`
The input prompt. Can be a single prompt or a batch of prompts.
*
`
tex
t: Optional[Union[List[str], str]] = None`
The input prompt. Can be a single prompt or a batch of prompts.
*
`input_ids: Optional[Union[List[List[int]], List[int]]] = None`
Alternative to
`text`
. Specify the input as token IDs instead of text.
*
`input_ids: Optional[Union[List[List[int]], List[int]]] = None`
Alternative to
`text`
. Specify the input as token IDs instead of text.
*
`sampling_params: Optional[Union[List[Dict], Dict]] = None`
The sampling parameters as described in the sections below.
*
`sampling_params: Optional[Union[List[Dict], Dict]] = None`
The sampling parameters as described in the sections below.
*
`return_logprob: Optional[Union[List[bool], bool]] = None`
Whether to return log probabilities for tokens.
*
`return_logprob: Optional[Union[List[bool], bool]] = None`
Whether to return log probabilities for tokens.
...
...
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