Skip to content

Commit

Permalink
fix: resolve correctness_test issue (sgl-project#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyncs authored Aug 9, 2024
1 parent 10bca45 commit b568df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sglang/bench_latency.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def correctness_test(

# Decode
output_ids = [input_ids[i] + [next_token_ids[i]] for i in range(len(input_ids))]
for _ in range(bench_args.output_len):
for _ in range(bench_args.output_len[0]):
next_token_ids, _ = decode(next_token_ids, batch, model_runner)
for i in range(len(reqs)):
output_ids[i].append(next_token_ids[i])
Expand Down

0 comments on commit b568df5

Please sign in to comment.