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
TF port of ESM #19587
Merged
Merged
TF port of ESM #19587
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f77c6fd
Partial TF port for ESM model
8a2449b
Add ESM-TF tests
Rocketknight1 ddcb48d
Add the various imports for TF-ESM
Rocketknight1 10cac9f
TF weight conversion almost ready
Rocketknight1 4f6eff2
Stop ignoring the decoder weights in PT
Rocketknight1 9ce1acd
Add tests and lots of fixes
Rocketknight1 8a89db8
fix-copies
Rocketknight1 c68f3ef
Fix imports, add model docs
Rocketknight1 f074cd7
Add get_vocab() to tokenizer
Rocketknight1 840df9e
Fix vocab links for pretrained files
Rocketknight1 d89bef0
Allow multiple inputs with a sep
Rocketknight1 345b360
Use EOS as SEP token because ESM vocab lacks SEP
Rocketknight1 c3cc44f
Correctly return special tokens mask from ESM tokenizer
Rocketknight1 5dbf24c
make fixup
Rocketknight1 e659a9f
Stop testing unsupported embedding resizing
Rocketknight1 7ebbf2d
Handle TF bias correctly
Rocketknight1 9f10249
Skip all models with slow tokenizers in the token classification test
Rocketknight1 357877a
Fixing the batch/unbatcher of pipelines to accomodate the `None` being
Narsil f5fbfb9
Fixing pipeline bug caused by slow tokenizer being different.
Narsil 7f85040
Update src/transformers/models/esm/modeling_tf_esm.py
Rocketknight1 82d39c1
Update src/transformers/models/esm/modeling_tf_esm.py
Rocketknight1 068374f
Update src/transformers/models/esm/modeling_tf_esm.py
Rocketknight1 ca2a52f
Update set_input_embeddings and the copyright notices
Rocketknight1 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Will need an update :-)
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.
Yep, all of these will be moved to
facebook
before the next release!