transformers/docs/source/model_doc
Ahmed Elnaggar 40ecaf0c2b
Add T5 Encoder for Feature Extraction (#8717)
* Add T5 Encoder class for feature extraction

* fix T5 encoder add_start_docstrings indent

* update init with T5 encoder

* update init with TFT5ModelEncoder

* remove TFT5ModelEncoder

* change T5ModelEncoder order in init

* add T5ModelEncoder to transformers init

* clean T5ModelEncoder

* update init with TFT5ModelEncoder

* add TFModelEncoder for Tensorflow

* update init with TFT5ModelEncoder

* Update src/transformers/models/t5/modeling_t5.py

change output from Seq2SeqModelOutput to BaseModelOutput

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>

* remove encoder_outputs

1. remove encoder_outputs from the function call.
2. remove the encoder_outputs If statement.
3. remove isinstance from return_dict.

* Authorize missing decoder keys

* remove unnecessary input parameters

remove pask_key_values and use_cache

* remove use_cache

remove use_cache from the forward method

* add doctoring for T5 encoder

add doctoring for T5 encoder with T5_ENCODER_INPUTS_DOCSTRING

* change return_dict to dot access

* add T5_ENCODER_INPUTS_DOCSTRING for TF T5

* change TFT5Encoder output type to BaseModelOutput

* remove unnecessary parameters for TFT5Encoder

* remove unnecessary if statement

* add import BaseModelOutput

* fix BaseModelOutput typo to TFBaseModelOutput

* update T5 doc with T5ModelEncoder

* add T5ModelEncoder to tests

* finish pytorch

* finish docs and mt5

* add mtf to init

* fix init

* remove n_positions

* finish PR

* Update src/transformers/models/mt5/modeling_mt5.py

Co-authored-by: Lysandre Debut <lysandre@huggingface.co>

* Update src/transformers/models/t5/modeling_t5.py

Co-authored-by: Lysandre Debut <lysandre@huggingface.co>

* Update src/transformers/models/t5/modeling_tf_t5.py

Co-authored-by: Lysandre Debut <lysandre@huggingface.co>

* Update src/transformers/models/mt5/modeling_tf_mt5.py

Co-authored-by: Lysandre Debut <lysandre@huggingface.co>

* make style

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
2020-11-30 08:34:40 +01:00
..
albert.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00
auto.rst [Tests] Add Common Test for Training + Fix a couple of bugs (#8415) 2020-11-09 18:24:41 +01:00
bart.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00
barthez.rst Add barthez model (#8393) 2020-11-27 12:31:42 -05:00
bert.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00
bertgeneration.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
blenderbot.rst TFMarian, TFMbart, TFPegasus, TFBlenderbot (#7987) 2020-10-30 11:23:16 -04:00
camembert.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
ctrl.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
deberta.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
dialogpt.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
distilbert.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
dpr.rst Fix many typos (#8708) 2020-11-21 22:58:10 -05:00
electra.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
encoderdecoder.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
flaubert.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
fsmt.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
funnel.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00
gpt.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
gpt2.rst Model parallel documentation (#8741) 2020-11-23 20:14:48 -05:00
layoutlm.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
longformer.rst Tf longformer for sequence classification (#8231) 2020-11-19 10:37:27 -05:00
lxmert.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
marian.rst Tokenizers should be framework agnostic (#8599) 2020-11-17 14:03:03 -05:00
mbart.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
mobilebert.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00
mt5.rst Add T5 Encoder for Feature Extraction (#8717) 2020-11-30 08:34:40 +01:00
pegasus.rst Tokenizers should be framework agnostic (#8599) 2020-11-17 14:03:03 -05:00
prophetnet.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
rag.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00
reformer.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
retribert.rst Models doc (#7345) 2020-09-23 13:20:45 -04:00
roberta.rst Flax/Jax documentation (#8331) 2020-11-11 14:53:36 -05:00
squeezebert.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
t5.rst Add T5 Encoder for Feature Extraction (#8717) 2020-11-30 08:34:40 +01:00
transformerxl.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00
xlm.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00
xlmprophetnet.rst [XLNet] Fix mems behavior (#8567) 2020-11-25 16:54:59 -05:00
xlmroberta.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
xlnet.rst Reorganize repo (#8580) 2020-11-16 21:43:42 -05:00