Skip to content

comparison with qualcomm ai hub model  #7411

Closed

Description

@DongGeun123

🐛 Describe the bug

I ran Llama-v3.2-3B-Chat(precision w4a16) from ai-hub-model on a Snapdragon 8 Gen 3 device, achieving 20 tokens/s.
For comparison, I ran inference for the Llama3.2-3B model quantized to W4A16 using executorch with the QNN backend on the same device. The performance I observed was 10 tokens/s.
Could you provide insights into what might be causing this performance difference? Are there issues with how executorch handles quantized models that could explain this gap?
Any guidance or suggestions would be greatly appreciated!

cc @cccclai @winskuo-quic @shewu-quic

Activity

  1. AndreaChiChengdu commented on Dec 27, 2024

    @AndreaChiChengdu

    good question, i found the same issue on llama 3.1 8b via executorch qnn backend,which performance is below 1/2 compare with qualcomm qaihub chaimed
    my device is xiaomi14pro with sm8650(v75 npu) 16GB ram

  2. added
    module: qnnIssues related to Qualcomm's QNN delegate and code under backends/qualcomm/
    on Jan 3, 2025
  3. kimishpatel commented on Jan 3, 2025

    @kimishpatel
    Contributor
  4. added
    partner: qualcommFor backend delegation, kernels, demo, etc. from the 3rd-party partner, Qualcomm
    on Jan 3, 2025
  5. cccclai commented on Jan 3, 2025

    @cccclai
    Contributor

    Yeah we found out the model definition in llama_transformer.py isn't ideal for running llama model on qnn backend. We've started a new model definition in https://github.com/pytorch/executorch/tree/e66cdaf514e15242692073db1271aae4657f2033/examples/qualcomm/oss_scripts/llama3_2 which have better latency number

    It's still wip and please expect some burden if trying them out, or maybe wait till it's more settled.

  6. added
    triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
    on Feb 4, 2025
  7. Jack-Khuu commented on Feb 4, 2025

    @Jack-Khuu
    Contributor

    Converting to discussion

  8. locked and limited conversation to collaborators on Feb 4, 2025
  9. converted this issue into a discussion #8194 on Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

module: qnnIssues related to Qualcomm's QNN delegate and code under backends/qualcomm/partner: qualcommFor backend delegation, kernels, demo, etc. from the 3rd-party partner, QualcommtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions