Skip to content

Commit be3b54a

Browse files
iterate over list instead of indeces
Co-authored-by: Sophie du Couédic <[email protected]> Signed-off-by: Yannick Schnider <[email protected]>
1 parent 243d571 commit be3b54a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e/test_spyre_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ def test_batch_handling(model: str, backend: str, cb: int,
163163
max_new_tokens = [5, 20, 10, 5]
164164

165165
vllm_sampling_params = [
166-
SamplingParams(max_tokens=max_new_tokens[i],
167-
min_tokens=max_new_tokens[i],
166+
SamplingParams(max_tokens=max_tokens_i,
167+
min_tokens=max_tokens_i,
168168
temperature=0,
169169
ignore_eos=True,
170-
logprobs=0) for i in range(len(max_new_tokens))
170+
logprobs=0) for max_tokens_i in max_new_tokens)
171171
]
172172

173173
kwargs = {

0 commit comments

Comments
 (0)