Repository navigation
Conversation
The packaging values "inline" and "aot_compiled_inline" described where the
bundle is stored rather than what it is. Name them after the embedded format
instead: "aimodel" for the portable bundle and "aimodelc" for AOT-compiled
per-architecture bundles.
The runtime's kind names in logs and the cache identity ("source" / "aot")
become "aimodel" / "aimodelc" too, so "source" only refers to the bundle copy
materialized for the SDK. This is a format change: PTEs exported with the old
names are rejected and must be re-exported, and existing cache entries miss
once and are re-specialized.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24474
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unclassified FailureAs of commit cfdb000 with merge base 822cb60 ( NEW FAILURE - The following job has failed:
UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renames the Core AI delegate manifest's
packagingvalues so they name the embedded format instead of where it's stored.Stacked on #24375.
Why
"inline"and"aot_compiled_inline"describe storage (embedded in the.pte), which is the same for both formats. They don't say what is actually different: a portable.aimodelversus AOT-compiled.aimodelcbundles. The runtime also used a third vocabulary,"source"/"aot", in logs and the cache identity. "source" already meant something else there: the bundle copy the runtime writes to the cache for the SDK, which happens for AOT bundles too.Changes
packaging"inline"/"aot_compiled_inline""aimodel"/"aimodelc"AssetPackaging(compiler/preprocess.py)INLINE/AOT_COMPILED_INLINEAIMODEL/AIMODELCruntime/coreai_manifest.mm)aot_compiled_prefix== "aimodelc"coreai_load_coordinator.mm)kind=source/kind=aotkind=aimodel/kind=aimodelccoreai_cache_key.mm)"source"/"aot""aimodel"/"aimodelc"Test fixtures, test labels and the README follow the new names. In the README, "source" now only means the copy written for the SDK.
Compatibility
Unsupported Core AI packaging; expected aimodel or aimodelcand must be re-exported.Test plan
test_preprocess.py: 25/25 passed, including the realcoreai-buildAOT test.coreai_host_test,coreai_pte_export_test,coreai_swift_bridge_test,coreai_sdk_source_lifetime_test,coreai_runtime_smoke,coreai_multithread_test). The native fixtures are regenerated and carrypackaging: "aimodel".kind=aimodel, outputs match the reference.kind=aimodelcwith exact outputs; second load restores from the cache bookmark.