do_sample should be set to True in run_generation.py

This commit is contained in:
Lysandre 2020-01-31 11:49:32 -05:00
parent 3a21d6da6b
commit 7365f01d43

View File

@ -221,6 +221,7 @@ def main():
top_k=args.k,
top_p=args.p,
repetition_penalty=args.repetition_penalty,
do_sample=True
)
# Batch size == 1. to add more examples please use num_return_sequences > 1