- 05 Apr, 2022 10 commits
-
-
Stas Bekman authored
* [benchmark tool] trainer-benchmark.py * improve * massive rework/expansion * fix * mucho improved * improved * fix prefix * fix * fix diff calculation * address suggestions
-
John Giorgi authored
If global_attention_mask is found in the models inputs (used by certain models, like LED) in the prediction_step method of Seq2SeqTrainer, it is added to the gen_kwargs, which are passed to model.decode(). This allows us to properly set the global attention when decoding.
-
Stas Bekman authored
-
Rishav Chandra Varma authored
* added type hints for mbart tensorflow tf implementation * Adding missing type hints for mBART model Tensorflow Implementation model added with missing type hints * Missing Type hints - correction For TF model * Code fixup using make quality tests * Hint types - typo error * make fix-copies and make fixup * type hints * updated files * type hints update * making dependent modesls coherent * Type hints for BigBird * removing typos Co-authored-by:matt <rocketknight1@gmail.com>
-
Matt authored
* Adding new train_step logic to make things less confusing for users * DO NOT ASK WHY WE NEED THAT SUBCLASS * Metrics now working, at least for single-output models with type annotations! * Updates and TODOs for the new train_step * Make fixup * Temporary test workaround until T5 has types * Temporary test workaround until T5 has types * I think this actually works! Needs a lot of tests though * MAke style/quality * Revert changes to T5 tests * Deleting the aforementioned unmentionable subclass * Deleting the aforementioned unmentionable subclass * Adding a Keras API test * Style fixes * Removing unneeded TODO and comments * Update test_step too * Stop trying to compute metrics with the dummy_loss, patch up test * Make style * make fixup * Docstring cleanup * make fixup * make fixup * Stop expanding 1D input tensors when using dummy loss * Adjust T5 test given the new compile() * make fixup * Skipping test for convnext * Removing old T5-specific Keras test now that we have a common one * make fixup * make fixup * Only skip convnext test on CPU * Update src/transformers/modeling_tf_utils.py Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com> * Update src/transformers/modeling_tf_utils.py Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com> * Avoiding TF import issues * make fixup * Update compile() to support TF 2.3 * Skipping model.fit() on template classes for now * Skipping model.fit() on template class tests for now * Replace ad-hoc solution with find_labels * make fixup Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
-
Patrick von Platen authored
* [Doctests] Correct filenaming * improve quicktour * make style
-
Suraj Patil authored
-
Francesco Saverio Zuppichini authored
-
SaulLu authored
* add a template to add missing tokenization test * add cookiecutter setting * improve doc * Update templates/adding_a_missing_tokenization_test/README.md Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
-
Yih-Dar authored
Co-authored-by:ydshieh <ydshieh@users.noreply.github.com>
-
- 04 Apr, 2022 11 commits
-
-
Sylvain Gugger authored
-
Andres Codas authored
* initialize the default rank set on TrainerState * fix style
-
Sanchit Gandhi authored
-
Joao Gante authored
* Add unpack_inputs to remaining models * removed kwargs to `call()` in TF models * fix TF T5 tests
-
SaulLu authored
* add new tests * add comment to overridden tests
-
Karim Foda authored
* fix formatting and remove use_auth * Add use_auth_token to Flax examples
-
Sylvain Gugger authored
* Reorganize doc for multilingual support * Fix style * Style * Toc trees * Adapt templates
-
Sylvain Gugger authored
* Add utility to find model labels * Use it in the Trainer * Update src/transformers/utils/generic.py Co-authored-by:
Matt <Rocketknight1@users.noreply.github.com> * Quality Co-authored-by:
Matt <Rocketknight1@users.noreply.github.com>
-
Daniel Stancl authored
-
Nicolas Patry authored
-
Patrick von Platen authored
* [FlaxSpeechEncoderDecoder] Fix dtype bug * more fixes
-
- 01 Apr, 2022 12 commits
-
-
Yih-Dar authored
Co-authored-by:ydshieh <ydshieh@users.noreply.github.com>
-
Lysandre Debut authored
* Pin tokenizers version <0.13 * Style
-
NielsRogge authored
Co-authored-by:Niels Rogge <nielsrogge@nielss-mbp.home>
-
Yih-Dar authored
* use random_attention_mask for TF tests * Fix for TFCLIP test (for now). Co-authored-by:ydshieh <ydshieh@users.noreply.github.com>
-
Gunjan Chhablani authored
* Remove MBart subclass of XLMRoberta in tokenzier * Fix style * Copy docs from MBart50 tokenizer
-
Rishav Chandra Varma authored
* added type hints for mbart tensorflow tf implementation * Adding missing type hints for mBART model Tensorflow Implementation model added with missing type hints * Missing Type hints - correction For TF model * Code fixup using make quality tests * Hint types - typo error * make fix-copies and make fixup * type hints * updated files * type hints update * making dependent modesls coherent Co-authored-by:matt <rocketknight1@gmail.com>
-
Gunjan Chhablani authored
-
Gunjan Chhablani authored
* Add type hints to PLBart PyTorch * Remove pending merge conflicts * Fix PLBart Type Hints * Add changes from review
-
Dahlbomii authored
-
Ferdinand Schlatt authored
-
Jim Rohrer authored
* Add beit onnx conversion support * Updated docs * Added cross reference to ViT ONNX config
-
Cathy authored
-
- 31 Mar, 2022 7 commits
-
-
Anton Lozhkov authored
* [research] link to the XTREME-S paper * Update examples/research_projects/xtreme-s/README.md Co-authored-by:
Lysandre Debut <lysandre.debut@reseau.eseo.fr> Co-authored-by:
Lysandre Debut <lysandre.debut@reseau.eseo.fr>
-
Sylvain Gugger authored
-
Mowaninuola Osifeso authored
* added type hints to xglm pytorch * Update src/transformers/models/xglm/modeling_xglm.py * Update src/transformers/models/xglm/modeling_xglm.py Co-authored-by:Matt <Rocketknight1@users.noreply.github.com>
-
Bhadresh Savani authored
-
Santiago G贸mez authored
* Translate accelerate.mdx from english to spanish * Update docs/source_es/accelerate.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Apply suggestions from code review Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Apply suggestions from code review Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Fix nits and finish translation Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com>
-
Liliana Badillo authored
* Translate installation.mdx to Spanish * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/installation.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Fix nits and finish translation Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com>
-
Juanjo do Olmo authored
* Duplication of the source eng file * Spanish translation of the file multilingual.mdx * Update docs/source_es/multilingual.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/multilingual.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/multilingual.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/multilingual.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/multilingual.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/multilingual.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Update docs/source_es/multilingual.mdx Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com> * Fix nits and finish translation Co-authored-by:
Omar U. Espejel <espejelomar@gmail.com>
-