"tests/test_modeling_flaubert.py" did not exist on "dd4df80f0b77c8f8e07e502298df0121cada9ce8"
  1. 18 Jun, 2020 1 commit
    • 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
  2. 11 Jun, 2020 1 commit
  3. 09 Jun, 2020 1 commit
    • 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
  4. 04 Jun, 2020 1 commit
    • 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
  5. 14 Apr, 2020 1 commit
  6. 06 Apr, 2020 1 commit
  7. 01 Apr, 2020 1 commit
  8. 31 Mar, 2020 1 commit
  9. 19 Mar, 2020 1 commit
    • Patrick von Platen's avatar
      Support T5 Generation (#3228) · bbf26c4e
      Patrick von Platen authored
      
      
      * fix conflicts
      
      * update bart max length test
      
      * correct spelling mistakes
      
      * implemented model specific encode function
      
      * fix merge conflicts
      
      * better naming
      
      * save intermediate state -> need to rethink strucuture a bit
      
      * leave tf problem as it is for now
      
      * current version
      
      * add layers.pop
      
      * remove ipdb
      
      * make style
      
      * clean return cut decoding
      
      * remove ipdbs
      
      * Fix restoring layers in the decoders that doesnt exists.
      
      * push good intermediate solution for now
      
      * fix conflicts
      
      * always good to refuse to merge conflicts when rebasing
      
      * fix small bug
      
      * improve function calls
      
      * remove unused file
      
      * add correct scope behavior for t5_generate
      Co-authored-by: default avatarMorgan Funtowicz <funtowiczmo@gmail.com>
      bbf26c4e
  10. 18 Mar, 2020 1 commit
  11. 17 Mar, 2020 1 commit
  12. 04 Mar, 2020 1 commit
  13. 03 Mar, 2020 5 commits
    • Gunnlaugur Thor Briem's avatar
      fix unused imports and style · 96c49901
      Gunnlaugur Thor Briem authored
      96c49901
    • Gunnlaugur Thor Briem's avatar
      Put @keras_serializable only on layers it works on · 470753bc
      Gunnlaugur Thor Briem authored
      And only run the test on TF*MainLayer classes so marked.
      470753bc
    • Gunnlaugur Thor Briem's avatar
      Use class decorator instead of superclass · 0c716ede
      Gunnlaugur Thor Briem authored
      When supplied by Keras deserialization, the config parameter to initializers
      will be a dict. So intercept it and convert to PretrainedConfig object (and
      store in instance attribute for get_config to get at it) before passing to the
      actual initializer. To accomplish this, and repeat as little code as possible,
      use a class decorator on TF*MainLayer classes.
      0c716ede
    • Gunnlaugur Thor Briem's avatar
      b8da16f3
    • Patrick von Platen's avatar
      Add generate() functionality to TF 2.0 (#3063) · 41341003
      Patrick von Platen authored
      * add first copy past test to tf 2 generate
      
      * add tf top_k_top_p_filter fn
      
      * add generate function for TF
      
      * add generate function for TF
      
      * implemented generate for all models expect transfoXL
      
      * implemented generate for all models expect transfoXL
      
      * implemented generate for all models expect transfoXL
      
      * make style
      
      * change permission of test file to correct ones
      
      * delete ipdb
      
      * delete ipdb
      
      * fix bug and finish simple gpt2 integration test
      
      * clean test file
      
      * clean test file
      
      * make style
      
      * make style
      
      * make style
      
      * make style
      
      * change import style
      
      * change import style
      
      * make style
      
      * make style
      
      * add decorators
      
      * add decorators
      
      * fix tf ctrl bug dim => axis in TF
      
      * make style
      
      * make style
      
      * refactored test file
      
      * refactored test file
      
      * take out test_torch_tf_conversion if nothing is defined
      
      * take out test_torch_tf_conversion if nothing is defined
      
      * remove useless files
      
      * remove useless files
      
      * fix conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * solve conflicts
      
      * solve conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * merge conflicts
      
      * delete ipdb
      
      * exposed top_k_top_p_filtering fns
      
      * delete weirdly created w! file
      
      * add comment to test tf common modeling
      
      * fix conflicts
      
      * fix conflicts
      
      * make style
      
      * merge conflicts
      
      * make style
      
      * change tf.tensor.shape to shape_list(tensor)
      41341003
  14. 02 Mar, 2020 1 commit
    • Julien Chaumond's avatar
      TF GPU CI (#3085) · f169957d
      Julien Chaumond authored
      * debug env
      
      * Restrict TF GPU memory
      
      * Fixup
      
      * One more test
      
      * rm debug logs
      
      * Fixup
      f169957d
  15. 28 Jan, 2020 1 commit
  16. 27 Jan, 2020 1 commit
  17. 06 Jan, 2020 2 commits
  18. 29 Dec, 2019 1 commit
  19. 23 Dec, 2019 1 commit
  20. 22 Dec, 2019 10 commits
  21. 21 Dec, 2019 1 commit
    • Aymeric Augustin's avatar
      Reformat source code with black. · fa84ae26
      Aymeric Augustin authored
      This is the result of:
      
          $ black --line-length 119 examples templates transformers utils hubconf.py setup.py
      
      There's a lot of fairly long lines in the project. As a consequence, I'm
      picking the longest widely accepted line length, 119 characters.
      
      This is also Thomas' preference, because it allows for explicit variable
      names, to make the code easier to understand.
      fa84ae26
  22. 10 Dec, 2019 2 commits
  23. 09 Dec, 2019 1 commit
  24. 06 Dec, 2019 1 commit
    • Aymeric Augustin's avatar
      Remove dependency on pytest for running tests (#2055) · 35401fe5
      Aymeric Augustin authored
      * Switch to plain unittest for skipping slow tests.
      
      Add a RUN_SLOW environment variable for running them.
      
      * Switch to plain unittest for PyTorch dependency.
      
      * Switch to plain unittest for TensorFlow dependency.
      
      * Avoid leaking open files in the test suite.
      
      This prevents spurious warnings when running tests.
      
      * Fix unicode warning on Python 2 when running tests.
      
      The warning was:
      
          UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
      
      * Support running PyTorch tests on a GPU.
      
      Reverts 27e015bd.
      
      * Tests no longer require pytest.
      
      * Make tests pass on cuda
      35401fe5
  25. 04 Dec, 2019 1 commit