TensorRT-LLM
TensorRT-LLM copied to clipboard
seq_slot_manager.py uses undefined name 'logger'
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.