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
zhaoyu6
sglang
Commits
8dc84da0
"git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "acd0deb1e29c3555ca7ab32e25b96690bcb5e079"
Unverified
Commit
8dc84da0
authored
Nov 07, 2024
by
Lianmin Zheng
Committed by
GitHub
Nov 07, 2024
Browse files
Remove the useless to_srt_kwargs (#1955)
parent
f16eb15d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
python/sglang/srt/sampling/sampling_params.py
python/sglang/srt/sampling/sampling_params.py
+0
-14
No files found.
python/sglang/srt/sampling/sampling_params.py
View file @
8dc84da0
...
@@ -133,17 +133,3 @@ class SamplingParams:
...
@@ -133,17 +133,3 @@ class SamplingParams:
else
:
else
:
stop_str_max_len
=
max
(
stop_str_max_len
,
len
(
stop_str
))
stop_str_max_len
=
max
(
stop_str_max_len
,
len
(
stop_str
))
self
.
stop_str_max_len
=
stop_str_max_len
self
.
stop_str_max_len
=
stop_str_max_len
def
to_srt_kwargs
(
self
):
return
{
"max_new_tokens"
:
self
.
max_new_tokens
,
"stop"
:
self
.
stop_strs
,
"stop_token_ids"
:
list
(
self
.
stop_token_ids
),
"temperature"
:
self
.
temperature
,
"top_p"
:
self
.
top_p
,
"top_k"
:
self
.
top_k
,
"frequency_penalty"
:
self
.
frequency_penalty
,
"presence_penalty"
:
self
.
presence_penalty
,
"ignore_eos"
:
self
.
ignore_eos
,
"regex"
:
self
.
regex
,
}
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