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

Đang mở
#23,248 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@JunkaiWang-TheoPhy đang làm issue này rồi.

Từ ngày 2/12/2026.

  • #23249 của @JunkaiWang-TheoPhy — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
15.2k
Fork
3k
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
477

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/TensorRT-LLM

Tất cả issue của NVIDIA/TensorRT-LLM

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.