Skip to content

Commit f6f4e71

Browse files
b8zhongfhl2000
authored andcommitted
[Benchmark] Fix Value of type "SampleRequest" is not indexable (vllm-project#18032)
Signed-off-by: Brayden Zhong <[email protected]> Signed-off-by: fhl <[email protected]>
1 parent 0be8df3 commit f6f4e71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmarks/benchmark_throughput.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def run_vllm(
9797
assert lora_requests is None, "BeamSearch API does not support LoRA"
9898
prompts = [request.prompt for request in requests]
9999
# output_len should be the same for all requests.
100-
output_len = requests[0][2]
100+
output_len = requests[0].expected_output_len
101101
for request in requests:
102102
assert request.expected_output_len == output_len
103103
start = time.perf_counter()

vllm/benchmarks/throughput.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def run_vllm(
8484
assert lora_requests is None, "BeamSearch API does not support LoRA"
8585
prompts = [request.prompt for request in requests]
8686
# output_len should be the same for all requests.
87-
output_len = requests[0][2]
87+
output_len = requests[0].expected_output_len
8888
for request in requests:
8989
assert request.expected_output_len == output_len
9090
start = time.perf_counter()

0 commit comments

Comments
 (0)