Skip to content

Qualcomm AI Engine Direct - support skip quantization #5070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

haowhsu-quic
Copy link
Collaborator

Summary:

  • Utility to skip operator annotation, unskipped nodes will be gathered into submodules and lowered with quantization annotation. Skipped nodes could either fallback to cpu or delegated with HTP fp16.
  • Fix uplevel breakage.
  • Refactor & retire some outdated implmentation.

Copy link

pytorch-bot bot commented Sep 4, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 28ead61 with merge base 083b9e6 (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 Sep 4, 2024
@haowhsu-quic
Copy link
Collaborator Author

Hi @cccclai, this PR provides an approach of keeping designated nodes from quantizer annotation, it's also possible to delegate the unannotated nodes with QNN fp16.
We notice the custom operator generated directly from AIHUB artifact will cause segfault in torch.export.export with 0901 pytorch nightly. Will address it in another PR if possible.

Please have a look, thank you.

@cccclai
Copy link
Contributor

cccclai commented Sep 10, 2024

@haowhsu-quic hey sorry I miss the PR, could you rebase and I'll merge it?

Summary:
- Utility to skip operator annotation, unskipped nodes will be
  gathered into submodules and lowered with quantization annotation.
  Skipped nodes could either fallback to cpu or delegated with HTP fp16.
- Fix uplevel breakage.
- Refactor & retire some outdated implmentation.
@cccclai cccclai merged commit 43e2f2d into pytorch:main Sep 10, 2024
36 checks passed
@haowhsu-quic haowhsu-quic deleted the dev_skip_annotation branch February 7, 2025 09:21
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