Skip to content

[ET][native] Bundle sample method calls in .ptn packages - #24230

Merged
JakeStevens merged 1 commit into
mainfrom
gh/digantdesai/177/orig
Oct 28, 2026
Merged

JakeStevens merged 1 commit into
mainfrom
gh/digantdesai/177/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #24171 by @digantdesai
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/digantdesai/177/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/digantdesai/177/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/main
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/digantdesai/177/orig
Differential Revision: D125544384
@diff-train-skip-merge

Pull Request resolved: #24171

A `.ptn` can carry recorded method calls under `samples/<set>/` as
`index.json` plus `data.safetensors`; program loaders ignore them. A sample
is an ordered list of calls from the initial state with no reset between,
each naming the method it runs, so stateful sequences such as LLM prefill
then teacher-forced decode can be checked whether they use one method or
several. Tolerance resolves per call, then sample, then set, and
`write_samples` warns above 1e-3.

`write_samples` and `read_samples` live in
`exir/_serialize/_ptn_samples.py`. The spec is in `backends/native/README.md`;
review it first.

Authored with Claude Code.
ghstack-source-id: 458609819
@exported-using-ghexport

Differential Revision: [D125544384](https://our.internmc.facebook.com/intern/diff/D125544384/)
@pytorch-bot

pytorch-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Pending, 3 Unrelated Failures

As of commit 955bb9b with merge base 4db778e (image):

NEW FAILURE - The following job has failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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 28, 2026
@github-actions

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.

@JakeStevens
JakeStevens merged commit 5ee0914 into main Oct 28, 2026
227 of 238 checks passed
@JakeStevens
JakeStevens deleted the gh/digantdesai/177/orig branch October 28, 2026 17:20

This branch was previously deployed

1 inactive deployment
cadence — 955bb9be Deployed Oct 28, 2026 by pytorchbot via hifi-op-test / hifi4 #35035
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.

3 participants