-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Add magic method to our TF models to convert datasets with column inference #17160
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
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
1ccd726
Add method to call to_tf_dataset() with column inference
Rocketknight1 2c71f84
Add test for dataset creation
Rocketknight1 919cf82
Add a default arg for data collator
Rocketknight1 0066598
Fix test
Rocketknight1 b40fa6e
Fix call with non-dev version of datasets
Rocketknight1 f5f667d
Test correct column removal too
Rocketknight1 258392b
make fixup
Rocketknight1 ae4be4a
More tests to make sure we remove unwanted columns
Rocketknight1 673e23d
Fix test to avoid predicting on unbuilt models
Rocketknight1 0ee6e1d
Fix test to avoid predicting on unbuilt models
Rocketknight1 2313b3a
Fix test to remove unwanted head mask columns from inputs
Rocketknight1 221ae78
Stop pushing your debug breakpoints to the main repo of the $2bn comp…
Rocketknight1 1506182
Skip the test in convnext because no grouped conv support
Rocketknight1 a9010b1
Drop bools from the dataset dict
Rocketknight1 0a29747
Make style
Rocketknight1 5b35ff4
Skip the training test for models whose input dicts don't give us labels
Rocketknight1 a1b6e92
Skip transformerXL in the test because it doesn't return a simple loss
Rocketknight1 33812ea
Skip TFTapas because of some odd NaN losses
Rocketknight1 fb19ea9
make style
Rocketknight1 a7f6a85
make fixup
Rocketknight1 0787a45
Add docstring
Rocketknight1 24c0a66
fixup
Rocketknight1 fc89e11
Update src/transformers/modeling_tf_utils.py
Rocketknight1 0d4553d
Update src/transformers/modeling_tf_utils.py
Rocketknight1 0311172
Update src/transformers/modeling_tf_utils.py
Rocketknight1 a7b1f60
Update src/transformers/modeling_tf_utils.py
Rocketknight1 f01f8c2
Update src/transformers/modeling_tf_utils.py
Rocketknight1 24cc6a6
Remove breakpoint from tests
Rocketknight1 e381daf
Fix assert, add requires_backends
Rocketknight1 0f473db
Protect tokenizer import with if TYPE_CHECKING
Rocketknight1 753c0c5
make fixup
Rocketknight1 b23efa1
Add noqa, more fixup
Rocketknight1 163b4f7
More rearranging for ~* aesthetics *~
Rocketknight1 e29f98f
Adding defaults for shuffle and batch_size to match to_tf_dataset()
Rocketknight1 726cb39
Update src/transformers/modeling_tf_utils.py
Rocketknight1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.