Skip to content
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

Introduce NamedDataStore #8587

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Conversation

lucylq
Copy link
Contributor

@lucylq lucylq commented Feb 19, 2025

Stack from ghstack (oldest at bottom):

Introduce NamedDataStore for weight sharing.
Rename 'NamedBlobStore' --> 'NamedDataStore' to mirror 'NamedDataMap' in the runtime.

The NamedDataStore exposes two methods:

  • add_named_data: add a blob to the store
  • get_named_data_store_output: return the contents of the store, to pass to serialization.

Invariants on the NamedDataStore

  • Keys are unique regardless of whether they are in PTE or external file.
  • Different keys can point to the same data.

NamedDataStore is used in D69764150. It's owned by the EdgeProgramManager.

Differential Revision: D69764094

Introduce NamedDataStore for weight sharing.
Rename 'NamedBlobStore' --> 'NamedDataStore' to mirror 'NamedDataMap' in the runtime.


The NamedDataStore exposes two methods:
- add_named_data: add a blob to the store
- get_named_data_store_output: return the contents of the store, to pass to serialization.

Invariants on the NamedDataStore
- Keys are unique regardless of whether they are in PTE or external file.
- Different keys can point to the same data.

NamedDataStore is used in D69764150. It's owned by the EdgeProgramManager.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Feb 19, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 460e9b1 with merge base 6cb5c1a (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 19, 2025
@facebook-github-bot
Copy link
Contributor

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

lucylq added a commit that referenced this pull request Feb 19, 2025
Introduce NamedDataStore for weight sharing.
Rename 'NamedBlobStore' --> 'NamedDataStore' to mirror 'NamedDataMap' in the runtime.


The NamedDataStore exposes two methods:
- add_named_data: add a blob to the store
- get_named_data_store_output: return the contents of the store, to pass to serialization.

Invariants on the NamedDataStore
- Keys are unique regardless of whether they are in PTE or external file.
- Different keys can point to the same data.

NamedDataStore is used in D69764150. It's owned by the EdgeProgramManager.

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

ghstack-source-id: 267278860
Pull Request resolved: #8587
Introduce NamedDataStore for weight sharing.
Rename 'NamedBlobStore' --> 'NamedDataStore' to mirror 'NamedDataMap' in the runtime.


The NamedDataStore exposes two methods:
- add_named_data: add a blob to the store
- get_named_data_store_output: return the contents of the store, to pass to serialization.

Invariants on the NamedDataStore
- Keys are unique regardless of whether they are in PTE or external file.
- Different keys can point to the same data.

NamedDataStore is used in D69764150. It's owned by the EdgeProgramManager.

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

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

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

lucylq added a commit that referenced this pull request Feb 25, 2025
Pull Request resolved: #8587

Introduce NamedDataStore for weight sharing. See 'NamedBlobStore' in [RFC]

Rename 'NamedBlobStore' --> 'NamedDataStore' to mirror 'NamedDataMap' in the runtime.


The NamedDataStore exposes two methods:
- add_named_data: add a blob to the store
- get_named_data_store_output: return the contents of the store, to pass to serialization.

Invariants on the NamedDataStore
- Keys are unique regardless of whether they are in PTE or external file.
- Different keys can point to the same data.

NamedDataStore is used in D69764150. It's owned by the EdgeProgramManager.
ghstack-source-id: 268328940
@exported-using-ghexport

Differential Revision: [D69764094](https://our.internmc.facebook.com/intern/diff/D69764094/)
@lucylq lucylq added release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.) release notes: exir Changes to any dialects and passes on these dialects, such as memory planning labels Feb 25, 2025
@facebook-github-bot facebook-github-bot merged commit 1254145 into gh/lucylq/43/base Feb 26, 2025
51 of 53 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/lucylq/43/head branch February 26, 2025 05:18
swolchok pushed a commit that referenced this pull request Feb 26, 2025
Pull Request resolved: #8587

Introduce NamedDataStore for weight sharing. See 'NamedBlobStore' in [RFC]

Rename 'NamedBlobStore' --> 'NamedDataStore' to mirror 'NamedDataMap' in the runtime.


The NamedDataStore exposes two methods:
- add_named_data: add a blob to the store
- get_named_data_store_output: return the contents of the store, to pass to serialization.

Invariants on the NamedDataStore
- Keys are unique regardless of whether they are in PTE or external file.
- Different keys can point to the same data.

NamedDataStore is used in D69764150. It's owned by the EdgeProgramManager.
ghstack-source-id: 268328940
@exported-using-ghexport

Differential Revision: [D69764094](https://our.internmc.facebook.com/intern/diff/D69764094/)
swolchok pushed a commit that referenced this pull request Feb 26, 2025
Pull Request resolved: #8587

Introduce NamedDataStore for weight sharing. See 'NamedBlobStore' in [RFC]

Rename 'NamedBlobStore' --> 'NamedDataStore' to mirror 'NamedDataMap' in the runtime.


The NamedDataStore exposes two methods:
- add_named_data: add a blob to the store
- get_named_data_store_output: return the contents of the store, to pass to serialization.

Invariants on the NamedDataStore
- Keys are unique regardless of whether they are in PTE or external file.
- Different keys can point to the same data.

NamedDataStore is used in D69764150. It's owned by the EdgeProgramManager.
ghstack-source-id: 268328940
@exported-using-ghexport

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

Co-authored-by: lucylq <[email protected]>
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 Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported release notes: api Changes to public facing apis (any interfaces, pybinded runtime methods, etc.) release notes: exir Changes to any dialects and passes on these dialects, such as memory planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants