Skip to content

Remove logic for appending or prepending tokens #4920

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

Closed
wants to merge 1 commit into from

Conversation

helunwencser
Copy link
Contributor

@helunwencser helunwencser commented Aug 26, 2024

The runner should not prepend or append any tokens to the prompt. Users should make sure that the prompt is properly formatted as the model's chat template.

This PR removes the logic for appending or prepending tokens.

Test Plan:
CI

Differential Revision: D61824091

@helunwencser
Copy link
Contributor Author

helunwencser commented Aug 26, 2024

Copy link

pytorch-bot bot commented Aug 26, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 17d39e4 with merge base 0a11e99 (image):
💚 Looks good so far! There are no failures yet. 💚

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

helunwencser added a commit that referenced this pull request Aug 26, 2024
ghstack-source-id: faf0542
ghstack-comment-id: 2311228673
Pull Request resolved: #4920
@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 Aug 26, 2024
@helunwencser
Copy link
Contributor Author

@helunwencser has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@helunwencser helunwencser mentioned this pull request Aug 28, 2024
Summary:
Pull Request resolved: #4920

The runner should not prepend or append any tokens to the prompt. Users should make sure that the prompt is properly formatted as the model's chat template.

This PR removes the logic for appending or prepending tokens.

Test Plan:
CI

imported-using-ghimport

Differential Revision: D61824091

Pulled By: helunwencser
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D61824091

@facebook-github-bot
Copy link
Contributor

@helunwencser merged this pull request in a922b3d.

kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
ghstack-source-id: faf0542
ghstack-comment-id: 2311228673
Pull Request resolved: pytorch/executorch#4920
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. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants