[Bug]: trtllm-bench latency silently drops follow-up turns
Maintainers usually reply within 1 day
@JunkaiWang-TheoPhy is already working on this.
Since Dec 2, 2026.
- #23249 by @JunkaiWang-TheoPhy — open
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- machine-learning, performance
Research direction
Trace the production latency command callback to its async_benchmark calls and compare its tokenizer handling with the throughput command. Start by reproducing with the two-turn dataset record and warmup enabled; confirm both warmup and measurement dispatch through the multi-turn path. Done when the latency command benchmarks both turns in warmup and measurement. Pull request #23249 is already open for this issue.
Written by the indexing model from the issue text.
Description
System Info
TensorRT-LLM main at ef375f87565b89a5818e705c735ec59a182efb86. Reproduced through the production latency command callback on macOS ARM64 and Python 3.12, with tokenizer, engine, and asynchronous benchmark boundaries mocked. No GPU or model weights were used.
Reproduction
Supply the latency command with a two-turn dataset record, for example:
{"task_id":0,"input_ids":[1,2],"output_tokens":8,"turns":["Tell me about foxes.","Now summarize in one sentence."]}
The shared dataset loader preserves the two turns. Inspect the calls to async_benchmark in the latency command with warmup enabled. Neither the warmup nor measured call receives the tokenizer already initialized by the command. LlmManager.process_request requires a tokenizer to dispatch a multi-turn request, so this record takes the single-turn path.
Expected behavior
The latency command should dispatch the conversation through the existing multi-turn path during warmup and measurement, matching the throughput command's handling of the same dataset format.
Actual behavior
The command silently uses the first prompt as a single-turn request and never benchmarks the follow-up. The dataset still has both turns in its metadata.
Additional notes
This differs from #21519, which is about the number of decoding iterations recorded after multiple turns actually execute. Searches for latency/multi-turn/tokenizer handling found no equivalent open fix.
OpenAI Codex assisted with the reproducer.
- Dominant language
- Python
- Stars
- 15.2k
- Forks
- 3k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 477
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/TensorRT-LLM
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day
-
Inference runtime Windows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
NVIDIA/TensorRT-LLM#23394 ·
Maintainers usually reply within 1 day
-
[Bug]: MMLU subsampling changes when evaluators are interleavedPossibly taken @LeNeLeNeWo claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/TensorRT-LLM#23273 ·
Maintainers usually reply within 1 day
-
Trace-replay Pareto window includes the drain when sessions finish out of admission orderPossibly taken @sbeierle claimed this 3 days ago. OpenTesting
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NVIDIA/TensorRT-LLM#23077 ·
Maintainers usually reply within 1 day
-
LongBench V2 blog command breaks on inline comments after continuationsPossibly taken @ddlw claimed this 25 days ago. OpenDoc
Difficulty 1/5 Under an hour Newbie friendliness 91/100
NVIDIA/TensorRT-LLM#21879 ·
Maintainers usually reply within 1 day
All issues in NVIDIA/TensorRT-LLM
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
#1643 unrecoverable split: 1 digest with a 403 — two earlier captures of the same URL are real 200sOpen
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Robin-IA/Congressional-Letters-Dev#1684 ·
Maintainers usually reply within 1 day