bench: server add stop word for PHI-2 (#6916)

This commit is contained in:
Pierrick Hymbert 2024-04-26 09:26:16 +02:00 committed by GitHub
parent 46e12c4692
commit 5790c8dac1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,7 +90,8 @@ export default function () {
"model": model,
"stream": true,
"seed": 42,
"max_tokens": max_tokens
"max_tokens": max_tokens,
"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
}
const params = {method: 'POST', body: JSON.stringify(payload)};