DeepSpeed
bd6e9681 - Fix comms logger KeyError when log_name is omitted (#8267)

Commit
76 days ago
Fix comms logger KeyError when log_name is omitted (#8267) ## Summary Fix a `KeyError: 'log_name'` raised by the DeepSpeed communication logger when a wrapped collective is called without an explicit `log_name`. ``` "comms_logger": { "enabled": true, "prof_all": true, "debug": true } ``` This is exposed by multi-rank AutoTP input consistency checks, which call `broadcast_object_list` without passing profiling metadata. Single-rank TP does not exercise this communication path. ## Changes - Add prof/log_name/debug for `broadcast_object_list` and `all_to_all` - Use the `func.__name__` as the default `log_name` to cover missing status - Add a regression test ## Validation - `python -m pytest -q tests/unit/comm/test_comms_logger.py` --------- Signed-off-by: iLeGend <824040212@qq.com> Co-authored-by: Olatunji Ruwase <tunji.ruwase@snowflake.com> Co-authored-by: Ehsan Barkhordar <realbarkhordar@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Masahiro Tanaka <81312776+tohtana@users.noreply.github.com>
Author
Parents
Loading