Skip to content

Conversation

@haowhsu-quic
Copy link
Collaborator

@haowhsu-quic haowhsu-quic commented Dec 31, 2025

Test plan

Tested with QNN version 2.41.0.251128

[Initialization]

  • Build hexagon & aarch64 target
# e.g.
export HEXAGON_SDK_ROOT=$WORKSPACE/aisw-tools/avante-tools/prebuilt/dsp/hexagon-sdk-6.4.0
export HEXAGON_TOOLS_ROOT=$HEXAGON_SDK_ROOT/tools/HEXAGON_Tools/21.0.0
export HEXAGON_ARCH=v81
# QNN_SDK_ROOT & ANDROID_NDK_ROOT are required as well
cd path/to/executorch
backends/qualcomm/scripts/build.sh --enable_hexagon

[aarch64-android]

  • Sign artifact
# e.g.
cd path/to/executorch
backends/qualcomm/scripts/lpai_utils.sh --lpai v6
  • Run e2e test
cd path/to/executorch
mkdir lpai_artifacts
python backends/qualcomm/tests/test_qnn_delegate.py TestQNNQuantizedOperator.test_qnn_backend_lpai -b build-android -s f3c0531 -m SM8850 --backend lpai -a lpai_artifacts

[hexagon direct]

  • Sign & push artifacts + execution
cd path/to/executorch
backends/qualcomm/scripts/lpai_utils.sh --direct --lpai v6 --hexagon v81 --workspace /data/local/tmp/lpai_direct --artifact lpai_artifacts/ --serial f3c0531
  • Verify
cd path/to/executorch
python backends/qualcomm/scripts/sqnr_verifier.py -g lpai_artifacts/golden_0* -o lpai_artifacts/output_direct/output_0* -e lpai_artifacts/encoding.txt -d uint8
# should have SQNR number for each output

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 31, 2025

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 10 New Failures, 1 Unrelated Failure

As of commit 61b71d5 with merge base c730feb (image):

NEW FAILURES - The following jobs have failed:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness 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 Dec 31, 2025
@github-actions
Copy link

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.

@haowhsu-quic
Copy link
Collaborator Author

haowhsu-quic commented Dec 31, 2025

Hi @cccclai, this PoC is for LPAI backend & minimum inference runtime on hexagon scalar core. Currently only aDSP is supported with 2 models given from RL team are verified. We'll also work on general solution in parallel (e.g. support cDSP(HTP), backend awareness quantizer, etc.).

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.

1 participant