Skip to content

Commit ac4ed32

Browse files
committed
feat: add environment variable for controlling retry iterations
1 parent 4d909d9 commit ac4ed32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/abstractions/backends.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,8 @@ def sglang_process_batch(
584584
assert len(output) == len(sample_dicts)
585585

586586
count = 0
587-
for _ in range(20):
587+
max_iter = int(os.environ.get("SG_ITER", 20))
588+
for _ in range(max_iter):
588589
bad_indices = [
589590
k
590591
for k in range(len(output))

0 commit comments

Comments
 (0)