1. 01 Sep, 2021 13 commits
    • Patrick von Platen's avatar
      Add SpeechEncoderDecoder & Speech2Text2 (#13186) · 0b8c84e1
      Patrick von Platen authored
      
      
      * fix_torch_device_generate_test
      
      * remove @
      
      * up
      
      * correct some bugs
      
      * correct model
      
      * finish speech2text extension
      
      * up
      
      * up
      
      * up
      
      * up
      
      * Update utils/custom_init_isort.py
      
      * up
      
      * up
      
      * update with tokenizer
      
      * correct old tok
      
      * correct old tok
      
      * fix bug
      
      * up
      
      * up
      
      * add more tests
      
      * up
      
      * fix docs
      
      * up
      
      * fix some more tests
      
      * add better config
      
      * correct some more things
      "
      
      * fix tests
      
      * improve docs
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      * final fixes
      
      * finalize
      
      * Apply suggestions from code review
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      
      * apply suggestions Lysandre and Sylvain
      
      * apply nicos suggestions
      
      * upload everything
      
      * finish
      Co-authored-by: default avatarPatrick von Platen <patrick@huggingface.co>
      Co-authored-by: your_github_username <your_github_email>
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      0b8c84e1
    • Lysandre Debut's avatar
      9396b404
    • Hamid Shojanazeri's avatar
      Fix for the issue of device-id getting hardcoded for token_type_ids during... · 53ee995a
      Hamid Shojanazeri authored
      Fix for the issue of device-id getting hardcoded for token_type_ids during Tracing for ConvBert (#12287)
      
      * added token_type_ids buffer to fix the issue #5664
      
      * Handling the case that position_id buffer is not registered
      
      * added token_type_ids buffer to fix the issue #5664
      
      * modified to support device conversion when the model is traced
      53ee995a
    • Hamid Shojanazeri's avatar
      Fix for the issue of device-id getting hardcoded for position-ids during... · 5adf5cab
      Hamid Shojanazeri authored
      Fix for the issue of device-id getting hardcoded for position-ids during Tracing for Distillbert (#12290)
      
      * registered buffer for position-ids to address issues similar to issue#5664
      
      * added comment
      
      * added the flag to prevent from adding the buffer into the state_dict
      5adf5cab
    • Hamid Shojanazeri's avatar
      Fix for the issue of device-id getting hardcoded for position-ids during... · 5d1a3d13
      Hamid Shojanazeri authored
      Fix for the issue of device-id getting hardcoded for position-ids during Tracing for Flaubert (#12292)
      
      * adding position_ids buffer to fix the issue simialr to #5664
      
      * adding position-id buffer to address similar issues to #5664
      5d1a3d13
    • Lysandre Debut's avatar
      Torchscript test for Flaubert (#13353) · 58e999b7
      Lysandre Debut authored
      * Torchscript test for Flaubert
      
      * Update tests/test_modeling_flaubert.py
      
      * Update tests/test_modeling_flaubert.py
      58e999b7
    • Lysandre Debut's avatar
      Torchscript test for ConvBERT (#13352) · d07c771d
      Lysandre Debut authored
      * Torchscript test for ConvBERT
      
      * Apply suggestions from code review
      d07c771d
    • Lysandre Debut's avatar
      Torchscript test for DistilBERT (#13351) · 680733a7
      Lysandre Debut authored
      * Torchscript test for DistilBERT
      
      * Update tests/test_modeling_distilbert.py
      680733a7
    • Lysandre Debut's avatar
      Torchscript test (#13350) · 73a03812
      Lysandre Debut authored
      * Torchscript test
      
      * Remove print statement
      73a03812
    • Anton Lozhkov's avatar
      Add the `AudioClassificationPipeline` (#13342) · b9c6a976
      Anton Lozhkov authored
      * Add the audio classification pipeline
      
      * Remove autoconfig exception
      
      * Mark ffmpeg test as slow
      
      * Rearrange pipeline tests
      
      * Add small test
      
      * Replace asserts with ValueError
      b9c6a976
    • Patrick von Platen's avatar
      Update README.md · 02039352
      Patrick von Platen authored
      02039352
    • Jonathan Chang's avatar
      Add template for adding flax models (#12441) · d160782a
      Jonathan Chang authored
      
      
      * Add option to add flax
      
      * Add flax template for __init__.py
      
      * Add flax template for .rst
      
      * Copy TF modeling template
      
      * Add a missing line in modeling_tf_... template
      
      * Update first half of modeling_flax_..
      
      * Update encoder flax template
      
      * Copy test_modeling_tf... as test_modeling_flax...
      
      * Replace some TF to Flax in test_modeling_flax_...
      
      * Replace tf to np
      
      some function might not work, like _assert_tensors_equal
      
      * Replace remaining tf to np (might not work)
      
      * Fix cookiecutter
      
      * Add Flax in to_replace_... template
      
      * Update transformers-cli add-new-model
      
      * Save generate_flax in configuration.json
      
      This will be read by transformers-cli
      
      * Fix to_replace_... and cli
      
      * Fix replace cli
      
      * Fix cookiecutter name
      
      * Move docstring earlier to avoid not defined error
      
      * Fix a missing Module
      
      * Add encoder-decoder flax template from bart
      
      * Fix flax test
      
      * Make style
      
      * Fix endif
      
      * Fix replace all "utf-8 -> unp-8"
      
      * Update comment
      
      * Fix flax template (add missing ..._DOCSTRING)
      
      * Use flax_bart imports in template (was t5)
      
      * Fix unp
      
      * Update templates/adding_a_new_model/tests
      
      * Revert "Fix unp"
      
      This reverts commit dc9002a41d902c4f9b07343eab1cb350c8b7fd57.
      
      * Remove one line of copied from to suppress CI error
      
      * Use generate_tensorflow_pytorch_and_flax
      
      * Add a missing part
      
      * fix typo
      
      * fix flax config
      
      * add examples for flax
      
      * small rename
      
      * correct modeling imports
      
      * correct auto loading
      
      * corrects some flax tests
      
      * correct small typo
      
      * correct as type
      
      * finish modif
      
      * correct more templates
      
      * final fixes
      
      * add file testers
      
      * up
      
      * make sure tests match template regex
      
      * correct pytorch
      
      * correct tf
      
      * correct more tf
      
      * correct imports
      
      * minor error
      
      * minor error
      
      * correct init
      
      * more fixes
      
      * correct more flax tests
      
      * correct flax test
      
      * more fixes
      
      * correct docs
      
      * update
      
      * fix
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      d160782a
    • Patrick von Platen's avatar
      Update self-push.yml (#13364) · 8e208878
      Patrick von Platen authored
      8e208878
  2. 31 Aug, 2021 21 commits
  3. 30 Aug, 2021 6 commits