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
18b9f67c
Commit
18b9f67c
authored
Mar 24, 2025
by
guanyu1
Browse files
seq.data._effective_length+=1
parent
6d0996e9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
benchmarks/benchmark_throughput.py
benchmarks/benchmark_throughput.py
+1
-1
vllm/engine/llm_engine.py
vllm/engine/llm_engine.py
+4
-4
No files found.
benchmarks/benchmark_throughput.py
View file @
18b9f67c
...
...
@@ -179,7 +179,7 @@ def run_vllm(
sampling_params
:
List
[
SamplingParams
]
=
[]
for
request
in
requests
:
prompts
.
append
(
TextPrompt
(
prompt
=
"hellowor
l
d"
,
TextPrompt
(
prompt
=
"helloword"
,
multi_modal_data
=
request
.
multi_modal_data
))
sampling_params
.
append
(
SamplingParams
(
...
...
vllm/engine/llm_engine.py
View file @
18b9f67c
...
...
@@ -1514,9 +1514,9 @@ class LLMEngine:
for
token_id
,
seq_id
in
zip
(
sample_out_list
,
sample_out_ids
):
if
seq
.
seq_id
==
seq_id
:
sample
.
output_token
=
token_id
[
0
]
seq
.
data
.
_effective_length
+=
1
seq
.
fix_last_token_id
(
sample
.
output_token
)
self
.
fix_process_model_output
(
ctx_output_queue
,
ctx_request_outputs
,
ctx_multi_step_stream_outputs
)
self
.
fix_process_model_output
(
ctx_output_queue
,
ctx_request_outputs
,
ctx_multi_step_stream_outputs
)
break
def
_advance_to_next_step
(
...
...
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