Skip to content

Let models provider their own specific special tokens #4227

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 6 commits into from

Conversation

helunwencser
Copy link
Contributor

@helunwencser helunwencser commented Jul 11, 2024

Copy link

pytorch-bot bot commented Jul 11, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit d21c440 with merge base f9efb05 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Jul 11, 2024
@facebook-github-bot
Copy link
Contributor

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

helunwencser added a commit that referenced this pull request Jul 11, 2024
Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/)

ghstack-source-id: 233429303
Pull Request resolved: #4227
@facebook-github-bot
Copy link
Contributor

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

helunwencser added a commit that referenced this pull request Jul 12, 2024
Pull Request resolved: #4227

Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/)
ghstack-source-id: 233472217
@facebook-github-bot
Copy link
Contributor

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

helunwencser added a commit that referenced this pull request Jul 12, 2024
Pull Request resolved: #4227


ghstack-source-id: 233473801

Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/)
Copy link
Contributor

@larryliu0820 larryliu0820 left a comment

Choose a reason for hiding this comment

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

I like composition more than inheritance. Do you think it's better to keep the Tiktoken class and pass the special tokens through constructor? This way we don't have to create one class per model architecture.

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d159de2.

helunwencser added a commit that referenced this pull request Jul 15, 2024
helunwencser added a commit that referenced this pull request Jul 15, 2024
Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/)

ghstack-source-id: 233783029
Pull Request resolved: #4267
helunwencser added a commit that referenced this pull request Jul 15, 2024
helunwencser added a commit that referenced this pull request Jul 15, 2024
Pull Request resolved: #4267

Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/)
ghstack-source-id: 233787226
helunwencser added a commit that referenced this pull request Jul 15, 2024
helunwencser added a commit that referenced this pull request Jul 15, 2024
Pull Request resolved: #4267


ghstack-source-id: 233789064

Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/)
helunwencser added a commit that referenced this pull request Jul 15, 2024
helunwencser added a commit that referenced this pull request Jul 15, 2024
Pull Request resolved: #4267


ghstack-source-id: 233791856

Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/)
facebook-github-bot pushed a commit that referenced this pull request Jul 15, 2024
Summary:
Pull Request resolved: #4267

ghstack-source-id: 233791856

Reviewed By: kirklandsign

Differential Revision: D59765823

fbshipit-source-id: 80d10fb5a87f164f9c107487247b6f8022293d33
kedarnath03 pushed a commit to kedarnath03/executorch that referenced this pull request Jun 25, 2025
Pull Request resolved: pytorch/executorch#4227


ghstack-source-id: 233588006

Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/)
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