[Bug]: Duration-limited benchmark crashes when no request completes

Abierto
#23,250 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@JunkaiWang-TheoPhy ya está trabajando en esto.

Desde el 2/12/2026.

  • #23251 de @JunkaiWang-TheoPhy — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
performance

Línea de trabajo

Start with the trtllm-bench throughput worker and StatsKeeper.generate_statistics_summary, then trace how the worker handles a duration deadline when no request completes. Reproduce with the two-turn JSONL example and a deadline before the second turn; done when the run reports that no requests completed without computing statistics from an empty sample, while runs with completed requests still report those requests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Inference runtime
System Info

TensorRT-LLM main at ef375f87565b89a5818e705c735ec59a182efb86. Reproduced on Python 3.12 / macOS ARM64 with real benchmark worker and statistics code, a controlled clock, and mocked LLM, tokenizer, and energy collection. No GPU inference or model downloads were needed.

Reproduction

Use a duration-limited trtllm-bench throughput run with one multi-turn request and choose a duration shorter than the time needed to reach the second turn. For example, a single two-turn JSONL record can use:

{"task_id":0,"input_ids":[1,2],"output_tokens":8,"turns":["First question","Follow-up question"]}

In the CPU reproducer, the first completion moves the clock to the one-second deadline. The real worker correctly discards the now-incomplete conversation, and no response reaches the statistics. Calling StatsKeeper().generate_statistics_summary(0, 1) reproduces the downstream division by zero.

Expected behavior

A run with no completed requests should stop with a message indicating that the deadline prevented any request from completing. Statistics should not be computed from the empty sample.

Actual behavior

The worker logs that it processed 0/1 requests, logs that the benchmark is complete, and returns empty statistics. Report generation then fails with ZeroDivisionError: division by zero.

Additional notes

The valid case where at least one request finishes should continue reporting only the completed requests. Searches for trtllm-bench, ZeroDivisionError, and a deadline with no completed requests did not identify an equivalent fix. #22049 is about no-output serving streams, which follows a different path.

OpenAI Codex assisted with reproducing the failure.

Lenguaje dominante
Python
Estrellas
15.2k
Forks
3k
Merge medio
2 d 21 h
PR fusionados (30 d)
477

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/TensorRT-LLM

Todos los issues de NVIDIA/TensorRT-LLM

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.