Trace-replay Pareto window includes the drain when sessions finish out of admission order

Đang mở Phù hợp với người mới
#23,077 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

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

Từ ngày 1/12/2026.

  • #23140 của @sbeierle — đ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
86/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
performance, testing

Hướng nghiên cứu

Bắt đầu với compute_steady_state_window trong examples/scaffolding/trace_replay/metrics.py và chạy bản tái hiện trên CPU trong issue. Thêm một trường hợp hồi quy cho các phiên hoàn tất không theo thứ tự tiếp nhận; công việc hoàn tất khi cửa sổ được tính kết thúc ở 4, lúc mức chiếm dụng giảm xuống dưới hai, thay vì bao gồm quá trình xả đến 10.

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

Mô tả

Testing

The trace-replay Pareto benchmark can include the entire drain tail in its steady-state throughput when two sessions finish out of admission order. This matters when a longer agent session finishes after shorter sessions admitted later.

Minimal CPU reproduction from the repository root in a TensorRT-LLM environment:

from examples.scaffolding.trace_replay.metrics import compute_steady_state_window

starts = [0, 0, 1, 2, 3]
ends = [1, 2, 3, 10, 4]
print(compute_steady_state_window(
    session_start_offset_s=starts, session_end_offset_s=ends, excl_count=2,
))

Two sessions are active continuously from 0 until 4. From 4 through 10 only one remains. Executing the upstream function body on these offsets gives a valid window from 0 to 10, including six seconds below capacity. The function selects the end timestamp by admission index, so a late-finishing earlier session extends the window.

For this work-conserving case the end should be 4, the completion that reduces occupancy below two after all work is admitted. A regression case with this non-FIFO completion order would distinguish the behaviors. Tested the window calculation only, without a GPU or a serving benchmark.

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

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.