-
Notifications
You must be signed in to change notification settings - Fork 607
Qualcomm AI Engine Direct - DRAFT for GA QWEN2.5 0.5B #12054
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12054
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New FailureAs of commit 0c4785b with merge base 695c7d5 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Thanks! If it's just the accuracy is bad, @rohansjoshi has been making progress on this. Can qwen model run with this PR (don't need to be accurate)? |
from transformers.configuration_utils import PretrainedConfig | ||
|
||
|
||
class RMSNorm(nn.Module): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to have the same static llama file (maybe with some branches) instead of starting a new static qwen model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing the PR. We are trying to have a static decoder file that can be shared across all GA decoder models + LLama.
For this draft, we are just making sure e2e flow is working, and we will work on merging all static decoder files to 1.
Yes. The can model can run with this PR. |
Summary
Static Qwen2.5 0.5b enablement.
Script
python examples/qualcomm/oss_scripts/qwen/qwen.py -b build-android -s $DEVICE -m SM8750 --decoder_model qwen2_5 --prompt "Hello, how are you?" --max_seq_len 128
Stats
Speed: 128tok/sec on SM8750, seq_len = 128
Accuracy: Bad (QDQ already bad but not as bad)
Test plan
[PLEASE REMOVE] How did you test this PR? Please write down any manual commands you used and note down tests that you have written if applicable.
Author: @haowhsu-quic, @winskuo-quic