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
5aa4a015
Unverified
Commit
5aa4a015
authored
Jun 20, 2025
by
Brayden Zhong
Committed by
GitHub
Jun 19, 2025
Browse files
[Benchmark] Fix `Value of type "SampleRequest" is not indexable` (#18032)
Signed-off-by:
Brayden Zhong
<
b8zhong@uwaterloo.ca
>
parent
b6bad3d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
benchmarks/benchmark_throughput.py
benchmarks/benchmark_throughput.py
+1
-1
vllm/benchmarks/throughput.py
vllm/benchmarks/throughput.py
+1
-1
No files found.
benchmarks/benchmark_throughput.py
View file @
5aa4a015
...
@@ -97,7 +97,7 @@ def run_vllm(
...
@@ -97,7 +97,7 @@ def run_vllm(
assert
lora_requests
is
None
,
"BeamSearch API does not support LoRA"
assert
lora_requests
is
None
,
"BeamSearch API does not support LoRA"
prompts
=
[
request
.
prompt
for
request
in
requests
]
prompts
=
[
request
.
prompt
for
request
in
requests
]
# output_len should be the same for all requests.
# output_len should be the same for all requests.
output_len
=
requests
[
0
]
[
2
]
output_len
=
requests
[
0
]
.
expected_output_len
for
request
in
requests
:
for
request
in
requests
:
assert
request
.
expected_output_len
==
output_len
assert
request
.
expected_output_len
==
output_len
start
=
time
.
perf_counter
()
start
=
time
.
perf_counter
()
...
...
vllm/benchmarks/throughput.py
View file @
5aa4a015
...
@@ -84,7 +84,7 @@ def run_vllm(
...
@@ -84,7 +84,7 @@ def run_vllm(
assert
lora_requests
is
None
,
"BeamSearch API does not support LoRA"
assert
lora_requests
is
None
,
"BeamSearch API does not support LoRA"
prompts
=
[
request
.
prompt
for
request
in
requests
]
prompts
=
[
request
.
prompt
for
request
in
requests
]
# output_len should be the same for all requests.
# output_len should be the same for all requests.
output_len
=
requests
[
0
]
[
2
]
output_len
=
requests
[
0
]
.
expected_output_len
for
request
in
requests
:
for
request
in
requests
:
assert
request
.
expected_output_len
==
output_len
assert
request
.
expected_output_len
==
output_len
start
=
time
.
perf_counter
()
start
=
time
.
perf_counter
()
...
...
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