Skip to content

[dynamo] allow placement subclass to be traceble - #164985

Closed
ruisizhang123 wants to merge 1 commit into
mainfrom
ruisi/placement_trace
Closed

ruisizhang123 wants to merge 1 commit into
mainfrom
ruisi/placement_trace

Conversation

@ruisizhang123

@ruisizhang123 ruisizhang123 commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor

This pr is to unblock SimpleFSDP+gradient_divide_factor here. We will need to create a subclass for DTensor Partial placement. When tracing SimpleFSDPPartial, I hit the assertion error that SimpleFSDPPartial is not in ok_types. I'm updating the code to check placement dtype via isinstance instead of type(val).

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @mlazos

@pytorch-bot

pytorch-bot Bot commented Oct 8, 2025 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/164985

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 58b12de with merge base 65f10be (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@ruisizhang123

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 8, 2025
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
This pr is to unblock SimpleFSDP+`gradient_divide_factor` [here](pytorch/torchtitan#1793). We will need to create a subclass for DTensor `Partial` placement. When tracing `SimpleFSDPPartial`, I hit the assertion error that `SimpleFSDPPartial` is not in `ok_types`. I'm updating the code to check placement dtype via `isinstance` instead of `type(val)`.

Pull Request resolved: pytorch#164985
Approved by: https://github.com/ezyang, https://github.com/eellison
@github-actions
github-actions Bot deleted the ruisi/placement_trace branch November 8, 2025 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants