Skip to content

Commit ccb20db

Browse files
authored
[Bugfix] Benchmark serving script used global parameter 'args' in function 'sample_random_requests' (#6428)
1 parent a754dc2 commit ccb20db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/benchmark_serving.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def sample_random_requests(
203203
)
204204
offsets = np.random.randint(0, tokenizer.vocab_size, size=num_prompts)
205205
input_requests = []
206-
for i in range(args.num_prompts):
206+
for i in range(num_prompts):
207207
prompt = tokenizer.decode([(offsets[i] + i + j) % tokenizer.vocab_size
208208
for j in range(input_lens[i])])
209209
input_requests.append(

0 commit comments

Comments
 (0)