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

Aperta Adatta ai principianti
#23,077 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@sbeierle ci sta già lavorando.

Dal 1/12/2026.

  • #23140 di @sbeierle — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
86/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Inizia da compute_steady_state_window in examples/scaffolding/trace_replay/metrics.py ed esegui la riproduzione CPU dell’issue. Aggiungi un caso di regressione per le sessioni che terminano fuori dall’ordine di ammissione; il lavoro è completato quando la finestra calcolata termina a 4, quando l’occupazione scende sotto due, invece di includere lo svuotamento fino a 10.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
15.1k
Fork
3k
Merge medio
3g 1h
PR unite (30g)
474

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/TensorRT-LLM

Tutte le issue di NVIDIA/TensorRT-LLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.