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

Abierto
#23,078 0 comentarios 0 reacciones 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@kaiyux ya está trabajando en esto.

Desde el 30/11/2026.

  • #23079 de @HaoyangPing0324 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.
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.