[Bug]: AutoDeploy logger treats verbose and internal_error as info
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Start in tensorrt_llm/_torch/auto_deploy/utils/logger.py and trace how _SEVERITY_TO_LEVEL is used by log(), set_level(), and AUTO_DEPLOY_LOG_LEVEL initialization. Add a CPU-only regression test covering verbose, internal_error, standard levels, and unknown strings, and verify the AutoDeploy-specific names resolve to DEBUG and CRITICAL consistently.
Written by the indexing model from the issue text.
Description
System Info
- TensorRT-LLM main at
b8e337d939cde1b7aa65feb5287e5bdefa02154b - Python 3.12 and 3.14
- Reproduced on Linux and Windows
- CPU-only; no GPU or model is involved
Who can help?
No response
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examplesfolder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
ADLogger defines AutoDeploy-specific severities and maps verbose to logging.DEBUG and internal_error to logging.CRITICAL in log(). The environment-variable path and set_level() instead use getattr(logging, ...), so these same public severity names silently fall back to INFO.
import logging
from tensorrt_llm._torch.auto_deploy.utils.logger import ADLogger
logger = ADLogger()
logger.set_level("verbose")
print(logger._logger.level) # 20 (INFO), expected 10 (DEBUG)
logger.set_level("internal_error")
print(logger._logger.level) # 20 (INFO), expected 50 (CRITICAL)
The same mismatch occurs when AUTO_DEPLOY_LOG_LEVEL is set before importing the module. Standard levels such as warning work as expected.
Expected behavior
All public AutoDeploy severity names should resolve consistently in log(), set_level(), and AUTO_DEPLOY_LOG_LEVEL: verbose should select DEBUG and internal_error should select CRITICAL. Unknown strings can continue to fall back to INFO.
actual behavior
Both AutoDeploy-specific names resolve to INFO in set_level() and the environment-variable initialization path, so verbose logs stay hidden and internal errors lose their intended severity.
additional notes
I searched open and closed issues/PRs and did not find an exact duplicate. A minimal fix can reuse _SEVERITY_TO_LEVEL for all three paths and add a CPU-only regression test. I have reproduced the baseline/fix differential on current main and can submit the patch if this issue is approved, per the contribution policy. The behavior remains present even though AutoDeploy is being redirected toward the standalone backend.
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.
- Dominant language
- Python
- Stars
- 14.7k
- Forks
- 2.8k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 493
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/TensorRT-LLM
-
KV-Cache Management
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
NVIDIA/TensorRT-LLM#19281 ·
-
Customized kernels
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
NVIDIA/TensorRT-LLM#19240 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
NVIDIA/TensorRT-LLM#19225 ·
-
Infra
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
NVIDIA/TensorRT-LLM#19067 ·
-
Pytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#19059 · 3 comments ·
All issues in NVIDIA/TensorRT-LLM
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100