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

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

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

@sbeierle がすでに取り組んでいます。

2026年12月1日 から。

  • #23140 @sbeierle による — オープン

評価

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

調査の方向性

examples/scaffolding/trace_replay/metrics.py の compute_steady_state_window から始めて、issue の CPU 再現を実行します。アドミッション順とは異なる順序で完了するセッションの回帰ケースを追加します。占有数が 2 未満に下がる 4 で計算されたウィンドウが終わり、10 までのドレインを含まない状態になれば完了です。

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

説明

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.

主要言語
Python
スター
15.1k
フォーク
3k
平均マージ
3日 1時間
マージ済み PR(30日)
474

環境構築

Codespaces で開く

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

はじめの一歩

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

NVIDIA/TensorRT-LLM のほかの issue

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

似ている issue

Python の issue をもっと見る

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

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