[Bug]: trtllm-bench latency silently drops follow-up turns

オープン
#23,248 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@JunkaiWang-TheoPhy がすでに取り組んでいます。

2026年12月2日 から。

  • #23249 @JunkaiWang-TheoPhy による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
15.2k
フォーク
3k
平均マージ
2日 21時間
マージ済み PR(30日)
477

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/TensorRT-LLM のほかの issue

NVIDIA/TensorRT-LLM の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。