| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
DeepCompile ZeRO-3 scheduler can crash with KeyError or AssertionError on missing device_time when graph profiling fails partway. Backfill default timing and memory metadata for incomplete profile nodes so the scheduler and selective_gather pass remain robust. Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
There was a problem hiding this comment.
Here are some automated review suggestions for this pull request.
Reviewed commit: 3f2013f11a
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
There was a problem hiding this comment.
This PR hardens DeepCompile graph profiling so downstream scheduling/passes (notably ZeRO-3 scheduling and selective gather) won’t crash when profiling aborts partway through and leaves some FX nodes without timing/memory metadata.
Changes:
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| deepspeed/compile/profilers/graph_profile.py | Introduces metadata defaults and backfills missing node metadata in finally to guarantee completeness after profiling cleanup/errors. |
| deepspeed/compile/passes/selective_gather.py | Prevents invalid/zero profiled sizes from clobbering param-derived sizes; avoids divide-by-zero in time-per-byte ranking. |
| tests/unit/compile/test_list_schedule.py | Adds regression test covering partial profile metadata backfill and ensuring scheduler + selective gather don’t crash. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
DeepCompile ZeRO-3 scheduling can crash with KeyError or AssertionError on missing device_time when graph profiling fails partway and leaves some nodes without timing metadata. This PR backfills default timing and memory metadata after profiling cleanup so the profiler guarantees downstream passes see complete metadata on every node. --------- Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com> Signed-off-by: nathon-lee <leejianwoo@gmail.com>
DeepCompile ZeRO-3 scheduling can crash with KeyError or AssertionError on missing device_time when graph profiling fails partway and leaves some nodes without timing metadata. This PR backfills default timing and memory metadata after profiling cleanup so the profiler guarantees downstream passes see complete metadata on every node. --------- Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
| Back | FazBrowse Home | New Git URL |
DeepCompile ZeRO-3 scheduling can crash with KeyError or AssertionError on missing device_time when graph profiling fails partway and leaves some nodes without timing metadata.
This PR backfills default timing and memory metadata after profiling cleanup so the profiler guarantees downstream passes see complete metadata on every node.