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
4e23f2ad
Commit
4e23f2ad
authored
Nov 19, 2024
by
王敏
Browse files
[fix]解决单测test_encode报错问题
parent
a715dfbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
vllm/engine/llm_engine.py
vllm/engine/llm_engine.py
+9
-8
No files found.
vllm/engine/llm_engine.py
View file @
4e23f2ad
...
...
@@ -989,6 +989,7 @@ class LLMEngine:
output
=
[
outputs_by_sequence_group
[
0
][
i
]]
# tree style speculative decoding may generate empty output in first step
if
outputs
and
isinstance
(
output
[
0
],
SamplerOutput
):
samples
=
[
o
.
samples
[
0
]
for
o
in
output
]
valid_samples
=
[
sample
for
sample
in
samples
...
...
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