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
8ca81bb0
Unverified
Commit
8ca81bb0
authored
Jun 21, 2025
by
Rabin Adhikari
Committed by
GitHub
Jun 20, 2025
Browse files
Fix: Check the type of params to be a Sequence not list. (#19910)
Signed-off-by:
Rabin Adhikari
<
rabin.adk1@gmail.com
>
parent
e773a9e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/entrypoints/llm.py
vllm/entrypoints/llm.py
+3
-3
No files found.
vllm/entrypoints/llm.py
View file @
8ca81bb0
...
@@ -1450,15 +1450,15 @@ class LLM:
...
@@ -1450,15 +1450,15 @@ class LLM:
prompts
=
[
prompts
]
prompts
=
[
prompts
]
num_requests
=
len
(
prompts
)
num_requests
=
len
(
prompts
)
if
isinstance
(
params
,
list
)
and
len
(
params
)
!=
num_requests
:
if
isinstance
(
params
,
Sequence
)
and
len
(
params
)
!=
num_requests
:
raise
ValueError
(
"The lengths of prompts and params "
raise
ValueError
(
"The lengths of prompts and params "
"must be the same."
)
"must be the same."
)
if
isinstance
(
lora_request
,
if
isinstance
(
lora_request
,
list
)
and
len
(
lora_request
)
!=
num_requests
:
Sequence
)
and
len
(
lora_request
)
!=
num_requests
:
raise
ValueError
(
"The lengths of prompts and lora_request "
raise
ValueError
(
"The lengths of prompts and lora_request "
"must be the same."
)
"must be the same."
)
for
sp
in
params
if
isinstance
(
params
,
list
)
else
(
params
,
):
for
sp
in
params
if
isinstance
(
params
,
Sequence
)
else
(
params
,
):
if
isinstance
(
sp
,
SamplingParams
):
if
isinstance
(
sp
,
SamplingParams
):
self
.
_add_guided_params
(
sp
,
guided_options
)
self
.
_add_guided_params
(
sp
,
guided_options
)
...
...
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