Skip to content

Conversation

@zingo
Copy link
Collaborator

@zingo zingo commented Feb 25, 2025

Add support for input and output testing using BundleIO in devtools.

Can be tested with:
run.sh --model_name=add --target=ethos-u85-128 --bundleio

aot_arm_compiler.py changes:
--bundleio - Will generate a bundle .bpte file with input and reference output data
--model_name - now also support .pt/.pth files e.g. a torch.save():ed model
--model_input - If supplied will overried the model input data supply a torch.save():ed data
--intermediates - Will now save model.pth, input_xx.pt and output_ref_xx.pt files so testing can be reproduced

arm_executor_runner.cpp - can be build with ET_BUNDLE_IO to enable a .bpte and a input/output_ref testing flow

test_model.py script uses bundleio to verify input/output

test_arm_baremetal.sh script now tests models with BundleIO so output is compared to ref output

cc @digantdesai @freddan80 @per @oscarandersson8218

Add support for input and output testing using BundleIO
in devtools.

Can be tested with:
run.sh --model_name=add --target=ethos-u85-128 --bundleio

aot_arm_compiler.py changes
--bundleio      - Will generate a bundle .bpte file with input and reference output data
--model_name    - now also support .pt/.pth files e.g. a torch.save():ed model
--model_input   - If supplied will overried the model input data supply a torch.save():ed data
--intermediates - Will now save model.pth, input_xx.pt and output_ref_xx.pt files so testing can be reproduced

arm_executor_runner.cpp - can be build with ET_BUNDLE_IO to enable a .bpte and a input/output_ref testing flow

test_model.py script uses bundleio

test_arm_baremetal.sh script now tests models with BundleIO so output is compared to ref output

Signed-off-by: Zingo Andersen <[email protected]>
Change-Id: I25b9ecc0adbf697d1d8cadc5d67ffd32f8c93db6
@zingo zingo requested a review from digantdesai as a code owner February 25, 2025 11:47
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 25, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 8290494 with merge base b5344c1 (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 25, 2025
@zingo zingo added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: arm Changes to the ARM backend delegate labels Feb 25, 2025
@zingo
Copy link
Collaborator Author

zingo commented Feb 25, 2025

Failed macos test is unrelated

@oscarandersson8218 oscarandersson8218 merged commit dc6a956 into pytorch:main Feb 25, 2025
119 of 122 checks passed
@zingo zingo deleted the Arm-backend-Add-support-for-DevTools-BundleIO branch February 26, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants