Missing `do_sample` argument for run_generation example
# ❓ Questions & Help

It seems the arguments `k`, `p`, `temperature` are disabled because `do_sample` is set to False by default. Thus, [run_generation.py](https://github.com/huggingface/transformers/blob/master/examples/run_generation.py)  will always use greedy decoding no matter how the `k`, `p`, `temperature` are set, which is kind of misleading. 

I think `do_sample` argument should be included in the code.
You're absolutely correct, I pushed a fix with 7365f01!<|||||>Ran into this issue myself by accident.

IMO, `do_sample=True` should be the default behavior for `generate()` since that's more in line with user expectations.<|||||>I agree with you, the default should be set to `True`. I've changed the default in 6c1b235.<|||||>Decision reverted in #3298 (see the PR for discussion and details).
New default to `do_sample==False`.