Skip to content

Split DeepCompile ZeRO-3 memory scheduler - #8233

Open
tohtana wants to merge 1 commit into
deepspeedai:masterfrom
tohtana:tohtana/deepcompile-zero3-memory-scheduler
Open

Split DeepCompile ZeRO-3 memory scheduler#8233
tohtana wants to merge 1 commit into
deepspeedai:masterfrom
tohtana:tohtana/deepcompile-zero3-memory-scheduler

Conversation

@tohtana

@tohtana tohtana commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Splits the DeepCompile ZeRO-3 scheduling and gather/release lifetime changes out of #8169. The exact candidate passed 10/10 tests on a single node with 2 H100 GPUs.

Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 255d4347ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

int(get_accelerator().max_memory_allocated()) + int(mem_usage_out_of_torch))


def _rank_max_profile_memory(start_mem, peak_mem, device, distributed, process_group=None):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Coordinate rank failures before reducing profile memory

When an operator fails on only one data-parallel rank—for example, due to rank-asymmetric memory pressure—that rank exits ProfilingInterpreter.run_node, while successful ranks enter this per-node MAX reduction. The failed rank then advances to cleanup and later collectives, so the ranks execute different collective sequences and the distributed compilation can hang instead of marking the profile incomplete. Avoid entering the per-node reduction until profiling success or failure has been coordinated across the process group.

Useful? React with 👍 / 👎.


# Appendix

## Diagnostics

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the required sign-off trailer

Commit 03008a7b862ba99e88940209267d6e0a82f60267 is a non-merge commit but its message has no Signed-off-by trailer, so it violates the repository's commit requirement and will fail DCO-style validation; recreate the commit with --signoff.

AGENTS.md reference: AGENTS.md:L8-L8

Useful? React with 👍 / 👎.

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