Skip to content

Qualcomm AI Engine Direct - raise ValueError for 2-bit per-tensor enc…#20534

Open
jethroqti wants to merge 1 commit into
pytorch:mainfrom
CodeLinaro:dev1/quant/pcq2bit_fixbug
Open

Qualcomm AI Engine Direct - raise ValueError for 2-bit per-tensor enc…#20534
jethroqti wants to merge 1 commit into
pytorch:mainfrom
CodeLinaro:dev1/quant/pcq2bit_fixbug

Conversation

@jethroqti

Copy link
Copy Markdown
Contributor

Qualcomm AI Engine Direct - bug fix for 2-bits quantization

Summary

Boundary check and raise ValueError for 2-bit per-tensor encoding in node_visitor and validators

Test plan

python backends/qualcomm/tests/test_qnn_delegate.py TestQNNQuantizedOperator.test_qnn_backend_16a2w_conv2d -b build-android -H ${HOST} -s ${SN} -m ${SOC_MODEL}

…oding

Summary:
raise ValueError for 2-bit per-tensor encoding in node_visitor and validators

Test plan:
python backends/qualcomm/tests/test_qnn_delegate.py TestQNNQuantizedOperator.test_qnn_backend_16a2w_conv2d -b build-android -H ${HOST} -s ${SN} -m SM8850
python backends/qualcomm/tests/test_qnn_delegate.py TestQNNQuantizedOperator.test_qnn_backend_16a2w_linear -b build-android -H ${HOST} -s ${SN} -m SM8850
@pytorch-bot

pytorch-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

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 Jun 26, 2026
@jethroqti

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "release notes: qualcomm"

@pytorch-bot pytorch-bot Bot added the release notes: qualcomm Changes to the Qualcomm backend delegate label Jun 26, 2026
@jethroqti

Copy link
Copy Markdown
Contributor Author

@psiddh This PR is to fix the bug in 2-bit quantization operation.
Please take a look. Thanks.
@shewu-quic

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. release notes: qualcomm Changes to the Qualcomm backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant