1. 24 Jun, 2020 1 commit
  2. 23 Jun, 2020 4 commits
  3. 22 Jun, 2020 4 commits
    • Thomas Wolf's avatar
      [tokenizers] Fix #5081 and improve backward compatibility (#5125) · ebc36108
      Thomas Wolf authored
      * fix #5081 and improve backward compatibility (slightly)
      
      * add nlp to setup.cfg - style and quality
      
      * align default to previous default
      
      * remove test that doesn't generalize
      ebc36108
    • Joseph Liu's avatar
      Output hidden states (#4978) · f4e1f022
      Joseph Liu authored
      
      
      * Configure all models to use output_hidden_states as argument passed to foward()
      
      * Pass all tests
      
      * Remove cast_bool_to_primitive in TF Flaubert model
      
      * correct tf xlnet
      
      * add pytorch test
      
      * add tf test
      
      * Fix broken tests
      
      * Configure all models to use output_hidden_states as argument passed to foward()
      
      * Pass all tests
      
      * Remove cast_bool_to_primitive in TF Flaubert model
      
      * correct tf xlnet
      
      * add pytorch test
      
      * add tf test
      
      * Fix broken tests
      
      * Refactor output_hidden_states for mobilebert
      
      * Reset and remerge to master
      Co-authored-by: default avatarJoseph Liu <joseph.liu@coinflex.com>
      Co-authored-by: default avatarpatrickvonplaten <patrick.v.platen@gmail.com>
      f4e1f022
    • RafaelWO's avatar
      Added feature to move added tokens in vocabulary for Transformer-XL (#4953) · b99ad457
      RafaelWO authored
      
      
      * Fixed resize_token_embeddings for transfo_xl model
      
      * Fixed resize_token_embeddings for transfo_xl.
      
      Added custom methods to TransfoXLPreTrainedModel for resizing layers of
      the AdaptiveEmbedding.
      
      * Updated docstring
      
      * Fixed resizinhg cutoffs; added check for new size of embedding layer.
      
      * Added test for resize_token_embeddings
      
      * Fixed code quality
      
      * Fixed unchanged cutoffs in model.config
      
      * Added feature to move added tokens in tokenizer.
      
      * Fixed code quality
      
      * Added feature to move added tokens in tokenizer.
      
      * Fixed code quality
      
      * Fixed docstring, renamed sym to 	oken.
      Co-authored-by: default avatarRafael Weingartner <rweingartner.its-b2015@fh-salzburg.ac.at>
      b99ad457
    • Patrick von Platen's avatar
      Benchmarks (#4912) · fa0be6d7
      Patrick von Platen authored
      * finish benchmark
      
      * fix isort
      
      * fix setup cfg
      
      * retab
      
      * fix time measuring of tf graph mode
      
      * fix tf cuda
      
      * clean code
      
      * better error message
      fa0be6d7
  4. 19 Jun, 2020 2 commits
  5. 18 Jun, 2020 3 commits
    • Sylvain Gugger's avatar
      Fix #5114 (#5122) · 5f721ad6
      Sylvain Gugger authored
      5f721ad6
    • Deniz's avatar
      tf add resize_token_embeddings method (#4351) · 32e94cff
      Deniz authored
      
      
      * resize token embeddings
      
      * add tokens
      
      * add tokens
      
      * add tokens
      
      * add t5 token method
      
      * add t5 token method
      
      * add t5 token method
      
      * typo
      
      * debugging input
      
      * debugging input
      
      * debug
      
      * debug
      
      * debug
      
      * trying to set embedding tokens properly
      
      * set embeddings for generation head too
      
      * set embeddings for generation head too
      
      * debugging
      
      * debugging
      
      * enable generation
      
      * add base method
      
      * add base method
      
      * add base method
      
      * return logits in the main call
      
      * reverting to generation
      
      * revert back
      
      * set embeddings for the bert main layer
      
      * description
      
      * fix conflicts
      
      * logging
      
      * set base model as self
      
      * refactor
      
      * tf_bert add method
      
      * tf_bert add method
      
      * tf_bert add method
      
      * tf_bert add method
      
      * tf_bert add method
      
      * tf_bert add method
      
      * tf_bert add method
      
      * tf_bert add method
      
      * v0
      
      * v0
      
      * finalize
      
      * final
      
      * black
      
      * add tests
      
      * revert back the emb call
      
      * comments
      
      * comments
      
      * add the second test
      
      * add vocab size condig
      
      * add tf models
      
      * add tf models. add common tests
      
      * remove model specific embedding tests
      
      * stylish
      
      * remove files
      
      * stylez
      
      * Update src/transformers/modeling_tf_transfo_xl.py
      
      change the error.
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      
      * adding unchanged weight test
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      32e94cff
    • Suraj Patil's avatar
      ElectraForMultipleChoice (#4954) · ca2d0f98
      Suraj Patil authored
      
      
      * add ElectraForMultipleChoice
      
      * add  test_for_multiple_choice
      
      * add ElectraForMultipleChoice in auto model
      
      * add ElectraForMultipleChoice in all_model_classes
      
      * add SequenceSummary related parameters
      
      * get rid pooler, use SequenceSummary instead
      
      * add electra multiple choice test
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      ca2d0f98
  6. 17 Jun, 2020 1 commit
  7. 16 Jun, 2020 3 commits
  8. 15 Jun, 2020 5 commits
  9. 12 Jun, 2020 4 commits
  10. 11 Jun, 2020 2 commits
  11. 10 Jun, 2020 8 commits
  12. 09 Jun, 2020 2 commits
    • Bharat Raghunathan's avatar
      [All models] Extend config.output_attentions with output_attentions function arguments (#4538) · 6e603cb7
      Bharat Raghunathan authored
      
      
      * DOC: Replace instances of ``config.output_attentions`` with function argument ``output_attentions``
      
      * DOC: Apply Black Formatting
      
      * Fix errors where output_attentions was undefined
      
      * Remove output_attentions in classes per review
      
      * Fix regressions on tests having `output_attention`
      
      * Fix further regressions in tests relating to `output_attentions`
      
      Ensure proper propagation of `output_attentions` as a function parameter
      to all model subclasses
      
      * Fix more regressions in `test_output_attentions`
      
      * Fix issues with BertEncoder
      
      * Rename related variables to `output_attentions`
      
      * fix pytorch tests
      
      * fix bert and gpt2 tf
      
      * Fix most TF tests for `test_output_attentions`
      
      * Fix linter errors and more TF tests
      
      * fix conflicts
      
      * DOC: Apply Black Formatting
      
      * Fix errors where output_attentions was undefined
      
      * Remove output_attentions in classes per review
      
      * Fix regressions on tests having `output_attention`
      
      * fix conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * fix pytorch tests
      
      * fix conflicts
      
      * fix conflicts
      
      * Fix linter errors and more TF tests
      
      * fix tf tests
      
      * make style
      
      * fix isort
      
      * improve output_attentions
      
      * improve tensorflow
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      6e603cb7
    • Patrick von Platen's avatar
      [Benchmark] add tpu and torchscipt for benchmark (#4850) · 2cfb947f
      Patrick von Platen authored
      
      
      * add tpu and torchscipt for benchmark
      
      * fix name in tests
      
      * "fix email"
      
      * make style
      
      * better log message for tpu
      
      * add more print and info for tpu
      
      * allow possibility to print tpu metrics
      
      * correct cpu usage
      
      * fix test for non-install
      
      * remove bugus file
      
      * include psutil in testing
      
      * run a couple of times before tracing in torchscript
      
      * do not allow tpu memory tracing for now
      
      * make style
      
      * add torchscript to env
      
      * better name for torch tpu
      Co-authored-by: default avatarPatrick von Platen <patrick@huggingface.co>
      2cfb947f
  13. 08 Jun, 2020 1 commit