Skip to content

Stabilize DeepCompile ZeRO-3 memory scheduling#8169

Draft
tohtana wants to merge 2 commits into
deepspeedai:masterfrom
tohtana:tohtana/deepcompile-zero3-memory-stability-scheduler-standalone
Draft

Stabilize DeepCompile ZeRO-3 memory scheduling#8169
tohtana wants to merge 2 commits into
deepspeedai:masterfrom
tohtana:tohtana/deepcompile-zero3-memory-stability-scheduler-standalone

Conversation

@tohtana

@tohtana tohtana commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Depends on #8159.

DeepCompile's ZeRO-3 scheduler does not consistently account for memory pressure across gather/release ordering, prefetch, selective gathering, and native gather-buffer reuse. This can retain excess gathered storage or trigger a full-parameter gather while Dynamo evaluates guards.

This PR adds rank-consistent scheduler budgeting and diagnostics, coordinates prefetch and selective gathering with graph profiling, reuses native gather storage within a bounded pressure-aware lifecycle, and avoids guard-time full-parameter gathers while the DeepCompile eager fallback is active.

tohtana added 2 commits July 22, 2026 17:50
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
@tohtana tohtana changed the title Tohtana/deepcompile zero3 memory stability scheduler standalone Stabilize DeepCompile ZeRO-3 memory scheduling Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant