[None][doc] Explain benchmark output token length - #17249
Conversation
Signed-off-by: zq <zhouquan1511@163.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe benchmark guide adds an SPDX license header and documents maximum output lengths, early termination, actual generated-token metrics, ChangesBenchmark documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/source/commands/trtllm-serve/run-benchmark-with-trtllm-serve.md`:
- Around line 162-165: Update the documentation paragraph around
benchmark_serving.py and backend_request_func.py to state that ignore_eos is
passed through RequestFuncInput and translated by the TRT-LLM request path into
min_length = output_len, rather than forwarded as a literal ignore_eos request
field.
- Around line 152-169: Add the repository’s standard NVIDIA copyright header at
the beginning of run-benchmark-with-trtllm-serve.md, within the first 12 lines,
and set its copyright year to 2026. Leave the existing benchmark documentation
unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: a538ef78-c0df-4f45-acaf-adb255683508
📒 Files selected for processing (1)
docs/source/commands/trtllm-serve/run-benchmark-with-trtllm-serve.md
brnguyen2
left a comment
There was a problem hiding this comment.
Reads well and the --ignore-eos claim matches the example at line 105. Two placement notes:
The AIPerf example (examples/serve/aiperf_client.sh, quoted at line 395) sets --output-tokens-mean 128 with no ignore-EOS input, so it's the case most likely to show short outputs — but the new note is ~200 lines above it. Consider a one-line pointer in the AIPerf section, or adding the equivalent --extra-inputs ignore_eos:true to that example script if AIPerf supports it.
| budget, not a guarantee that every request will generate exactly that many | ||
| tokens. A request can finish earlier if the model emits an EOS token, reaches a | ||
| stop condition, or if the benchmark client/server applies stop-token handling. | ||
| In that case, metrics such as `Output Sequence Length (tokens)` or `Total |
There was a problem hiding this comment.
Output Sequence Length (tokens) doesn't appear in any TensorRT-LLM benchmark output — benchmark_serving.py prints Total generated tokens (see the sample output at line 126), and grep finds no such label under tensorrt_llm/. That name is an AIPerf/GenAI-Perf metric. Either drop it here or attribute it explicitly to the external clients.
Signed-off-by: zq <zhouquan1511@163.com>
|
Thanks for the review — I pushed Changes made:
Validation:
|
Signed-off-by: zq <zhouquan1511@163.com>
|
Thanks for the review — I pushed Changes made:
Validation:
|
Summary
--ignore-eos/ equivalent ignore-EOS settings when supported.Test Plan
git diff --checkpython -m sphinx --versionfails locally withNo module named sphinx)Refs #8655
Dev Engineer Review
--ignore-eoshandling and the TensorRT-LLMmin_length = output_lentranslation.git diff --checkpass.QA Engineer Review
No test changes.