-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Add run_glue_tpu.py
that trains models on TPUs
#3702
Merged
Merged
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
5a44823
Initial commit to get BERT + run_glue.py on TPU
jysohn23 837fac2
Add README section for TPU and address comments.
jysohn23 e056eff
Initial commit to get GLUE (BERT) on TPU (#2)
jysohn23 b421758
Cleanup TPU bits from run_glue.py (#3)
jysohn23 6ef1edd
Cleanup TPU bits from run_glue.py
jysohn23 3129ad3
No need to call `xm.mark_step()` explicitly (#4)
jysohn23 295190f
Resolve R/W conflicts from multiprocessing (#5)
jysohn23 bb3fcee
Add XLNet in list of models for `run_glue_tpu.py` (#6)
jysohn23 c5c8293
Add RoBERTa to list of models in TPU GLUE (#7)
jysohn23 4ba47e5
Add RoBERTa and DistilBert to list of models in TPU GLUE (#8)
jysohn23 6d17e91
Use barriers to reduce duplicate work/resources (#9)
jysohn23 6e20572
Shard eval dataset and aggregate eval metrics (#10)
jysohn23 14a0da3
Only use tb_writer from master (#11)
jysohn23 13cea37
Merge remote-tracking branch 'upstream-hf/master' into tpu
jysohn23 3feb8e1
Apply huggingface black code formatting
jysohn23 54438f7
Style
LysandreJik 23829c0
Remove `--do_lower_case` as example uses cased
jysohn23 3e45ae3
Add option to specify tensorboard logdir
jysohn23 8296b1a
Using configuration for `xla_device`
LysandreJik 306851c
Merge pull request #1 from jysohn23/tpu-with-config
jysohn23 1eb47c5
Prefix TPU specific comments.
jysohn23 10f5b9a
num_cores clarification and namespace eval metrics
jysohn23 6e959fd
Cache features file under `args.cache_dir`
jysohn23 1e62165
Rename `run_glue_tpu` to `run_tpu_glue`
LysandreJik 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 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.
I know it's present in other example codes (and should be changed), but should we keep the
--do_lower_case
option with cased models?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.
Good point. Removed.