Karim Foda
b9403e9516
Add hallucination filter (#18675)
* Add hallucination penalty
* Make quality changes
* Inverse penalty
* Fix imports & quality
* Fix name spelling issue
* set encoder_repetition_penalty and fix quality
* Fix failing test
* Add to config_common_kwargs
* Fix modelling_rag error
* Update src/transformers/generation_logits_process.py
Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>
* Remove breakpoint
* Make style fixes
* Update encoder_repetition_penalty default value
* Merge latest main changes
* Make fixup changes
* Add EncoderRepetitionPenaltyLogitsProcessor to generation/__init__.py
* Fix repo-inconsistency
* Remove venv
* Remove tensorflow-macos & add tests
* Add documentation
* Fix quality issues
* move encoder_repetition_penalty to config
* Update src/transformers/configuration_utils.py
Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>
* Update src/transformers/generation/configuration_utils.py
Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>
* Remove encoder_repetition_penalty from tests
* Fix type error
* Fix format error
Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>
2023-01-19 11:20:25 -05:00
..
2022-02-23 15:46:28 -05:00
2022-11-09 15:34:08 +00:00
2022-12-20 03:17:59 -05:00
2022-12-15 18:27:20 +00:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2023-01-19 11:20:25 -05:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2023-01-04 20:26:56 +00:00