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
Tasks
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...
System Info
b8e337d939cde1b7aa65feb5287e5bdefa02154bWho can help?
No response
Information
Tasks
examplesfolder (such as GLUE/SQuAD, ...)Reproduction
ADLoggerdefines AutoDeploy-specific severities and mapsverbosetologging.DEBUGandinternal_errortologging.CRITICALinlog(). The environment-variable path andset_level()instead usegetattr(logging, ...), so these same public severity names silently fall back to INFO.The same mismatch occurs when
AUTO_DEPLOY_LOG_LEVELis set before importing the module. Standard levels such aswarningwork as expected.Expected behavior
All public AutoDeploy severity names should resolve consistently in
log(),set_level(), andAUTO_DEPLOY_LOG_LEVEL:verboseshould select DEBUG andinternal_errorshould 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_LEVELfor 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...