Skip to content

add qnn test template job #7636

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 2 commits into from
Jan 16, 2025
Merged

add qnn test template job #7636

merged 2 commits into from
Jan 16, 2025

Conversation

cccclai
Copy link
Contributor

@cccclai cccclai commented Jan 13, 2025

Differential Revision: D68112936

Copy link

pytorch-bot bot commented Jan 13, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 1 Pending

As of commit aa7c882 with merge base 0dbe214 (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 Jan 13, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68112936

@@ -395,6 +395,25 @@ jobs:
# Test llama2
PYTHON_EXECUTABLE=python bash .ci/scripts/test_llama.sh -model stories110M -build_tool "${BUILD_TOOL}" -mode "${MODE}" -dtype "${DTYPE}" -pt2e_quantize "${PT2E_QUANTIZE}"

test-qnn-models-linux:
name: test-mediatek-models-linux
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be qnn I think.

@haowhsu-quic
Copy link
Collaborator

Thank you for this, we 'll figure out which test cases are mandatory. I think we could just have them run on the emulator, or you have some connected hardware could be used?

@cccclai
Copy link
Contributor Author

cccclai commented Jan 15, 2025

Thank you for this, we 'll figure out which test cases are mandatory. I think we could just have them run on the emulator, or you have some connected hardware could be used?

We can only run emulators on the CI for now. However, @guangy10 is working on the perf benchmark with real device and he has enabled to qnn model running there. I notice that there are some real models in the test_qnn_delegate.py and we can have those running on real device. They will run periodically, but not per pull request, though should be good enough to catch failure and track down the issue.

Summary: Pull Request resolved: pytorch#7636

Differential Revision: D68112936
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68112936

@facebook-github-bot
Copy link
Contributor

@cccclai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cccclai cccclai merged commit b818062 into pytorch:main Jan 16, 2025
10 of 11 checks passed
@zingo
Copy link
Collaborator

zingo commented Jan 17, 2025

Hi
This might have broken pull and trunk jobs since around this patch got merged they are crashing , this PR also seem to have the same problem:
https://hud.pytorch.org/pr/pytorch/executorch/7636

zingo added a commit that referenced this pull request Jan 17, 2025
@zingo
Copy link
Collaborator

zingo commented Jan 17, 2025

Might not be this patch, I tried a "revert" PR and get the same issue in it so it might probably be something else causing it.

@huydhn
Copy link
Contributor

huydhn commented Jan 17, 2025

Ops, that is a real error, let me submit a forward fix. This is not related to this PR though

@huydhn
Copy link
Contributor

huydhn commented Jan 17, 2025

The fix PR #7731

@guangy10
Copy link
Contributor

@cccclai We already have the qnn models in trunk.yml: https://github.com/pytorch/executorch/blob/main/.github/workflows/trunk.yml#L302-L323, which will be triggered on PR if files under tracked paths got modified. Why do we need to add same to pull.yml?

@cccclai
Copy link
Contributor Author

cccclai commented Jan 17, 2025

@cccclai We already have the qnn models in trunk.yml: https://github.com/pytorch/executorch/blob/main/.github/workflows/trunk.yml#L302-L323, which will be triggered on PR if files under tracked paths got modified. Why do we need to add same to pull.yml?

oh this pr is to cover the perf op test defined in

# This source code is licensed under the BSD-style license found in the

YIWENX14 pushed a commit that referenced this pull request Jan 28, 2025
* add qnn test template job (#7636)

Summary: Pull Request resolved: #7636

Differential Revision: D68112936

* Increase timeout

---------

Co-authored-by: Huy Do <[email protected]>
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. fb-exported topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants