-
Notifications
You must be signed in to change notification settings - Fork 607
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
Conversation
Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/) [ghstack-poisoned]
🔗 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 ( 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. |
This pull request was exported from Phabricator. Differential Revision: D59651199 |
Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/) ghstack-source-id: 233429303 Pull Request resolved: #4227
Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D59651199 |
Pull Request resolved: #4227 Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/) ghstack-source-id: 233472217
Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D59651199 |
Pull Request resolved: #4227 ghstack-source-id: 233473801 Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/)
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 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.
Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D59651199 |
Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D59651199 |
Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D59651199 |
This pull request has been merged in d159de2. |
Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/) [ghstack-poisoned]
Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/) ghstack-source-id: 233783029 Pull Request resolved: #4267
Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/) [ghstack-poisoned]
Pull Request resolved: #4267 Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/) ghstack-source-id: 233787226
Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/) [ghstack-poisoned]
Pull Request resolved: #4267 ghstack-source-id: 233789064 Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/)
Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/) [ghstack-poisoned]
Pull Request resolved: #4267 ghstack-source-id: 233791856 Differential Revision: [D59765823](https://our.internmc.facebook.com/intern/diff/D59765823/)
Pull Request resolved: pytorch/executorch#4227 ghstack-source-id: 233588006 Differential Revision: [D59651199](https://our.internmc.facebook.com/intern/diff/D59651199/)
Stack from ghstack (oldest at bottom):
Differential Revision: D59651199