[RFC]: [AutoDeploy][Feature]: Standardize debug logs with DEBUG configs
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.
cc: @taylor-yb-lee @lucaslie