[Performance] Disaggregated conversation routing retains a trie node for every block of every distinct document

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

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

@kaiyux đang làm issue này rồi.

Từ ngày 30/11/2026.

  • #23079 của @HaoyangPing0324 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Disaggregated serving General perf Investigating Performance triaged
Proposal to improve performance

The disaggregated ConversationRouter keeps an implicit prefix index for ordinary multi-turn requests without a conversation ID in single-process deployments. It also indexes first-request content when placing a new explicit conversation with prefix affinity. The current trie allocates a Python node, child dictionary and session-ID set at every block, including long paths that have just one session. Updating a conversation removes and reinserts the complete path. This makes the memory and control-plane cost noticeable when tracking many independent long documents or chats.

With four routing destinations and 256 retained conversations of 4k–24k token IDs (512 common leading tokens, two subsequent turns), the implicit index held 25,861 nodes by the third turn on our test host. Only 258 nodes were necessary to distinguish the sessions, their common prefix and their terminal points. Existing longest-valid-prefix routing and the count of sessions sharing any queried prefix can be preserved with compressed paths.

Report of performance regression

No response

Misc discussion on performance

No response

Your current environment (if you think it is necessary)

TensorRT-LLM 1.4.0rc4 wheel, current main router and tests, GPU-disabled container with two CPUs.

Before submitting a new issue...
  • Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
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.