1. 23 Nov, 2020 9 commits
    • Sylvain Gugger's avatar
      Change default cache path (#8734) · 90002427
      Sylvain Gugger authored
      
      
      * Change default cache path
      
      * Document changes
      
      * Apply suggestions from code review
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      90002427
    • Julien Chaumond's avatar
      Improve bert-japanese tokenizer handling (#8659) · 0cc5ab13
      Julien Chaumond authored
      
      
      * Make ci fail
      
      * Try to make tests actually run?
      
      * CI finally failing?
      
      * Fix CI
      
      * Revert "Fix CI"
      
      This reverts commit ca7923be7334d4e571b023478ebdd6b33dfd0ebb.
      
      * Ooops wrong one
      
      * one more try
      
      * Ok ok let's move this elsewhere
      
      * Alternative to globals() (#8667)
      
      * Alternative to globals()
      
      * Error is raised later so return None
      
      * Sentencepiece not installed make some tokenizers None
      
      * Apply Lysandre wisdom
      
      * Slightly clearer comment?
      
      cc @sgugger
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      0cc5ab13
    • Amine Abdaoui's avatar
      [model_cards]: control input examples of Geotrend models (#8727) · eec76615
      Amine Abdaoui authored
      * [model_cards]: control arabic model examples
      
      * [model_cards]: control input examples of Geotrend models
      
      * [model_cards]: add link to generatation script
      eec76615
    • 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
    • Yossi Synett's avatar
    • Tony's avatar
      [model_cards] Add card for gpt2-rnm (#8673) · 48cc2247
      Tony authored
      48cc2247
    • Nguyen Van Nha's avatar
      create README.md (#8682) · 52585e40
      Nguyen Van Nha authored
      
      
      * create README.md
      
      * Apply suggestions from code review
      Co-authored-by: default avatarJulien Chaumond <chaumond@gmail.com>
      52585e40
    • Sagor Sarker's avatar
      b5187e31
    • moniquebm's avatar
      Create README.md (#8630) · b6d864e2
      moniquebm authored
      
      
      * Create README.md
      
      * correct metrics id
      
      cc @lhoestq
      Co-authored-by: default avatarJulien Chaumond <chaumond@gmail.com>
      b6d864e2
  2. 22 Nov, 2020 1 commit
  3. 20 Nov, 2020 6 commits
  4. 19 Nov, 2020 19 commits
  5. 18 Nov, 2020 5 commits