Skip to content

Pass cast rank to python actor #747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

pzhan9
Copy link
Contributor

@pzhan9 pzhan9 commented Aug 4, 2025

Differential Revision: D79530146

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 4, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79530146

pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Aug 4, 2025
Summary:



Rollback Plan:

Differential Revision: D79530146
pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Aug 4, 2025
Summary:



Rollback Plan:

Differential Revision: D79530146
pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Aug 4, 2025
Summary:



Rollback Plan:

Differential Revision: D79530146
pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Aug 4, 2025
Summary:



Rollback Plan:

Differential Revision: D79530146
pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Aug 5, 2025
Summary:



Rollback Plan:

Differential Revision: D79530146
@pzhan9 pzhan9 force-pushed the export-D79530146 branch from 1efcff1 to 919f69d Compare August 5, 2025 02:55
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79530146

pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Aug 5, 2025
Summary:



Rollback Plan:

Differential Revision: D79530146
pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Aug 6, 2025
Summary:


When casting to a sliced mesh, the actors rank on the sliced mesh is different from the rank on the root mesh.

Currently, the root mesh's rank is passed to Python actor. [That is wrong](https://www.internalfb.com/diff/D78355743?dst_version_fbid=1460199675405905&transaction_fbid=1279216557057466). We need to pass the rank on the cast mesh. If the cast mesh is a sliced mesh, then it should be sliced mesh rank.

This diff fixes this.

Reviewed By: mariusae

Differential Revision: D79530146
@pzhan9 pzhan9 force-pushed the export-D79530146 branch from 919f69d to 304a5f3 Compare August 6, 2025 00:18
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79530146

Summary:


When casting to a sliced mesh, the actors rank on the sliced mesh is different from the rank on the root mesh.

Currently, the root mesh's rank is passed to Python actor. [That is wrong](https://www.internalfb.com/diff/D78355743?dst_version_fbid=1460199675405905&transaction_fbid=1279216557057466). We need to pass the rank on the cast mesh. If the cast mesh is a sliced mesh, then it should be sliced mesh rank.

This diff fixes this.

Reviewed By: mariusae

Differential Revision: D79530146
@pzhan9 pzhan9 force-pushed the export-D79530146 branch from 304a5f3 to caa2fa4 Compare August 6, 2025 00:45
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79530146

pzhan9 added a commit to pzhan9/monarch-1 that referenced this pull request Aug 6, 2025
Summary:


When casting to a sliced mesh, the actors rank on the sliced mesh is different from the rank on the root mesh.

Currently, the root mesh's rank is passed to Python actor. [That is wrong](https://www.internalfb.com/diff/D78355743?dst_version_fbid=1460199675405905&transaction_fbid=1279216557057466). We need to pass the rank on the cast mesh. If the cast mesh is a sliced mesh, then it should be sliced mesh rank.

This diff fixes this.

Reviewed By: mariusae

Differential Revision: D79530146
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7d767cf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants