Skip to content

LlamaDemo Android add Qwen 3 prompt format #10624

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

Merged
merged 3 commits into from
May 2, 2025
Merged

LlamaDemo Android add Qwen 3 prompt format #10624

merged 3 commits into from
May 2, 2025

Conversation

kirklandsign
Copy link
Contributor

@kirklandsign kirklandsign commented May 1, 2025

Copy link

pytorch-bot bot commented May 1, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 5 Pending

As of commit 24ae058 with merge base 82c42b6 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-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 May 1, 2025
@kirklandsign kirklandsign marked this pull request as ready for review May 1, 2025 20:46
@kirklandsign kirklandsign requested a review from shoumikhin as a code owner May 1, 2025 20:46
@kirklandsign kirklandsign added topic: not user facing module: examples Issues related to demos under examples/ and removed topic: not user facing labels May 1, 2025
@kirklandsign kirklandsign added the release notes: examples Changes to any of our example LLMs integrations, such as Llama3 and Llava label May 1, 2025
@jackzhxng jackzhxng changed the title LlamaDemo add Qwen 3 prompt format LlamaDemo Android add Qwen 3 prompt format May 1, 2025
@@ -69,6 +79,8 @@ public static String getStopToken(ModelType modelType) {
return "<|eot_id|>";
case LLAVA_1_5:
return "</s>";
case QWEN_3:
return "<|im_end|>";
Copy link
Contributor

Choose a reason for hiding this comment

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

stop token should be "<|endoftext|>"

@kirklandsign kirklandsign merged commit 70974aa into main May 2, 2025
91 checks passed
@kirklandsign kirklandsign deleted the android-qwen branch May 2, 2025 01:53
jhelsby pushed a commit to jhelsby/executorch that referenced this pull request May 9, 2025
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. module: examples Issues related to demos under examples/ release notes: examples Changes to any of our example LLMs integrations, such as Llama3 and Llava
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants