Skip to content

[AutoTP] Preserve universal checkpoint metadata for HuggingFace tp_plan - #8187

Merged
delock merged 4 commits into
deepspeedai:masterfrom
jinyouzhi:uc_meta
Jul 30, 2026
Merged

[AutoTP] Preserve universal checkpoint metadata for HuggingFace tp_plan#8187
delock merged 4 commits into
deepspeedai:masterfrom
jinyouzhi:uc_meta

Conversation

@jinyouzhi

@jinyouzhi jinyouzhi commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Attach AutoTP universal checkpoint metadata before returning from a successfully converted HuggingFace tp_plan.

Previously, this path replaced modules and returned without preserving the metadata required by ds_to_universal, unlike custom-config and heuristic AutoTP paths.

Testing

Add coverage for:

@jinyouzhi

Copy link
Copy Markdown
Contributor Author

@delock I have cleaned up the dependency relationships.

@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: 77357273d9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread deepspeed/runtime/engine.py

@delock delock left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@delock
delock enabled auto-merge July 29, 2026 08:40
@delock
delock added this pull request to the merge queue Jul 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 29, 2026
Attach universal checkpoint metadata after applying a HuggingFace
tp_plan, keeping this path consistent with custom and heuristic AutoTP.

Signed-off-by: iLeGend <824040212@qq.com>
Signed-off-by: iLeGend <824040212@qq.com>
Signed-off-by: iLeGend <824040212@qq.com>
@jinyouzhi

Copy link
Copy Markdown
Contributor Author

updated: #8146 merged, so add corresponding test

@delock
delock enabled auto-merge July 30, 2026 05:26
banxingmjj pushed a commit to openanolis/DeepSpeed that referenced this pull request Jul 30, 2026
…UDE.md (deepspeedai#8194)

<img width="521" height="277" alt="image"
src="https://github.com/user-attachments/assets/93ddcc79-6eb3-41cf-828e-898ff8dfac8b"
/>

Try to avoid
deepspeedai#8187 (comment),
please directly close it if not necessary.

---------

Signed-off-by: iLeGend <824040212@qq.com>
Co-authored-by: Ma, Guokai <guokai.ma@gmail.com>
@delock
delock added this pull request to the merge queue Jul 30, 2026
Merged via the queue into deepspeedai:master with commit d6fbd47 Jul 30, 2026
13 checks passed
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.

2 participants