Skip to content
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

Added QNN EP for ARM64 builds. #41

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Added QNN EP for ARM64 builds. #41

wants to merge 5 commits into from

Conversation

azchohfi
Copy link
Contributor

No description provided.

@azchohfi
Copy link
Contributor Author

Not ready for review since the exported projects are not great yet... I'm not sure what to do there...

@@ -23,7 +23,8 @@ public static ModelCompatibility GetModelCompatibility(ModelDetails modelDetails

ModelCompatibilityState compatibility;
if (modelDetails.HardwareAccelerators.Contains(HardwareAccelerator.CPU) ||
(modelDetails.HardwareAccelerators.Contains(HardwareAccelerator.DML) && modelDetails.SupportedOnQualcomm == true))
(modelDetails.HardwareAccelerators.Contains(HardwareAccelerator.DML) && modelDetails.SupportedOnQualcomm == true) ||
Copy link
Member

Choose a reason for hiding this comment

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

We should disable all DML models on Arm64

{
Dictionary<string, string> options = new()
{
{ "backend_path", "QnnHtp.dll" }
Copy link
Member

Choose a reason for hiding this comment

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

we should include the high performance kv here too

@@ -18,7 +18,8 @@
"Description": "This is an embedding model executed on the CPU or GPU",
"HardwareAccelerator": [
"CPU",
"DML"
"DML",
"QNN"
Copy link
Member

Choose a reason for hiding this comment

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

we need to do some testing here before enabling the models for qnn - I'm seeing both the cpu and npu running which might mean the model is falling back to cpu and it's not optimized for qnn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants