Skip to content

Conversation

@mariusae
Copy link
Member

@mariusae mariusae commented Jun 26, 2025

Stack from ghstack (oldest at bottom):

Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef to its corresponding ActorHandle. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.

Differential Revision: D77377382

NOTE FOR REVIEWERS: This PR has internal Meta-specific changes or comments, please review them on Phabricator!

Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.

Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!

[ghstack-poisoned]
mariusae added a commit that referenced this pull request Jun 26, 2025
Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.

Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!

ghstack-source-id: 292858405
Pull Request resolved: #350
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 26, 2025
@facebook-github-bot
Copy link
Contributor

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

…asting"

Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.

Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!

[ghstack-poisoned]
mariusae added a commit that referenced this pull request Jun 26, 2025
Pull Request resolved: #350

Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.

Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!
ghstack-source-id: 292911240
@facebook-github-bot
Copy link
Contributor

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

…asting"

Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.

Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!

[ghstack-poisoned]
mariusae added a commit that referenced this pull request Jun 26, 2025
Pull Request resolved: #350

Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.
ghstack-source-id: 292922123

Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!
@facebook-github-bot
Copy link
Contributor

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

…asting"

Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.

Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

…asting"

Provide a general purpose mechanism for downcasting any local (in-proc) ActorRef<A> to its corresponding ActorHandle<A>. This allows these references to be coordinated externally, but for the actors to communicate locally (including using handlers that aren't exported, e.g., because they may not contain serializable messages).

The intent is to use this in the tensor engine, to allow the controller to instruct actors to coordinate locally, passing objects like tensor references directly.

This required building a general instance registration mechanism, which we can use to replace the ledger in a follow-up change.

Differential Revision: [D77377382](https://our.internmc.facebook.com/intern/diff/D77377382/)

**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D77377382/)!

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 012342d.

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.

3 participants