dolly icon indicating copy to clipboard operation
dolly copied to clipboard

repetition sentences/phrases in response

Open jackyyanggp opened this issue 2 years ago • 1 comments

Hi, how how I penalize the model for generating repetition of sentences/phrases in response, if I want to edit the current custom "generate.py" instead of the transformer pipeline library? Thanks!

jackyyanggp avatar May 05 '23 16:05 jackyyanggp

See https://huggingface.co/blog/how-to-generate and look for repetition penalty. You don't need to use generate.py but you're welcome to start from that. This is just a matter of using transformers settings, not particularly specific to this model.

srowen avatar May 05 '23 20:05 srowen