Commit 460e9b1
committed
Update on "Introduce NamedDataStore"
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]File tree
358 files changed
+8406
-3020
lines changed- .ci/scripts
- .github
- ISSUE_TEMPLATE
- scripts
- workflows
- backends
- apple/coreml
- arm
- _passes
- operator_support
- operators
- quantizer
- scripts
- test
- misc
- models
- ops
- passes
- tester
- cadence
- aot
- quantizer
- tests
- fusion_g3/operators
- hifi
- kernels
- operators
- reference
- kernels
- operators
- qualcomm/tests
- transforms
- vulkan
- _passes
- runtime
- api
- graph/ops
- glsl
- impl
- utils
- vk_api
- serialization
- xnnpack
- partition/config
- test/ops
- build
- configurations
- devtools
- bundled_program
- etdump
- tests
- docs/source
- examples
- apple/coreml/llama
- arm
- executor_runner
- llm_pte_finetuning
- models
- llama3_2_vision
- llama
- runner
- tests
- llava
- qwen2_5
- qualcomm/oss_scripts/llama
- assets
- model
- runner
- exir
- _serialize
- test
- tests
- extension
- benchmark
- android/benchmark/app/src/main/java/org/pytorch/minibench
- apple/Benchmark/Tests/LLaMA
- evalue_util
- test
- export_util
- flat_tensor
- serialize
- test
- llm/export
- module
- test
- resources
- parallel
- pybindings
- test
- runner_util
- test
- tensor
- test
- training
- module
- optimizer
- test
- kernels
- optimized
- cpu
- portable/cpu
- util
- prim_ops
- quantized
- test
- runtime
- backend
- core
- exec_aten
- testing_util
- util
- test
- portable_type
- c10
- c10
- macros
- util
- test
- test
- executor
- test
- kernel
- test
- shim_et
- xplat/executorch
- backends
- qualcomm
- xnnpack/third-party
- build
- codegen
- extension/pybindings
- kernels
- optimized
- portable
- test
- shim
- build_defs
- tools/build_defs
- test
- utils
- third-party
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
358 files changed
+8406
-3020
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments