1. 12 Jan, 2021 1 commit
  2. 11 Jan, 2021 1 commit
  3. 06 Jan, 2021 3 commits
  4. 25 Dec, 2020 1 commit
  5. 16 Dec, 2020 1 commit
  6. 15 Dec, 2020 1 commit
    • NielsRogge's avatar
      [WIP] Tapas v4 (tres) (#9117) · 1551e2dc
      NielsRogge authored
      
      
      * First commit: adding all files from tapas_v3
      
      * Fix multiple bugs including soft dependency and new structure of the library
      
      * Improve testing by adding torch_device to inputs and adding dependency on scatter
      
      * Use Python 3 inheritance rather than Python 2
      
      * First draft model cards of base sized models
      
      * Remove model cards as they are already on the hub
      
      * Fix multiple bugs with integration tests
      
      * All model integration tests pass
      
      * Remove print statement
      
      * Add test for convert_logits_to_predictions method of TapasTokenizer
      
      * Incorporate suggestions by Google authors
      
      * Fix remaining tests
      
      * Change position embeddings sizes to 512 instead of 1024
      
      * Comment out positional embedding sizes
      
      * Update PRETRAINED_VOCAB_FILES_MAP and PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
      
      * Added more model names
      
      * Fix truncation when no max length is specified
      
      * Disable torchscript test
      
      * Make style & make quality
      
      * Quality
      
      * Address CI needs
      
      * Test the Masked LM model
      
      * Fix the masked LM model
      
      * Truncate when overflowing
      
      * More much needed docs improvements
      
      * Fix some URLs
      
      * Some more docs improvements
      
      * Test PyTorch scatter
      
      * Set to slow + minify
      
      * Calm flake8 down
      
      * First commit: adding all files from tapas_v3
      
      * Fix multiple bugs including soft dependency and new structure of the library
      
      * Improve testing by adding torch_device to inputs and adding dependency on scatter
      
      * Use Python 3 inheritance rather than Python 2
      
      * First draft model cards of base sized models
      
      * Remove model cards as they are already on the hub
      
      * Fix multiple bugs with integration tests
      
      * All model integration tests pass
      
      * Remove print statement
      
      * Add test for convert_logits_to_predictions method of TapasTokenizer
      
      * Incorporate suggestions by Google authors
      
      * Fix remaining tests
      
      * Change position embeddings sizes to 512 instead of 1024
      
      * Comment out positional embedding sizes
      
      * Update PRETRAINED_VOCAB_FILES_MAP and PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
      
      * Added more model names
      
      * Fix truncation when no max length is specified
      
      * Disable torchscript test
      
      * Make style & make quality
      
      * Quality
      
      * Address CI needs
      
      * Test the Masked LM model
      
      * Fix the masked LM model
      
      * Truncate when overflowing
      
      * More much needed docs improvements
      
      * Fix some URLs
      
      * Some more docs improvements
      
      * Add add_pooling_layer argument to TapasModel
      
      Fix comments by @sgugger and @patrickvonplaten
      
      * Fix issue in docs + fix style and quality
      
      * Clean up conversion script and add task parameter to TapasConfig
      
      * Revert the task parameter of TapasConfig
      
      Some minor fixes
      
      * Improve conversion script and add test for absolute position embeddings
      
      * Improve conversion script and add test for absolute position embeddings
      
      * Fix bug with reset_position_index_per_cell arg of the conversion cli
      
      * Add notebooks to the examples directory and fix style and quality
      
      * Apply suggestions from code review
      
      * Move from `nielsr/` to `google/` namespace
      
      * Apply Sylvain's comments
      Co-authored-by: default avatarsgugger <sylvain.gugger@gmail.com>
      Co-authored-by: default avatarRogge Niels <niels.rogge@howest.be>
      Co-authored-by: default avatarLysandreJik <lysandre.debut@reseau.eseo.fr>
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      Co-authored-by: default avatarsgugger <sylvain.gugger@gmail.com>
      1551e2dc
  7. 09 Dec, 2020 1 commit
  8. 07 Dec, 2020 1 commit
  9. 23 Nov, 2020 1 commit
    • Jessica Yung's avatar
      Add pip install update to resolve import error in transformers notebook (#8616) · 143b564e
      Jessica Yung authored
      
      
      * Add pip install update to resolve import error
      
      Add pip install upgrade tensorflow-gpu to remove error below:
      ```
      ---------------------------------------------------------------------------
      AttributeError                            Traceback (most recent call last)
      <ipython-input-2-094fadb93f3f> in <module>()
            1 import torch
      ----> 2 from transformers import AutoModel, AutoTokenizer, BertTokenizer
            3 
            4 torch.set_grad_enabled(False)
      
      4 frames
      /usr/local/lib/python3.6/dist-packages/transformers/__init__.py in <module>()
          133 
          134 # Pipelines
      --> 135 from .pipelines import (
          136     Conversation,
          137     ConversationalPipeline,
      
      /usr/local/lib/python3.6/dist-packages/transformers/pipelines.py in <module>()
           46     import tensorflow as tf
           47 
      ---> 48     from .modeling_tf_auto import (
           49         TF_MODEL_FOR_QUESTION_ANSWERING_MAPPING,
           50         TF_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING,
      
      /usr/local/lib/python3.6/dist-packages/transformers/modeling_tf_auto.py in <module>()
           49 from .configuration_utils import PretrainedConfig
           50 from .file_utils import add_start_docstrings
      ---> 51 from .modeling_tf_albert import (
           52     TFAlbertForMaskedLM,
           53     TFAlbertForMultipleChoice,
      
      /usr/local/lib/python3.6/dist-packages/transformers/modeling_tf_albert.py in <module>()
           22 import tensorflow as tf
           23 
      ---> 24 from .activations_tf import get_tf_activation
           25 from .configuration_albert import AlbertConfig
           26 from .file_utils import (
      
      /usr/local/lib/python3.6/dist-packages/transformers/activations_tf.py in <module>()
           52     "gelu": tf.keras.layers.Activation(gelu),
           53     "relu": tf.keras.activations.relu,
      ---> 54     "swish": tf.keras.activations.swish,
           55     "silu": tf.keras.activations.swish,
           56     "gelu_new": tf.keras.layers.Activation(gelu_new),
      
      AttributeError: module 'tensorflow_core.python.keras.api._v2.keras.activations' has no attribute 'swish'
      ```
      I have tried running the colab after this change and it seems to work fine (all the cells run with no errors).
      
      * Update notebooks/02-transformers.ipynb
      
      only need to upgrade tensorflow, not tensorflow-gpu.
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      143b564e
  10. 02 Nov, 2020 2 commits
  11. 22 Oct, 2020 2 commits
  12. 06 Oct, 2020 1 commit
  13. 05 Oct, 2020 1 commit
  14. 01 Oct, 2020 1 commit
  15. 21 Sep, 2020 1 commit
  16. 17 Sep, 2020 1 commit
  17. 08 Sep, 2020 1 commit
  18. 31 Aug, 2020 1 commit
  19. 30 Aug, 2020 1 commit
  20. 20 Aug, 2020 1 commit
  21. 08 Aug, 2020 1 commit
  22. 28 Jul, 2020 1 commit
  23. 10 Jul, 2020 1 commit
  24. 08 Jul, 2020 2 commits
  25. 01 Jul, 2020 1 commit
  26. 29 Jun, 2020 1 commit
  27. 26 Jun, 2020 2 commits
  28. 24 Jun, 2020 1 commit
  29. 22 Jun, 2020 1 commit
  30. 18 Jun, 2020 1 commit
  31. 03 Jun, 2020 1 commit
  32. 02 Jun, 2020 1 commit
  33. 29 May, 2020 2 commits