TensorRT-LLM icon indicating copy to clipboard operation
TensorRT-LLM copied to clipboard

seq_slot_manager.py uses undefined name 'logger'

Open simpleqt opened this issue 2 months ago • 0 comments

In tensorrt_llm/_torch/pyexecutor/seq_slot_manager.py (line 20), logger.info(...) is called but logger is never imported or defined in the module — grep -n logger in that file hits only line 20. The surrounding files in _torch/pyexecutor/ import it via from tensorrt_llm.logger import logger.

Trigger: PyTorch backend scheduling any request with is_disagg_generation_init_state (disaggregated serving context-phase requests) raises NameError: name 'logger' is not defined instead of skipping slot assignment.

Found via ruff F821 + manual verification (only genuine F821 of the sweep). Happy to send a one-line PR adding the import if accepted.

simpleqt avatar Sep 06 '26 18:09 simpleqt