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
norm
vllm
Commits
20044cab
Unverified
Commit
20044cab
authored
Aug 02, 2023
by
Lily Liu
Committed by
GitHub
Aug 02, 2023
Browse files
Fix log message in scheduler (#652)
parent
64f23c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vllm/core/scheduler.py
vllm/core/scheduler.py
+5
-5
No files found.
vllm/core/scheduler.py
View file @
20044cab
...
@@ -190,13 +190,13 @@ class Scheduler:
...
@@ -190,13 +190,13 @@ class Scheduler:
break
break
num_prompt_tokens
=
seq_group
.
get_seqs
()[
0
].
get_len
()
num_prompt_tokens
=
seq_group
.
get_seqs
()[
0
].
get_len
()
if
num_prompt_tokens
>
min
(
prompt_limit
=
min
(
self
.
scheduler_config
.
max_model_len
,
self
.
scheduler_config
.
max_model_len
,
self
.
scheduler_config
.
max_num_batched_tokens
):
self
.
scheduler_config
.
max_num_batched_tokens
)
if
num_prompt_tokens
>
prompt_limit
:
logger
.
warning
(
logger
.
warning
(
f
"Input prompt (
{
num_prompt_tokens
}
tokens) is too long"
f
"Input prompt (
{
num_prompt_tokens
}
tokens) is too long"
" and exceeds limit of "
f
" and exceeds limit of
{
prompt_limit
}
"
)
f
"
{
self
.
scheduler_config
.
max_model_len
}
"
)
for
seq
in
seq_group
.
get_seqs
():
for
seq
in
seq_group
.
get_seqs
():
seq
.
status
=
SequenceStatus
.
FINISHED_IGNORED
seq
.
status
=
SequenceStatus
.
FINISHED_IGNORED
ignored_seq_groups
.
append
(
seq_group
)
ignored_seq_groups
.
append
(
seq_group
)
...
...
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