transformers/tests/generation
GMFTBY 71786b10c5
Adding the state-of-the-art contrastive search decoding methods for the codebase of generation_utils.py (#19477)
* add: the contrastive search for generaton_utils

* add: testing scripts for contrastive search under examples/text-generation

* update the quality of codes

* revise the docstring; make the generation_contrastive_search.py scripts;

* revise the examples/pytorch/text-generation/run_generation_contrastive_search.py to the auto-APIs format

* revise the necessary documents

* fix: revise the docstring of generation_contrastive_search.py

* Fix the code indentation

* fix: revise the nits and examples in contrastive_search docstring.

* fix the copyright

* delete generation_contrastive_search.py

* revise the logic in contrastive_search

* update the intergration test and the docstring

* run the tests over

* add the slow decorate to the contrastive_search intergrate test

* add more test

* do the style, quality, consistency checks
2022-10-19 10:17:46 +01:00
..
__init__.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_generation_beam_constraints.py Constrained Beam Search [*With* Disjunctive Decoding] (#15761) 2022-03-04 18:18:34 +01:00
test_generation_beam_search.py Generate: get the correct beam index on eos token (#18851) 2022-09-05 19:35:47 +01:00
test_generation_flax_logits_process.py 🚨🚨🚨 Optimize Top P Sampler and fix edge case (#18984) 2022-09-15 15:50:11 +02:00
test_generation_flax_utils.py Generate: validate model_kwargs on FLAX (and catch typos in generate arguments) (#18653) 2022-08-18 10:56:21 +01:00
test_generation_logits_process.py 🚨🚨🚨 Optimize Top P Sampler and fix edge case (#18984) 2022-09-15 15:50:11 +02:00
test_generation_stopping_criteria.py [Test refactor 1/5] Per-folder tests reorganization (#15725) 2022-02-23 15:46:28 -05:00
test_generation_tf_logits_process.py Add TF whisper (#19378) 2022-10-10 14:48:17 +01:00
test_generation_tf_utils.py Generate: validate model_kwargs on TF (and catch typos in generate arguments) (#18651) 2022-09-02 16:25:26 +01:00
test_generation_utils.py Adding the state-of-the-art contrastive search decoding methods for the codebase of generation_utils.py (#19477) 2022-10-19 10:17:46 +01:00