Skip to content

[CoreAI] Remove sidecar asset delivery from the exporter - #23318

Merged
metascroy merged 1 commit into
mainfrom
coreai-v2/00d-no-sidecar
Oct 1, 2026
Merged

metascroy merged 1 commit into
mainfrom
coreai-v2/00d-no-sidecar

Conversation

@metascroy

Copy link
Copy Markdown
Contributor

The Core AI runtime only loads assets embedded in the .pte, so sidecar delivery is removed from the exporter.

  • Removed:
    • CoreAIPartitioner(uses_sidecar=...) and the coreai_uses_sidecar compile spec.
    • coreai_sidecar_dir (also from __init__ exports) and COREAI_SIDECAR_DIR.
    • The sidecar / aot_compiled_sidecar packaging values.
    • The sidecar write path in _deliver, along with its existing-directory guard and the "env var set but inline" warning.
  • Source .aimodel and AOT-compiled .aimodelc bundles are always embedded via NamedDataStore.
  • Tests:
    • The sidecar-only tests are deleted.
    • Three tests are kept and rewritten for inline delivery: the archs map points at embedded bundle keys, two delegates get distinct asset keys, and sizes are checked against embedded payloads.

Test plan: python -m pytest backends/apple/coreai gives 113 passed.

@pytorch-bot

pytorch-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

⏳ No Failures, 3 Pending

As of commit 86eadab with merge base b5aaeee (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla 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 Oct 1, 2026
@metascroy
metascroy marked this pull request as ready for review October 1, 2026 17:28
@metascroy
metascroy requested a review from shoumikhin as a code owner October 1, 2026 17:29
@metascroy
metascroy requested a review from SS-JIA October 1, 2026 17:29
Base automatically changed from coreai-v2/00c-mutated-inputs to main October 1, 2026 18:57
Summary:
The Core AI runtime only loads assets embedded in the .pte, so drop sidecar
delivery from the exporter: `CoreAIPartitioner(uses_sidecar=...)`, the
`coreai_uses_sidecar` compile spec, `coreai_sidecar_dir` and
`COREAI_SIDECAR_DIR`, and the `sidecar` / `aot_compiled_sidecar` packaging
values. Source `.aimodel` and AOT-compiled `.aimodelc` bundles are always
embedded via NamedDataStore.

Test Plan:
```
python -m pytest backends/apple/coreai
```
114 passed (coreai-core 1.0.0b3, coreai-torch 0.4.3). The removed tests only
covered sidecar delivery.
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@metascroy
metascroy merged commit 900b9fd into main Oct 1, 2026
228 checks passed
@metascroy
metascroy deleted the coreai-v2/00d-no-sidecar branch October 1, 2026 21:18

This branch was successfully deployed

1 active deployment
cadence — 86eadab8 Deployed Oct 1, 2026 by metascroy via hifi-op-test / hifi4 #30907
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants