Skip to content

Qualcomm AI Engine Direct - Add fp16a8w quantization config#19537

Open
shewu-quic wants to merge 1 commit into
pytorch:mainfrom
CodeLinaro:dev1/hutton/fp_act_quantized_weight
Open

Qualcomm AI Engine Direct - Add fp16a8w quantization config#19537
shewu-quic wants to merge 1 commit into
pytorch:mainfrom
CodeLinaro:dev1/hutton/fp_act_quantized_weight

Conversation

@shewu-quic
Copy link
Copy Markdown
Collaborator

Summary:

  • Add fp16a8w quantization config
    • Note that fp16a8w is only supported with Conv2d (kernel size = 1) and Linear by QNN HTP
  • Add a pass insert_cast_for_fp_act_quantized_weight.py to cast fp32 -> fp16 due to constraint in QNN HTP
  • Add a test case to run conv2d and linear with fp16a8w

Test plan

python3 backends/qualcomm/tests/test_qnn_delegate.py TestQNNFloatingPointOperator.test_qnn_backend_fp16a8w_simple_model  -b build-android -H ${HOST} -s ${DEVICE}  -m SM8750 -r /path/to/executorch -a /path/to/artifacts

Summary:
- Add a pass `insert_cast_for_fp_act_quantized_weight.py` to cast fp32 -> fp16 due to constraint in QNN HTP
- Add a test case to run conv2d and linear with fp16a8w
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 13, 2026

🔗 Helpful Links

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

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:

✅ No Failures

As of commit d69272f with merge base d939b9b (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 May 13, 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.

@psiddh
Copy link
Copy Markdown
Contributor

psiddh commented May 15, 2026

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