[Misc] Add chat-completion options to gsm8k_eval.py CLI (#60114)

Signed-off-by: Benjamin Chislett <bchislett@nvidia.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Benjamin Chislett
2026-10-06 20:13:44 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent e43db1f5e2
commit dac35c5b66
2 changed files with 139 additions and 20 deletions
+16
View File
@@ -21,6 +21,22 @@ vllm serve Qwen/Qwen2.5-1.5B-Instruct --port 8000
python tests/evals/gsm8k/gsm8k_eval.py --port 8000
```
For chat-only models, send the prompts through `/v1/chat/completions`:
```bash
python tests/evals/gsm8k/gsm8k_eval.py --port 8000 \
--use-chat-completions --max-tokens 1024 \
--chat-template-kwargs '{"enable_thinking": false}'
```
The server applies the chat template and uses its served model, so `--model` is
optional. In chat mode, `temperature` is sent only when `--temperature` is given,
so the server's default sampling applies otherwise; completions mode keeps the
default of 0. Chat mode sends no stop strings; completions mode keeps them.
`--reasoning-effort`, `--top-p`, and `--top-k` set the matching request fields
when given. With a reasoning parser, only the final answer `content` is scored.
`--save-results` records the request settings used.
## Configuration Format
Model configs in `configs/` directory use this YAML format: