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
17536e7e
"git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "286ca71e1a521ef5f24b3956227f1398140188a8"
Unverified
Commit
17536e7e
authored
Oct 22, 2024
by
Byron Hsu
Committed by
GitHub
Oct 23, 2024
Browse files
Fix edge case for truncated (#1747)
parent
1f26e8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+1
-1
No files found.
python/sglang/srt/managers/scheduler.py
View file @
17536e7e
...
@@ -416,7 +416,7 @@ class Scheduler:
...
@@ -416,7 +416,7 @@ class Scheduler:
)
)
# Truncate prompts that are too long
# Truncate prompts that are too long
if
len
(
req
.
origin_input_ids
)
>
=
self
.
max_req_input_len
:
if
len
(
req
.
origin_input_ids
)
>
self
.
max_req_input_len
:
logger
.
warning
(
logger
.
warning
(
"Request length is longer than the KV cache pool size or "
"Request length is longer than the KV cache pool size or "
"the max context length. Truncated!!!"
"the max context length. Truncated!!!"
...
...
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