Skip to content

Qualcomm AI Engine Direct - GA model enablement (Swin Transformer) #11099

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DannyYuyang-quic
Copy link
Collaborator

@DannyYuyang-quic DannyYuyang-quic commented May 23, 2025

Summary

Test plan

python examples/qualcomm/oss_scripts/swin_transformer.py -b build-android -H $HOST -s $DEVICE -m $MODEL --dataset ${PATH_TO_DATASET}

 - e2e script / test case for GA Swin Transformer model (https://huggingface.co/microsoft/swin-tiny-patch4-window7-224)
    - perf: 8a8w 3.9ms/inf (SM8750)
    - acc: top1/5 ~= 70%/85% in ImageNet (https://www.kaggle.com/datasets/ifigotin/imagenetmini-1000)
 - add pass to handle torch.roll
 - properly annotate aten.masked_fill
 - fix embedding UT in quantization flow
@DannyYuyang-quic DannyYuyang-quic requested a review from cccclai as a code owner May 23, 2025 09:34
Copy link

pytorch-bot bot commented May 23, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 4e6e746 with merge base a6e2961 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 May 23, 2025
@DannyYuyang-quic
Copy link
Collaborator Author

@pytorchbot label "release notes: qualcomm"

@pytorch-bot pytorch-bot bot added the release notes: qualcomm Changes to the Qualcomm backend delegate label May 23, 2025
@DannyYuyang-quic
Copy link
Collaborator Author

DannyYuyang-quic commented May 23, 2025

Hi @cccclai,
This PR is for GA model - Swin Transformer
It also includes some repro for newly added passes:

  • test_qnn_backend_adaptive_avg_pool1d
  • test_qnn_backend_masked_fill
  • test_qnn_backend_roll

These tests are located under:
backends/qualcomm/tests/test_qnn_delegate.py

Please have a look, thanks!!

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.

2 participants