1. 19 Jun, 2020 2 commits
  2. 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
  3. 17 Jun, 2020 1 commit
  4. 16 Jun, 2020 3 commits
  5. 15 Jun, 2020 5 commits
  6. 12 Jun, 2020 4 commits
  7. 11 Jun, 2020 2 commits
  8. 10 Jun, 2020 8 commits
  9. 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
  10. 08 Jun, 2020 1 commit
  11. 06 Jun, 2020 1 commit
  12. 05 Jun, 2020 4 commits
  13. 04 Jun, 2020 2 commits
    • Julien Plu's avatar
      Tensorflow improvements (#4530) · f9414f75
      Julien Plu authored
      
      
      * Better None gradients handling
      
      * Apply Style
      
      * Apply Style
      
      * Create a loss class per task to compute its respective loss
      
      * Add loss classes to the ALBERT TF models
      
      * Add loss classes to the BERT TF models
      
      * Add question answering and multiple choice to TF Camembert
      
      * Remove prints
      
      * Add multiple choice model to TF DistilBERT + loss computation
      
      * Add question answering model to TF Electra + loss computation
      
      * Add token classification, question answering and multiple choice models to TF Flaubert
      
      * Add multiple choice model to TF Roberta + loss computation
      
      * Add multiple choice model to TF XLM + loss computation
      
      * Add multiple choice and question answering models to TF XLM-Roberta
      
      * Add multiple choice model to TF XLNet + loss computation
      
      * Remove unused parameters
      
      * Add task loss classes
      
      * Reorder TF imports + add new model classes
      
      * Add new model classes
      
      * Bugfix in TF T5 model
      
      * Bugfix for TF T5 tests
      
      * Bugfix in TF T5 model
      
      * Fix TF T5 model tests
      
      * Fix T5 tests + some renaming
      
      * Fix inheritance issue in the AutoX tests
      
      * Add tests for TF Flaubert and TF XLM Roberta
      
      * Add tests for TF Flaubert and TF XLM Roberta
      
      * Remove unused piece of code in the TF trainer
      
      * bugfix and remove unused code
      
      * Bugfix for TF 2.2
      
      * Apply Style
      
      * Divide TFSequenceClassificationAndMultipleChoiceLoss into their two respective name
      
      * Apply style
      
      * Mirror the PT Trainer in the TF one: fp16, optimizers and tb_writer as class parameter and better dataset handling
      
      * Fix TF optimizations tests and apply style
      
      * Remove useless parameter
      
      * Bugfix and apply style
      
      * Fix TF Trainer prediction
      
      * Now the TF models return the loss such as their PyTorch couterparts
      
      * Apply Style
      
      * Ignore some tests output
      
      * Take into account the SQuAD cls_index, p_mask and is_impossible parameters for the QuestionAnswering task models.
      
      * Fix names for SQuAD data
      
      * Apply Style
      
      * Fix conflicts with 2.11 release
      
      * Fix conflicts with 2.11
      
      * Fix wrongname
      
      * Add better documentation on the new create_optimizer function
      
      * Fix isort
      
      * logging_dir: use same default as PyTorch
      Co-authored-by: default avatarJulien Chaumond <chaumond@gmail.com>
      f9414f75
    • Funtowicz Morgan's avatar
      Introduce a new tensor type for return_tensors on tokenizer for NumPy (#4585) · 5bf9afbf
      Funtowicz Morgan authored
      * Refactor tensor creation in tokenizers.
      
      * Make sure to convert string to TensorType
      
      * Refactor convert_to_tensors_
      
      * Introduce numpy tensor creation
      
      * Format
      
      * Add unittest for TensorType creation from str
      
      * sorting imports
      
      * Added unittests for numpy tensor conversion.
      
      * Do not use in-place version for squeeze as numpy doesn't provide such feature.
      
      * Added extra parameter prepend_batch_axis: bool on prepare_for_model.
      
      * Ensure test_np_encode_plus_sent_to_model is not executed if encoder/decoder model.
      
      * style.
      
      * numpy tests require_torch for now while flax not merged.
      
      * Hopefully will make flake8 happy.
      
      * One more time 馃幎
      5bf9afbf
  14. 03 Jun, 2020 1 commit
  15. 02 Jun, 2020 1 commit