transformers/docs/source
Patrick von Platen a1bbcf3f6c
Refactoring the generate() function (#6949)
* first draft

* show design proposition for new generate method

* up

* make better readable

* make first version

* gpt2 tests pass

* make beam search for gpt2 work

* add first encoder-decoder code

* delete typo

* make t5 work

* save indermediate

* make bart work with beam search

* finish beam search bart / t5

* add default kwargs

* make more tests pass

* fix no bad words sampler

* some fixes and tests for all distribution processors

* fix test

* fix rag slow tests

* merge to master

* add nograd to generate

* make all slow tests pass

* speed up generate

* fix edge case bug

* small fix

* correct typo

* add type hints and docstrings

* fix typos in tests

* add beam search tests

* add tests for beam scorer

* fix test rag

* finish beam search tests

* move generation tests in seperate file

* fix generation tests

* more tests

* add aggressive generation tests

* fix tests

* add gpt2 sample test

* add more docstring

* add more docs

* finish doc strings

* apply some more of sylvains and sams comments

* fix some typos

* make fix copies

* apply lysandres and sylvains comments

* final corrections on examples

* small fix for reformer
2020-11-03 16:04:22 +01:00
..
_static Docs for v3.4.0 2020-10-20 16:29:00 +02: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 Refactoring the generate() function (#6949) 2020-11-03 16:04:22 +01:00
model_doc TFMarian, TFMbart, TFPegasus, TFBlenderbot (#7987) 2020-10-30 11:23:16 -04: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.4.0 2020-10-20 16:22:26 +02: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 Fix doc errors and typos across the board (#8139) 2020-10-29 10:33:33 -04: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 Fix doc errors and typos across the board (#8139) 2020-10-29 10:33:33 -04:00
testing.rst [testing] port test_trainer_distributed to distributed pytest + TestCasePlus enhancements (#8107) 2020-10-28 11:51:32 -04: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