Skip to content

Add auto-reload support to CodeSyncManager #568

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrewjcg
Copy link
Contributor

Summary:
Update the CodeSyncManager actor to call AutoReloadActor
when requested, to trigger hot-reloading of Python code after
code sync completes.

In this setup, only a single CodeSyncManager on an e.g. host
will perform a code sync operation, and then will cast to all ranks
that share the host (e.g. gpu ranks) to trigger all the reloads.

Differential Revision: D78358200

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

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

andrewjcg added a commit to andrewjcg/monarch that referenced this pull request Jul 17, 2025
Summary:
Pull Request resolved: pytorch-labs#568

Update the `CodeSyncManager` actor to call `AutoReloadActor`
when requested, to trigger hot-reloading of Python code after
code sync completes.

In this setup, only a single `CodeSyncManager` on an e.g. host
will perform a code sync operation, and then will cast to all ranks
that share the host (e.g. gpu ranks) to trigger all the reloads.

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

andrewjcg added a commit to andrewjcg/monarch that referenced this pull request Jul 17, 2025
Summary:
Pull Request resolved: pytorch-labs#568

Update the `CodeSyncManager` actor to call `AutoReloadActor`
when requested, to trigger hot-reloading of Python code after
code sync completes.

In this setup, only a single `CodeSyncManager` on an e.g. host
will perform a code sync operation, and then will cast to all ranks
that share the host (e.g. gpu ranks) to trigger all the reloads.

Differential Revision: D78358200
Summary:

Update the `CodeSyncManager` actor to call `AutoReloadActor`
when requested, to trigger hot-reloading of Python code after
code sync completes.

In this setup, only a single `CodeSyncManager` on an e.g. host
will perform a code sync operation, and then will cast to all ranks
that share the host (e.g. gpu ranks) to trigger all the reloads.

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

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants