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

How does gemini nano work on qcom Npu/Gpu #7

Open
AndreaChiChengdu opened this issue Nov 7, 2024 · 4 comments
Open

How does gemini nano work on qcom Npu/Gpu #7

AndreaChiChengdu opened this issue Nov 7, 2024 · 4 comments

Comments

@AndreaChiChengdu
Copy link

I have a question. From the documentation and introduction, ai edge sdk api is used to access AICORE, while gemini nano is in AICORE. How does AICORE connect to Qualcomm npu hardware? Is it through runtime in AICORE or liteRT gpu delegate(tflite runtime) or Qualcomm's own qnn htp/gpu delegate? It's not mentioned in the document or the video.
thanks

@AndreaChiChengdu
Copy link
Author

@zhouyiself Is AICORE based on liteRT to connect to the Qualcomm acceleration library or is there another implementation in AICORE? Thank you very much
#7 (comment)

@Flyfish233
Copy link

AICore on Galaxy device:

lib/arm64-v8a/libQnnHtp.so
lib/arm64-v8a/libQnnHtpV73Skel.so
lib/arm64-v8a/libQnnHtpV73Stub.so
lib/arm64-v8a/libQnnHtpV75Skel.so
lib/arm64-v8a/libQnnHtpV75Stub.so
lib/arm64-v8a/libQnnSystem.so
lib/arm64-v8a/libllm_qnn_jni.so

AICore thirdpartyeap:

lib/arm64-v8a/libllm_edgetpu_jni.so
lib/arm64-v8a/libllm_ggml_jni.so
lib/arm64-v8a/libulm1b_ggml_jni.so

That's enough to answer this issue.

@AndreaChiChengdu
Copy link
Author

AICore on Galaxy device:

lib/arm64-v8a/libQnnHtp.so
lib/arm64-v8a/libQnnHtpV73Skel.so
lib/arm64-v8a/libQnnHtpV73Stub.so
lib/arm64-v8a/libQnnHtpV75Skel.so
lib/arm64-v8a/libQnnHtpV75Stub.so
lib/arm64-v8a/libQnnSystem.so
lib/arm64-v8a/libllm_qnn_jni.so

AICore thirdpartyeap:

lib/arm64-v8a/libllm_edgetpu_jni.so
lib/arm64-v8a/libllm_ggml_jni.so
lib/arm64-v8a/libulm1b_ggml_jni.so

That's enough to answer this issue.

Thanks a lot, but it looks like the pixel and sm8650 have different software paths? pixel uses ggml, Qualcomm npu as far as I know there are only two ways of tflite qnnhtp delegate and qnn offline compilation, and all signs show that aicore does not seem to use tflite runtime, which is where I do not understand. Thank you for your reply

@Flyfish233
Copy link

AICore has several versions depending on the SoC, on Galaxy devices they may wrapped Qualcomm Genie SDK because that's the fastest API on a modern Qualcomm device with NPU, and they might not care about compabilities, so they probably won't use TFlite or GPUs.

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

No branches or pull requests

2 participants