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

[RFC]: [AutoDeploy][Feature]: Standardize debug logs with DEBUG configs

Open bmarimuthu-nv opened this issue 10 months ago • 1 comments

Motivation.

As we adding more debug features, we might end up adding a ton on ENV args. We want to move away from env args. Also, debug logs vary for different debug contexts and we can't add an env var for each of them. See: https://github.com/NVIDIA/TensorRT-LLM/pull/11045#discussion_r2744152312

Proposed Change.

Initial proposal from @taylor-yb-lee :

Rename ADLogger to ADDebugConfig which can handle all the debug configs And set the debug config name more illustrative like AUTO_DEPLOY_DEBUG_DUMP_GRAPHS_DIR Maybe we want to combine multiple handles in the future like

"AUTO_DEPLOY_DEBUG_DUMP_GRAPHS_FORMAT" = {text|dot}
"AUTO_DEPLOY_DEBUG_FILTER_TRANSFORMS"="fused_moe,quantize_moe" ...

More ideas/suggestions are welcome.

One more idea/direction of thought is to have debug configs based on the issue we are debugging: At a high level:

  • accuracy/functional issues
  • custom op / op config/arg issues
  • graph export issues
  • perf debug
  • sharding issues

Or block/feature based:

  • attention debug
  • MOE debug
  • quantization debug
  • normalization issues

Feedback Period.

No response

CC List.

No response

Any Other Things.

No response

Before submitting a new issue...

  • [x] Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.

bmarimuthu-nv avatar Feb 03 '26 02:02 bmarimuthu-nv

cc: @taylor-yb-lee @lucaslie

bmarimuthu-nv avatar Feb 03 '26 02:02 bmarimuthu-nv