transformers/docs/source
Ratthachat (Jung) 026a2ff225
Add TFDPR (#8203)
* Create modeling_tf_dpr.py

* Add TFDPR

* Add back TFPegasus, TFMarian, TFMBart, TFBlenderBot

last commit accidentally deleted these 4 lines, so I recover them back

* Add TFDPR

* Add TFDPR

* clean up some comments, add TF input-style doc string

* Add TFDPR

* Make return_dict=False as default

* Fix return_dict bug (in .from_pretrained)

* Add get_input_embeddings()

* Create test_modeling_tf_dpr.py

The current version is already passed all 27 tests!
Please see the test run at : 
https://colab.research.google.com/drive/1czS_m9zy5k-iSJbzA_DP1k1xAAC_sdkf?usp=sharing

* fix quality

* delete init weights

* run fix copies

* fix repo consis

* del config_class, load_tf_weights

They shoud be 'pytorch only'

* add config_class back

after removing it, test failed ... so totally only removing "use_tf_weights = None" on Lysandre suggestion

* newline after .. note::

* import tf, np (Necessary for ModelIntegrationTest)

* slow_test from_pretrained with from_pt=True

At the moment we don't have TF weights (since we don't have official official TF model)
Previously, I did not run slow test, so I missed this bug

* Add simple TFDPRModelIntegrationTest

Note that this is just a test that TF and Pytorch gives approx. the same output.
However, I could not test with the official DPR repo's output yet

* upload correct tf model

* remove position_ids as missing keys

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: patrickvonplaten <patrick@huggingface.co>
2020-11-11 12:28:09 -05:00
..
_static v3.5.0 documentation 2020-11-10 08:58:47 -05:00
imgs Guide to fixed-length model perplexity evaluation (#5449) 2020-07-07 16:04:15 -06:00
internal Refactoring the generate() function (#6949) 2020-11-03 16:04:22 +01:00
main_classes [All Seq2Seq model + CLM models that can be used with EncoderDecoder] Add cross-attention weights to outputs (#8071) 2020-11-06 19:34:48 +01:00
model_doc Add TFDPR (#8203) 2020-11-11 12:28:09 -05:00
benchmarks.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
bertology.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
conf.py Release: v3.5.0 2020-11-10 08:50:43 -05:00
contributing.md Update installation page and add contributing to the doc (#5084) 2020-06-17 14:01:10 -04:00
converting_tensorflow_models.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
custom_datasets.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
examples.md per_device instead of per_gpu/error thrown when argument unknown (#4618) 2020-05-27 11:36:55 -04:00
favicon.ico Adding usage examples for common tasks (#2850) 2020-02-25 13:48:24 -05:00
glossary.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
index.rst Refactoring the generate() function (#6949) 2020-11-03 16:04:22 +01:00
installation.md Fix doc errors and typos across the board (#8139) 2020-10-29 10:33:33 -04:00
migration.md Fix doc errors and typos across the board (#8139) 2020-10-29 10:33:33 -04:00
model_sharing.rst Model sharing rst (#8439) 2020-11-10 08:35:11 -05:00
model_summary.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
multilingual.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
notebooks.md Update notebooks (#3620) 2020-04-06 14:32:39 -04:00
perplexity.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
philosophy.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
preprocessing.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
pretrained_models.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
quicktour.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
serialization.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
task_summary.rst Add missing tasks to pipeline docstring (#8428) 2020-11-10 13:44:25 -05:00
testing.rst using multi_gpu consistently (#8446) 2020-11-10 13:23:58 -05:00
tokenizer_summary.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00
training.rst Doc styling (#8067) 2020-10-26 18:26:02 -04:00