Skip to content

Qualcomm AI Engine Direct - Enable more HF LLM Model#20587

Open
winskuo-quic wants to merge 1 commit into
pytorch:mainfrom
CodeLinaro:dev1/winskuo/hf_llm_enablement
Open

Qualcomm AI Engine Direct - Enable more HF LLM Model#20587
winskuo-quic wants to merge 1 commit into
pytorch:mainfrom
CodeLinaro:dev1/winskuo/hf_llm_enablement

Conversation

@winskuo-quic

@winskuo-quic winskuo-quic commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Enable more hf llm models that is also tested on Optimum-ExecuTorch.

Model (--decoder_model) Use --enable_spinquant_r3? Sample Prompt
qwen2_5-0_5b Yes "My favourite condiment is "
qwen3-0_6b Yes "Give me a short introduction to large language model."
smollm2_135m Yes "My favourite condiment is "
gemma-2b Yes "Hello I am doing"
llama3_2-1b Yes "Simply put, the theory of relativity states that"

Sample Script
python examples/qualcomm/oss_scripts/hf_causal_lm.py --ptq 16a8w --prompt "My favourite condiment is " --soc_model SM8750 --device $DEVICE_ID --build_folder build-android/ --decoder_model qwen2_5-0_5b --enable_spinquant_r3

Test plan

python backends/qualcomm/tests/test_qnn_delegate.py TestExampleLLMScript.test_hf_causal_lm --device $DEVICE_ID --soc_model SM8750 --build_folder build-android --executorch_root . --artifact_dir ./hf_qwen

@pytorch-bot

pytorch-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 4 New Failures, 1 Unrelated Failure, 3 Unclassified Failures

As of commit 2cb77c1 with merge base 05b977d (image):

NEW FAILURES - The following jobs have failed:

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla 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 Jun 29, 2026
@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant