mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
do_sample should be set to True in run_generation.py
This commit is contained in:
parent
3a21d6da6b
commit
7365f01d43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user