Skip to content

Commit 2198540

Browse files
Update scripts/server-bench.py
Co-authored-by: Sigbjørn Skjæret <[email protected]>
1 parent a2d4258 commit 2198540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/server-bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def benchmark(path_server: str, path_log: Optional[str], prompt_source: str, n_p
189189
random.seed(3 * (seed_offset + 1000 * i) + 1)
190190
data.append({
191191
"session": session, "server_address": server_address, "prompt": p, "synthetic_prompt": synthetic_prompts,
192-
"n_predict": random.randint(n_predict_min, n_predict), "seed": 3 * (seed_offset + 1000 * i) + 2 if seed_offset >= 0 else -1})
192+
"n_predict": random.randint(n_predict_min, n_predict), "seed": (3 * (seed_offset + 1000 * i) + 2) if seed_offset >= 0 else -1})
193193

194194
if not synthetic_prompts:
195195
logger.info("Getting the prompt lengths...")

0 commit comments

Comments
 (0)