Skip to content

Commit 5790c8d

Browse files
authored
bench: server add stop word for PHI-2 (#6916)
1 parent 46e12c4 commit 5790c8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/server/bench/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ export default function () {
9090
"model": model,
9191
"stream": true,
9292
"seed": 42,
93-
"max_tokens": max_tokens
93+
"max_tokens": max_tokens,
94+
"stop": ["<|im_end|>"] // This is temporary for phi-2 base (i.e. not instructed) since the server expects that the model always to emit BOS
9495
}
9596

9697
const params = {method: 'POST', body: JSON.stringify(payload)};

0 commit comments

Comments
 (0)